OSDN Git Service

[updae] : Use umount_chroot function
authorhayao <shun819.mail@gmail.com>
Sun, 4 Oct 2020 02:14:11 +0000 (11:14 +0900)
committerhayao <shun819.mail@gmail.com>
Sun, 4 Oct 2020 02:14:11 +0000 (11:14 +0900)
allarch.sh
build.sh

index 17c9e46..0862271 100755 (executable)
@@ -498,12 +498,7 @@ prepare_build() {
     check_bool customized_syslinux
 
     # Unmount
-    local _mount
-    for _mount in $(mount | getclm 3 | grep $(realpath ${work_dir})); do
-        msg_info "Unmounting ${_mount}"
-        umount "${_mount}"
-    done
-    unset _mount
+    umount_chroot
 
     # Pacman configuration file used only when building
     build_pacman_conf="${script_path}/system/pacman-${arch}.conf"
index 3afa162..d87f509 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -603,12 +603,7 @@ prepare_build() {
     fi
 
     # Unmount
-    local _mount
-    for _mount in $(mount | getclm 3 | grep $(realpath ${work_dir})); do
-        msg_info "Unmounting ${_mount}"
-        umount "${_mount}"
-    done
-    unset _mount
+    umount_chroot
 }