summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_sysfs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:47 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:18:28 +0100
commit677415f6d7efc1e5b888570d70af311d2900c69c (patch)
tree32fe7ced768666c229fff913fe12cbbf2fdd34e4 /helpers/lh_chroot_sysfs
parent811ff0532fcb3305ebefcd1d61e4eb6c260902eb (diff)
downloadvyos-live-build-677415f6d7efc1e5b888570d70af311d2900c69c.tar.gz
vyos-live-build-677415f6d7efc1e5b888570d70af311d2900c69c.zip
Adding live-helper 1.0~a2-1.
Diffstat (limited to 'helpers/lh_chroot_sysfs')
-rwxr-xr-xhelpers/lh_chroot_sysfs22
1 files changed, 11 insertions, 11 deletions
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
;;
*)