forked from mirrored-repos/manjaro-tools
initcpio: try to remove remove /run/miso/bootmnt from umount list since its too early call to be unmounted yet
This commit is contained in:
parent
d5d9d9d329
commit
f19be5470a
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,8 @@ mkdir /oldrun
|
||||||
mount -n --move /oldroot/run /oldrun
|
mount -n --move /oldroot/run /oldrun
|
||||||
|
|
||||||
# Unmount all mounts now.
|
# Unmount all mounts now.
|
||||||
umount $(mount | awk '$3 ~/^\/oldroot/ {print $3}' | sort -r)
|
#umount $(mount | awk '$3 ~/^\/oldroot/ {print $3}' | sort -r)
|
||||||
|
umount $(mount | awk '$3 ~/^\/oldroot/ {if($3 != "/run/miso/bootmnt") print $3}' | sort -r)
|
||||||
|
|
||||||
# Remove all dm-snapshot devices.
|
# Remove all dm-snapshot devices.
|
||||||
dmsetup remove_all
|
dmsetup remove_all
|
||||||
|
|
Loading…
Reference in a new issue