diff options
| author | Jonathan Bauer | 2015-05-21 16:36:48 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2015-05-21 16:36:48 +0200 |
| commit | e2412abe353ddad1f4d225cfefa94cfa4bf163b8 (patch) | |
| tree | 15bd072e116e2a23327fbd6738f0dd7ee50572cf | |
| parent | fix return code checks for wget and don't exit in sourced script -.- (diff) | |
| download | systemd-init-e2412abe353ddad1f4d225cfefa94cfa4bf163b8.tar.gz systemd-init-e2412abe353ddad1f4d225cfefa94cfa4bf163b8.tar.xz systemd-init-e2412abe353ddad1f4d225cfefa94cfa4bf163b8.zip | |
set permissions of $NEWROOT/tmp after mounting it
| -rwxr-xr-x | testModule/hooks/pre-pivot/mount-tmp.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
