summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_debianchroot
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_debianchroot')
-rwxr-xr-xhelpers/lh_chroot_debianchroot18
1 files changed, 12 insertions, 6 deletions
diff --git a/helpers/lh_chroot_debianchroot b/helpers/lh_chroot_debianchroot
index b0f3a57..bc83028 100755
--- a/helpers/lh_chroot_debianchroot
+++ b/helpers/lh_chroot_debianchroot
@@ -36,17 +36,17 @@ Breakpoint "chroot_debianchroot: Init"
# Requiring stage file
Require_stagefile .stage/bootstrap
-# Checking lock file
-Check_lockfile .lock
-
-# Creating lock file
-Create_lockfile .lock
-
case "${1}" in
install)
# Checking stage file
Check_stagefile .stage/chroot_debianchroot
+ # Checking lock file
+ Check_lockfile .lock
+
+ # Creating lock file
+ Create_lockfile .lock
+
if [ -f chroot/etc/debian_chroot ]
then
# Save chroot file
@@ -61,6 +61,12 @@ case "${1}" in
;;
remove)
+ # Checking lock file
+ Check_lockfile .lock
+
+ # Creating lock file
+ Create_lockfile .lock
+
if [ -f chroot/etc/debian_chroot.orig ]
then
# Restore chroot file