Fixes for rootfs cache creation
This commit is contained in:
parent
b260a59c37
commit
541dc71692
@ -79,11 +79,11 @@ debootstrap_ng()
|
||||
fi
|
||||
|
||||
# stage: unmount tmpfs
|
||||
umount $SDCARD 2>&1
|
||||
umount_chroot "$SDCARD"
|
||||
if [[ $use_tmpfs = yes ]]; then
|
||||
while grep -qs "$SDCARD" /proc/mounts
|
||||
do
|
||||
umount $SDCARD
|
||||
umount_chroot "$SDCARD"
|
||||
sleep 5
|
||||
done
|
||||
fi
|
||||
@ -149,7 +149,7 @@ create_rootfs_cache()
|
||||
# speed up checking
|
||||
if [[ -n "$ROOT_FS_CREATE_ONLY" ]]; then
|
||||
touch $cache_fname.current
|
||||
[[ $use_tmpfs = yes ]] && umount $SDCARD
|
||||
umount --lazy "$SDCARD"
|
||||
rm -rf $SDCARD
|
||||
# remove exit trap
|
||||
trap - INT TERM EXIT
|
||||
@ -367,7 +367,7 @@ create_rootfs_cache()
|
||||
|
||||
# used for internal purposes. Faster rootfs cache rebuilding
|
||||
if [[ -n "$ROOT_FS_CREATE_ONLY" ]]; then
|
||||
[[ $use_tmpfs = yes ]] && umount $SDCARD
|
||||
umount --lazy "$SDCARD"
|
||||
rm -rf $SDCARD
|
||||
# remove exit trap
|
||||
trap - INT TERM EXIT
|
||||
|
||||
Loading…
Reference in New Issue
Block a user