From 096fcb5a6e373763bcdf1d182456f206c06cec43 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Thu, 21 Sep 2017 15:23:24 +0200 Subject: [PATCH] blkdeactivate: also try to unmount /boot on blkdeactivate -u if on top of supported device There's nothing special about /boot other than it's used during boot. But when blkdeactivate is called either on all devices or including a device where the /boot is on top, we should also include this mount point when doing unmount before deactivation of supported devices. --- WHATS_NEW_DM | 1 + scripts/blkdeactivate.sh.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index df72a25cc..5a11e2ef8 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.144 - ====================================== + Also try to unmount /boot on blkdeactivate -u if on top of supported device. Use blkdeactivate -r wait in blk-availability systemd service/initscript. Add blkdeactivate -r wait option to wait for MD resync/recovery/reshape. Fix blkdeactivate regression with failing DM/MD devs deactivation (1.02.142). diff --git a/scripts/blkdeactivate.sh.in b/scripts/blkdeactivate.sh.in index 71cc24189..11b59837a 100644 --- a/scripts/blkdeactivate.sh.in +++ b/scripts/blkdeactivate.sh.in @@ -97,7 +97,7 @@ declare -A SKIP_VG_LIST=() # listed here will be added to SKIP_DEVICE_LIST (and SKIP_VG_LIST) automatically. # (list is an associative array!) # -declare -A SKIP_UMOUNT_LIST=(["/"]=1 ["/boot"]=1 \ +declare -A SKIP_UMOUNT_LIST=(["/"]=1 \ ["/lib"]=1 ["/lib64"]=1 \ ["/bin"]=1 ["/sbin"]=1 \ ["/var"]=1 ["/var/log"]=1 \