diff options
author | Mario 'BitKoenig' Holbe <Mario.Holbe@TU-Ilmenau.DE> | 2010-05-28 13:18:44 +0200 |
---|---|---|
committer | martin f. krafft <madduck@debian.org> | 2010-05-28 13:19:15 +0200 |
commit | 32f329bbd8b39aadd730047e461d33d74a591fe5 (patch) | |
tree | ad278d045b1650a246dc654623b9905791c1ac20 /debian/initramfs | |
parent | f4f9b64a60ac64b0323aa287ebc4f858658c2f8f (diff) |
Match UUID case-insensitively
while checking for running arrays not listed in mdadm.conf
Debian-bug: #583545
Signed-off-by: martin f. krafft <madduck@debian.org>
Diffstat (limited to 'debian/initramfs')
-rw-r--r-- | debian/initramfs/hook | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/initramfs/hook b/debian/initramfs/hook index b9c619a9..368b3ae3 100644 --- a/debian/initramfs/hook +++ b/debian/initramfs/hook @@ -244,7 +244,7 @@ if [ "$INITRDSTART" != none ] && [ -n "$devpairs" ]; then # make sure the configuration file knows about all running devices $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!" |