From e05d1963b9c8003975d1be0e0ec2e2fb4aa82817 Mon Sep 17 00:00:00 2001 From: hayao Date: Sun, 4 Oct 2020 11:14:11 +0900 Subject: [PATCH] [updae] : Use umount_chroot function --- allarch.sh | 7 +------ build.sh | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/allarch.sh b/allarch.sh index 17c9e465..08622716 100755 --- a/allarch.sh +++ b/allarch.sh @@ -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" diff --git a/build.sh b/build.sh index 3afa1626..d87f509d 100755 --- 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 } -- 2.11.0