fix problem wherein we break kernel install if we're not configured yet
[debian/elilo] / debian / elilo.initramfs-post-update
index 66bcbb184fb1646494ea4b1e6d1dce7dae531e66..49e56734fbed443bbdeef6e24c240f1acf48b8b2 100644 (file)
@@ -6,6 +6,10 @@ case "$DPKG_MAINTSCRIPT_PACKAGE" in
        exit 0
        ;;
     *)
-       elilo </dev/null >&2
+       if [ -e /etc/elilo.conf ]; then
+           elilo </dev/null >&2
+       else
+           echo >&2 "elilo: Not updating; /etc/elilo.conf not found"
+       fi
        ;;
 esac