Bug#858344: mdadm: Please allow suppressing initramfs warning about active arrays that are not listed in mdadm.conf

Benjamin Drung benjamin.drung at profitbricks.com
Tue Mar 21 14:06:28 UTC 2017


Package: mdadm
Version: 3.4-4
Severity: wishlist

Hi,

The initramfs hook (debian/initramfs/hook) contains following check:

    # 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."
            fi
    done

We have a setup, where we need exactly one mdadm array for booting, but
assemble more arrays dynamically while running. Thus we will get the
warning message above (multiple times) when running 'update-initramfs
-u'.

This warning irretates us and clutters the output (and maybe causes us
to not see important warnings). Thus please add an option to silince
these kind of warnings (as long as there is one existing array specified
in mdadm.conf).

-- 
Benjamin Drung
System Developer
Debian & Ubuntu Developer

ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin

Email: benjamin.drung at profitbricks.com
URL:  http://www.profitbricks.com

Sitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506B.
Geschäftsführer: Andreas Gauger, Achim Weiss.



More information about the pkg-mdadm-devel mailing list