From 5e7f5454748053c15545954332a8a09ebc53eb73 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 22 Nov 2008 15:47:09 +0100 Subject: 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). --- helpers/lh_chroot_hacks | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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; -- cgit v1.0