From f19be5470ad7ed33ad26a6d79998b36a4d87d595 Mon Sep 17 00:00:00 2001 From: udeved Date: Sun, 16 Oct 2016 00:54:21 +0200 Subject: [PATCH] initcpio: try to remove remove /run/miso/bootmnt from umount list since its too early call to be unmounted yet --- initcpio/script/miso_shutdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/initcpio/script/miso_shutdown b/initcpio/script/miso_shutdown index 8cb05a2..c96acf8 100644 --- a/initcpio/script/miso_shutdown +++ b/initcpio/script/miso_shutdown @@ -5,7 +5,8 @@ mkdir /oldrun mount -n --move /oldroot/run /oldrun # 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. dmsetup remove_all