From 3de3c9914784e384c5747323bc18988601e137e6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 10:04:51 +0200 Subject: Adding live-helper 1.0~a7-1. --- helpers/lh_chroot_hacks | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'helpers/lh_chroot_hacks') 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 -- cgit v1.2.3