Imported Upstream version 24.1
[rrq/maintain_lilo.git] / hooks / initramfs / post-update.d / runlilo
index 100cfed43cd6382d91834bf9b654ebadb98b4bcc..72b8f3b703626fcb9db2ee57ee65d6b8c134479d 100644 (file)
@@ -2,7 +2,7 @@
 #
 #  runlilo - postupdate script for modern initrd management
 #
-#  Copyright 2010 Joachim Wiedorn
+#  Copyright 2010-2014 Joachim Wiedorn
 #  All rights reserved.
 #
 #  Licensed under the terms contained in the file 'COPYING'
@@ -26,9 +26,10 @@ case "$PAR" in
 
   *)
     # 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