summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_tmpfs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/chroot_tmpfs')
-rwxr-xr-xscripts/build/chroot_tmpfs14
1 files changed, 4 insertions, 10 deletions
diff --git a/scripts/build/chroot_tmpfs b/scripts/build/chroot_tmpfs
index fb6262b6e..f21a8aca0 100755
--- a/scripts/build/chroot_tmpfs
+++ b/scripts/build/chroot_tmpfs
@@ -36,11 +36,8 @@ case "${1}" in
# Checking stage file
Check_stagefile .build/chroot_tmpfs
- # Checking lock file
- Check_lockfile .lock
-
- # Creating lock file
- Create_lockfile .lock
+ # Aquire lock file
+ Acquire_lockfile
mv chroot/var/lib/dpkg chroot/var/lib/dpkg.tmp
mkdir chroot/var/lib/dpkg
@@ -55,11 +52,8 @@ case "${1}" in
remove)
Echo_message "Deconfiguring tmpfs for /var/lib/dpkg"
- # Checking lock file
- Check_lockfile .lock
-
- # Creating lock file
- Create_lockfile .lock
+ # Aquire lock file
+ Acquire_lockfile
mkdir -p chroot/var/lib/dpkg.tmp
mv chroot/var/lib/dpkg/* chroot/var/lib/dpkg.tmp