armbian_rootenc_setup: new _close_loop() function
This commit is contained in:
parent
55762e6361
commit
6ace677c16
1 changed files with 7 additions and 3 deletions
|
|
@ -806,13 +806,17 @@ check_install_state() {
|
|||
fi
|
||||
}
|
||||
|
||||
_close_loop() {
|
||||
for i in $(losetup --noheadings --raw --list -j $ARMBIAN_IMAGE | awk '{print $1}'); do
|
||||
losetup -d $i
|
||||
done
|
||||
}
|
||||
|
||||
close_loopmounts() {
|
||||
while mountpoint -q $SRC_ROOT; do
|
||||
umount $SRC_ROOT
|
||||
done
|
||||
for i in $(losetup --noheadings --raw --list -j $ARMBIAN_IMAGE | awk '{print $1}'); do
|
||||
losetup -d $i
|
||||
done
|
||||
_close_loop
|
||||
}
|
||||
|
||||
_user_confirm() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue