From 4d763f33ecf5b7e529f69eedca3d4d19147b9eb9 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 12 Jan 2018 13:01:32 +0100 Subject: [rfs-stage32] Make sure data/ exists on ID45 and has proper permissions --- .../data/opt/openslx/scripts/systemd-setup_partitions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/rootfs/rootfs-stage32/data/opt/openslx') 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 -- cgit v1.2.3-55-g7522