mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-27 17:55:47 +03:00
mdraid: add shutdown script
This commit is contained in:
parent
20636ce09f
commit
657d68cfff
2
modules.d/90mdraid/md-shutdown.sh
Normal file
2
modules.d/90mdraid/md-shutdown.sh
Normal file
@ -0,0 +1,2 @@
|
||||
echo "Disassembling mdraid devices."
|
||||
mdadm -v --stop --scan
|
@ -77,5 +77,6 @@ install() {
|
||||
inst "$moddir/md_finished.sh" /sbin/md_finished.sh
|
||||
inst_hook pre-trigger 30 "$moddir/parse-md.sh"
|
||||
inst "$moddir/mdraid-cleanup.sh" /sbin/mdraid-cleanup
|
||||
inst_hook shutdown 30 "$moddir/md-shutdown.sh"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user