diff options
Diffstat (limited to 'helpers/lh_chroot_hacks')
-rwxr-xr-x | helpers/lh_chroot_hacks | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks index f6d07261d..f2356c633 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; |