summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_hacks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-08-25 13:04:03 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:40 +0100
commit5fe8b202c38877eabffb08f9d508792484d85f04 (patch)
treee3e8ebeaebcf8e8719594987e26bb7d41290cbdb /helpers/lh_chroot_hacks
parentfa8e9f9381214c465f4d73135d722ca0d5e9272d (diff)
downloadvyos-live-build-5fe8b202c38877eabffb08f9d508792484d85f04.tar.gz
vyos-live-build-5fe8b202c38877eabffb08f9d508792484d85f04.zip
Since #433076 is fixed in live-initramfs, we only need to adjust owner of the live-user when using casper for etch builds.
Diffstat (limited to 'helpers/lh_chroot_hacks')
-rwxr-xr-xhelpers/lh_chroot_hacks2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks
index 846a5c844..4ea2b8773 100755
--- a/helpers/lh_chroot_hacks
+++ b/helpers/lh_chroot_hacks
@@ -95,7 +95,7 @@ then
${LH_ROOT_COMMAND} chown -R --quiet $(whoami):$(whoami) chroot
fi
-if [ -d chroot/home/${LH_USERNAME} ]
+if [ "${LH_INITRAMFS}" = "casper" ] && [ -d chroot/home/${LH_USERNAME} ]
then
chown -R --quiet 999:999 chroot/home/${LH_USERNAME}
fi