summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_debianchroot
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/chroot_debianchroot')
-rwxr-xr-xscripts/build/chroot_debianchroot14
1 files changed, 4 insertions, 10 deletions
diff --git a/scripts/build/chroot_debianchroot b/scripts/build/chroot_debianchroot
index 5e7322f73..49c2984a6 100755
--- a/scripts/build/chroot_debianchroot
+++ b/scripts/build/chroot_debianchroot
@@ -31,11 +31,8 @@ case "${1}" in
# Checking stage file
Check_stagefile .build/chroot_debianchroot
- # Checking lock file
- Check_lockfile .lock
-
- # Creating lock file
- Create_lockfile .lock
+ # Aquire lock file
+ Acquire_lockfile
if [ -f chroot/etc/debian_chroot ]
then
@@ -53,11 +50,8 @@ case "${1}" in
remove)
Echo_message "Deconfiguring file /etc/debian_chroot"
- # Checking lock file
- Check_lockfile .lock
-
- # Creating lock file
- Create_lockfile .lock
+ # Aquire lock file
+ Acquire_lockfile
if [ -f chroot/etc/debian_chroot.orig ]
then