summaryrefslogtreecommitdiff
path: root/debian/initramfs/hook
diff options
context:
space:
mode:
authorDimitri John Ledkov <xnox@ubuntu.com>2016-07-27 11:09:07 +0100
committerDimitri John Ledkov <xnox@ubuntu.com>2016-07-27 11:09:07 +0100
commit3ce6b68480adeefc99203a8b7143bd7c067ef36c (patch)
tree2dc83bae214f6057f4bb2d3a96f49ce3349b6a5a /debian/initramfs/hook
parent99fa33af992a671e08d4a69eac72ad2d262089d1 (diff)
Fix regressions from 3.4-2.
* Fix UUID= grep for configured RAIDs to be case incesetive, regression from 3.4-2. * Re-trigger block devices at the start of local-block mdadm loop, to re-incrementally assemble disks that appeared before RAID personalities were registered with the kernel. * Also, invoke non-incremental assembly of raid arrays in the local-block loop to support running mdadm with user-exported variables specified via param.conf. * Closes: #830770, #830300.
Diffstat (limited to 'debian/initramfs/hook')
-rw-r--r--debian/initramfs/hook2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/initramfs/hook b/debian/initramfs/hook
index ae7d4d18..4e94c204 100644
--- a/debian/initramfs/hook
+++ b/debian/initramfs/hook
@@ -98,7 +98,7 @@ else
# make sure the configuration file knows about all running devices
/sbin/mdadm --detail --scan | while read array device params; do
uuid=${params#*UUID=}; uuid=${uuid%% *}
- if ! grep -q "UUID=$uuid" $DESTMDADMCONF; then
+ if ! grep -qi "UUID=$uuid" $DESTMDADMCONF; then
warn "the array $device with UUID $uuid"
warn "is currently active, but it is not listed in mdadm.conf. if"
warn "it is needed for boot, then YOUR SYSTEM IS NOW UNBOOTABLE!"