summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_proc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/chroot_proc')
-rwxr-xr-xscripts/build/chroot_proc14
1 files changed, 4 insertions, 10 deletions
diff --git a/scripts/build/chroot_proc b/scripts/build/chroot_proc
index 6d1ae8800..52cb72665 100755
--- a/scripts/build/chroot_proc
+++ b/scripts/build/chroot_proc
@@ -31,11 +31,8 @@ case "${1}" in
# Checking stage file
Check_stagefile .build/chroot_proc
- # Checking lock file
- Check_lockfile .lock
-
- # Creating lock file
- Create_lockfile .lock
+ # Aquire lock file
+ Acquire_lockfile
# Creating mountpoint
mkdir -p chroot/proc
@@ -50,11 +47,8 @@ case "${1}" in
remove)
Echo_message "Begin unmounting /proc..."
- # Checking lock file
- Check_lockfile .lock
-
- # Creating lock file
- Create_lockfile .lock
+ # Aquire lock file
+ Acquire_lockfile
# Workaround binfmt-support /proc locking
if [ -e chroot/proc/sys/fs/binfmt_misc/status ]