Correcting permissions of /tmp which apparently somehow get mixed up along the way.
authorDaniel Baumann <daniel@debian.org>
Wed, 15 Aug 2012 18:25:41 +0000 (20:25 +0200)
committerDaniel Baumann <daniel@debian.org>
Thu, 16 Aug 2012 09:22:20 +0000 (11:22 +0200)
scripts/boot/9990-overlay.sh

index 00c53c8..597ff50 100755 (executable)
@@ -343,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