summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_hacks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:51 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 10:04:51 +0200
commit3de3c9914784e384c5747323bc18988601e137e6 (patch)
tree621dc56a00a65ab0eb1fd4e7d42ad4e45d718741 /helpers/lh_chroot_hacks
parent2230835b694fef8f6f63992b373d06e6025917ce (diff)
downloadvyos-live-build-3de3c9914784e384c5747323bc18988601e137e6.tar.gz
vyos-live-build-3de3c9914784e384c5747323bc18988601e137e6.zip
Adding live-helper 1.0~a7-1.
Diffstat (limited to 'helpers/lh_chroot_hacks')
-rwxr-xr-xhelpers/lh_chroot_hacks7
1 files changed, 6 insertions, 1 deletions
diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks
index bc6b0d45c..ec367fba0 100755
--- a/helpers/lh_chroot_hacks
+++ b/helpers/lh_chroot_hacks
@@ -46,7 +46,7 @@ Check_lockfile .lock
Create_lockfile .lock
# Removing udev mac caching rule
-rm -f chroot/etc/udev/rules.d/z25_persistent-net.rules
+Chroot "rm -f /etc/udev/rules.d/z25_persistent-net.rules"
case "${LIVE_BINARY_IMAGE}" in
net)
@@ -82,5 +82,10 @@ esac
# Update initramfs
Chroot "update-initramfs -k all -t -u"
+if [ -n "${LH_ROOT_COMMAND}" ]
+then
+ ${LH_ROOT_COMMAND} chown -R --quiet `whoami`:`whoami` chroot
+fi
+
# Creating stage file
Create_stagefile .stage/chroot_hacks