[SCM] Debian Live build scripts branch, master, updated. 1.0.1-2-8-gd8ed509
Daniel Baumann
daniel at debian.org
Sat Nov 22 14:49:36 UTC 2008
The following commit has been merged in the master branch:
commit d8ed5095192c9c4057e86fa3177c4789c1a7996c
Author: Daniel Baumann <daniel at debian.org>
Date: Sat Nov 22 15:47:09 2008 +0100
Even thoug 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