X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fboot%2F9990-overlay.sh;h=597ff50fcec72ad7ecbc2ac380f7baaa20baf1b9;hb=12987b7f06549a0b5e53872dce576e0c25a8827a;hp=cb12c4b4535eb608a6b2d746fe0063006242cba1;hpb=a5b1590456c81bd559bb28e3baef6ddfe7aa6b38;p=live-boot-grml.git diff --git a/scripts/boot/9990-overlay.sh b/scripts/boot/9990-overlay.sh index cb12c4b..597ff50 100755 --- a/scripts/boot/9990-overlay.sh +++ b/scripts/boot/9990-overlay.sh @@ -155,9 +155,8 @@ setup_unionfs () # tmpfs file systems touch /etc/fstab - mkdir -p /live - mount -t tmpfs tmpfs /live mkdir -p /live/overlay + mount -t tmpfs tmpfs /live/overlay # Looking for persistence devices or files if [ -n "${PERSISTENCE}" ] && [ -z "${NOPERSISTENCE}" ] @@ -344,6 +343,12 @@ setup_unionfs () # Correct the permissions of /: chmod 0755 "${rootmnt}" + # Correct the permission of /tmp: + if [ -d "${rootmnt}/tmp" ] + then + chmod 1777 "${rootmnt}"/tmp + fi + live_rofs_list="" # SHOWMOUNTS is necessary for custom mounts with the union option # Since we may want to do custom mounts in user-space it's best to always enable SHOWMOUNTS