From f4383da69d4642521cb07f8f970d9c9c759b44ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 23 Sep 2007 10:04:47 +0200 Subject: Adding live-helper 1.0~a2-1. --- helpers/lh_chroot_sysfs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'helpers/lh_chroot_sysfs') diff --git a/helpers/lh_chroot_sysfs b/helpers/lh_chroot_sysfs index 421d993c6..8480061f1 100755 --- a/helpers/lh_chroot_sysfs +++ b/helpers/lh_chroot_sysfs @@ -16,39 +16,39 @@ Read_conffile config/chroot Set_defaults # Requiring stage file -Require_stagefile "${LIVE_ROOT}"/.stage/bootstrap +Require_stagefile .stage/bootstrap # Checking lock file -Check_lockfile "${LIVE_ROOT}"/.lock +Check_lockfile .lock # Creating lock file -Create_lockfile "${LIVE_ROOT}"/.lock +Create_lockfile .lock case "${1}" in install) # Checking stage file - Check_stagefile "${LIVE_ROOT}"/.stage/chroot_sysfs + Check_stagefile .stage/chroot_sysfs - if [ ! -d "${LIVE_CHROOT}"/sys ] + if [ ! -d chroot/sys ] then # Create mountpoint - mkdir -p "${LIVE_CHROOT}"/sys + mkdir -p chroot/sys fi # Mounting /sys - mount sys-live -t sysfs "${LIVE_CHROOT}"/sys + mount sys-live -t sysfs chroot/sys # Creating stage file - Create_stagefile "${LIVE_ROOT}"/.stage/chroot_sysfs + Create_stagefile .stage/chroot_sysfs ;; remove) # Unmounting /sys - #fuser -km "${LIVE_CHROOT}"/sys - umount "${LIVE_CHROOT}"/sys > /dev/null 2>&1 + #fuser -km chroot/sys + umount chroot/sys > /dev/null 2>&1 # Removing stage file - rm -f "${LIVE_ROOT}"/.stage/chroot_sysfs + rm -f .stage/chroot_sysfs ;; *) -- cgit v1.2.3