summaryrefslogtreecommitdiff
path: root/scripts/build/lb_chroot_hacks
diff options
context:
space:
mode:
authorColin Watson <cjwatson@canonical.com>2011-06-08 10:07:26 +0200
committerDaniel Baumann <daniel@debian.org>2011-06-08 10:07:26 +0200
commit6bcb29a25c1bddf150ed91919b940ace3dba8289 (patch)
treeb9f082683d1a1cf93ddea526ee4086ef959aaf47 /scripts/build/lb_chroot_hacks
parent8b05781dbcb27847b5f3afb432d48f8486d79b57 (diff)
downloadvyos-live-build-6bcb29a25c1bddf150ed91919b940ace3dba8289.tar.gz
vyos-live-build-6bcb29a25c1bddf150ed91919b940ace3dba8289.zip
Make --initramfs none work more consistently (Closes: #627887).
Diffstat (limited to 'scripts/build/lb_chroot_hacks')
-rwxr-xr-xscripts/build/lb_chroot_hacks6
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