[SCM] Debian Live build scripts branch, master, updated. 1.0.1-2-8-g3b6dfe0

Daniel Baumann daniel at debian.org
Tue Nov 25 11:17:18 UTC 2008


The following commit has been merged in the master branch:
commit 3b6dfe0911c2a1a8980be9ce1f95b8ed40accf80
Author: Daniel Baumann <daniel at debian.org>
Date:   Sat Nov 22 15:47:09 2008 +0100

    Even though users are supposed to have any local-includes with the correct owner and permissions, we set them manually on /home/user as it's likely that anybody will forget it (Closes: #506553).

diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks
index f6d0726..f2356c6 100755
--- a/helpers/lh_chroot_hacks
+++ b/helpers/lh_chroot_hacks
@@ -95,9 +95,19 @@ then
 	${LH_ROOT_COMMAND} chown -R --quiet $(whoami):$(whoami) chroot
 fi
 
-if [ "${LH_INITRAMFS}" = "casper" ] && [ -d chroot/home/${LH_USERNAME} ]
+case "${LH_INITRAMFS}" in
+	casper)
+		ID="999"
+		;;
+
+	*)
+		ID="1000"
+		;;
+esac
+
+if [ -d chroot/home/${LH_USERNAME} ]
 then
-	chown -R --quiet 999:999 chroot/home/${LH_USERNAME}
+	chown -R --quiet ${ID}:${ID} chroot/home/${LH_USERNAME}
 fi
 
 # This is a temporary hack to get rid of fstab;

-- 
Debian Live build scripts



More information about the debian-live-changes mailing list