diff options
author | Dimitri John Ledkov <xnox@ubuntu.com> | 2017-06-22 13:05:59 +0100 |
---|---|---|
committer | Dimitri John Ledkov <xnox@ubuntu.com> | 2017-06-22 13:05:59 +0100 |
commit | 4bbd1418af1ec2cd7992749a4f822e714ede57b8 (patch) | |
tree | 4ef09976be8f247c68bef147933cc124a0848c22 /debian/initramfs/hook | |
parent | d958a32577d29205ed38f78cf873b82db8059b99 (diff) |
Drop warnings that raid arrays are missing from the initramfs configuration. Instead have a positive message as to which arrays are included in the initramfs.
Diffstat (limited to 'debian/initramfs/hook')
-rw-r--r-- | debian/initramfs/hook | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/debian/initramfs/hook b/debian/initramfs/hook index 4e94c204..a8a71e96 100644 --- a/debian/initramfs/hook +++ b/debian/initramfs/hook @@ -88,7 +88,6 @@ else sed -i '/^CREATE/s/^/#/' $DESTMDADMCONF if ! grep -q '^ARRAY' $CONFIG; then tmpfile="${DESTMDADMCONF}.tmp" - warn "$CONFIG defines no arrays." if /usr/share/mdadm/mkconf > $tmpfile; then cp -p $tmpfile $DESTMDADMCONF else @@ -98,12 +97,8 @@ 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 -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!" - warn "please inspect the output of /usr/share/mdadm/mkconf, compare" - warn "it to $CONFIG, and make the necessary changes." + if grep -qi "UUID=$uuid" $DESTMDADMCONF; then + info "$uuid $device added to the mdadm.conf in the initramfs" fi done fi |