diff options
author | Simon Rettberg | 2018-01-12 13:01:32 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-01-12 13:01:32 +0100 |
commit | 4d763f33ecf5b7e529f69eedca3d4d19147b9eb9 (patch) | |
tree | 892245522cc4c95c84f0bceaef9878fe67a50d22 /core/rootfs/rootfs-stage32/data/opt/openslx/scripts | |
parent | [vmware12] De-spectre by bumping to 12.5.9 (diff) | |
download | mltk-4d763f33ecf5b7e529f69eedca3d4d19147b9eb9.tar.gz mltk-4d763f33ecf5b7e529f69eedca3d4d19147b9eb9.tar.xz mltk-4d763f33ecf5b7e529f69eedca3d4d19147b9eb9.zip |
[rfs-stage32] Make sure data/ exists on ID45 and has proper permissions
Diffstat (limited to 'core/rootfs/rootfs-stage32/data/opt/openslx/scripts')
-rwxr-xr-x | core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions index 50d5fe36..d4042926 100755 --- a/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions +++ b/core/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_partitions @@ -171,7 +171,11 @@ for PART_DEV in $(get_all_with_id 46); do # ln -sf /media/${PART_DEV#/dev/*} /var/home echo -e "${PART_DEV}\t/media/${PART_DEV#/dev/*}\tauto\t\tnoauto\t\t 0 0" >> "/etc/fstab" done -if [ "$HAVE_PARTITION_45" = "no" ] && [ -d "$MOUNT_POINT_45" ]; then +if [ "$HAVE_PARTITION_45" = "yes" ]; then + mkdir -p "$MOUNT_POINT_45/data" + chown root:root "$MOUNT_POINT_45" "$MOUNT_POINT_45/data" + chmod a+rwxt "$MOUNT_POINT_45/data" +elif [ -d "$MOUNT_POINT_45" ]; then rm -f -- "$MOUNT_POINT_45" fi |