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:
udeved 2016-10-16 00:54:21 +02:00
parent d5d9d9d329
commit f19be5470a

View file

@ -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