]> git.ipfire.org Git - thirdparty/systemd.git/commit
Try stopping MD RAID devices in shutdown too
authorHubert Kario <hubert@kario.pl>
Sun, 20 Sep 2020 16:59:58 +0000 (18:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 Sep 2020 08:41:59 +0000 (10:41 +0200)
commit0b220a5f2a31844eaa1f5426bab02d41d54f471c
treeba7e5685f093bdd04fcc1a96bfc0ab337b1ed934
parent06ca077ba2768a985a5f34926dcf7fe0c148a8f1
Try stopping MD RAID devices in shutdown too

Currently the systemd-shutdown command attempts to stop swaps, DM
(crypt, LVM2) and loop devices, but it doesn't attempt to stop MD
RAID devices, which means that if the RAID is set up on crypt,
loop, etc. device, it won't be able to stop those underlying devices.

This code extends the shutdown application to also attempt stopping
the MD RAID devices.

Signed-off-by: Hubert Kario <hubert@kario.pl>
src/shutdown/shutdown.c
src/shutdown/umount.c
src/shutdown/umount.h