From e2412abe353ddad1f4d225cfefa94cfa4bf163b8 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 21 May 2015 16:36:48 +0200 Subject: set permissions of $NEWROOT/tmp after mounting it --- testModule/hooks/pre-pivot/mount-tmp.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testModule/hooks/pre-pivot') diff --git a/testModule/hooks/pre-pivot/mount-tmp.sh b/testModule/hooks/pre-pivot/mount-tmp.sh index 3fa24cce..3e702064 100755 --- a/testModule/hooks/pre-pivot/mount-tmp.sh +++ b/testModule/hooks/pre-pivot/mount-tmp.sh @@ -27,12 +27,14 @@ if [ ! -b "$OPENSLX_TMP_DISK_DEV" ]; then fi # all good, keep on -if ! mount -t auto "$OPENSLX_TMP_DISK_DEV" /sysroot/tmp; then +if ! mount -t auto "$OPENSLX_TMP_DISK_DEV" $NEWROOT/tmp; then # something else went wrong :( - warn "Mounting '$OPENSLX_TMP_DISK_DEV' to '/sysroot/tmp' failed with: $!" + warn "Mounting '$OPENSLX_TMP_DISK_DEV' to '$NEWROOT/tmp' failed with: $!" warn "Systemd will manage $NEWROOT/tmp on its own." return 1 fi # still here? mount worked wohoo +# set permissions +chmod a+rwxt $NEWROOT/tmp return 0 -- cgit v1.2.3-55-g7522