X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Flive-initramfs%2Fgrml-script.init-top;h=5ed49b030a50c7f242c61cd53183cbff601c3f61;hb=ef39c912b924d4d83eda2d39ce8586089db828e4;hp=43942ba3cbeecb323805050544f4f78491605edb;hpb=cfd32a33aab0d28608bba9e34c65b2a1967be9b7;p=grml-live.git diff --git a/etc/grml/fai/live-initramfs/grml-script.init-top b/etc/grml/fai/live-initramfs/grml-script.init-top index 43942ba..5ed49b0 100755 --- a/etc/grml/fai/live-initramfs/grml-script.init-top +++ b/etc/grml/fai/live-initramfs/grml-script.init-top @@ -2,7 +2,9 @@ # helper functions {{{ -echo "debug: scripts/init-top/grml running" +if grep -qe debug -qe verbose /proc/cmdline 2>/dev/null ; then + echo "debug: scripts/init-top/grml running" +fi # get boot command line CMDLINE="$(cat /proc/cmdline)" @@ -125,6 +127,11 @@ if ! grep -qe debug -qe verbose /proc/cmdline 2>/dev/null ; then [ -r /proc/sys/kernel/printk ] && echo "0" > /proc/sys/kernel/printk fi +# Make sure we support squashfs: +if ! grep -q squashfs /proc/filesystems ; then + modprobe -q squashfs || log_grml_failure_msg "Warning: look like you do not have support for squashfs" +fi + if grep -q 'boot=live' /proc/cmdline 2>/dev/null ; then log_grml_begin_msg "Finished early booting sequence." ; echo "$SUCCESS" log_grml_begin_msg "Searching for GRML file, this might take a few seconds..."