summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-11-22 15:47:09 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:45 +0100
commit5e7f5454748053c15545954332a8a09ebc53eb73 (patch)
tree9775a6ab4af2357a2d8cd1bdafee8becf9d88e65
parentc4c64bc0f8e6e4d640918670ad1b2616aef4745b (diff)
downloadlive-build-5e7f5454748053c15545954332a8a09ebc53eb73.zip
live-build-5e7f5454748053c15545954332a8a09ebc53eb73.tar.gz
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).
-rwxr-xr-xhelpers/lh_chroot_hacks14
1 files 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;