Imported Upstream version 24.1
[rrq/maintain_lilo.git] / hooks / kernel / postinst.d / zz-runlilo
index f7c39b1d357400ec317c8f22a5812d2f3c0ad33b..6fbd25585bfd49c1779d8d778e77bf16e151b4ca 100644 (file)
@@ -2,7 +2,7 @@
 #
 #  zz-runlilo - postinst script for modern kernel management
 #
-#  Copyright 2010 Joachim Wiedorn
+#  Copyright 2010-2014 Joachim Wiedorn
 #  All rights reserved.
 #
 #  Licensed under the terms contained in the file 'COPYING'
@@ -24,9 +24,10 @@ case "$PAR" in
 
   ever|configure)
     # Run the boot loader installer
+    # and ignore error on degraded mdadm RAID1
     if [ -f /sbin/lilo ]; then
       if [ -f /etc/lilo.conf ]; then
-        lilo  </dev/null  >&2
+        lilo -H  </dev/null  >&2
       else
         echo "Warning: Not updating LILO; /etc/lilo.conf not found!"  >&2
       fi