OSDN Git Service
(root)
/
alterlinux
/
alterlinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2cbcaf
)
[updae] : Use umount_chroot function
author
hayao
<shun819.mail@gmail.com>
Sun, 4 Oct 2020 02:14:11 +0000
(11:14 +0900)
committer
hayao
<shun819.mail@gmail.com>
Sun, 4 Oct 2020 02:14:11 +0000
(11:14 +0900)
allarch.sh
patch
|
blob
|
history
build.sh
patch
|
blob
|
history
diff --git
a/allarch.sh
b/allarch.sh
index
17c9e46
..
0862271
100755
(executable)
--- 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
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
}