Skip to content

Commit 4fc0350

Browse files
committed
[update] : Mount airootfs before running function
1 parent 4ada4ad commit 4fc0350

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@ umount_chroot () {
214214
# Mount airootfs on "${work_dir}/${arch}/airootfs"
215215
mount_airootfs () {
216216
mkdir -p "${airootfs_dir}"
217-
#_mount "${work_dir}/${arch}/airootfs.img" "${work_dir}/${arch}/airootfs"
218-
#_mount "${work_dir}/${arch}/airootfs.img" "${airootfs_dir}"
219217
_mount "${airootfs_dir}.img" "${airootfs_dir}"
220218
}
221219

@@ -233,9 +231,10 @@ run_once() {
233231
set -eu
234232
if [[ ! -e "${work_dir}/build.${1}_${arch}" ]]; then
235233
msg_debug "Running ${1} ..."
234+
mount_airootfs
236235
"${1}"
237236
touch "${work_dir}/build.${1}_${arch}"
238-
umount_chroot
237+
umount_chroot_advance
239238
else
240239
msg_debug "Skipped because ${1} has already been executed."
241240
fi

0 commit comments

Comments
 (0)