diff options
Diffstat (limited to 'scripts/build/lb_chroot_hacks')
-rwxr-xr-x | scripts/build/lb_chroot_hacks | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build/lb_chroot_hacks b/scripts/build/lb_chroot_hacks index 2a58c0f75..ab5e3ab04 100755 --- a/scripts/build/lb_chroot_hacks +++ b/scripts/build/lb_chroot_hacks @@ -214,9 +214,13 @@ case "${LB_INITRAMFS}" in live-boot) ID="1000" ;; + + *) + ID="" + ;; esac -if [ -d chroot/home/${LB_USERNAME} ] +if [ -d chroot/home/${LB_USERNAME} ] && [ "${ID}" ] then chown -R --quiet ${ID}:${ID} chroot/home/${LB_USERNAME} fi |