]> git.ozlabs.org Git - petitboot/blobdiff - utils/pb-console
pb-sos: effectively compress the pb-sos file with gzip
[petitboot] / utils / pb-console
index 64bf77fd0c69e4e77973dc0187bb5a155df872e3..282fca1193604ff57b7aff102844648ecd4e5f70 100644 (file)
@@ -104,16 +104,29 @@ case "$(tty)" in
        ;;
 esac
 
+# we may have been run from udev - ensure we have a sensible PATH
+if [ -z "$PATH" ]
+then
+       PATH=/usr/bin:/usr/sbin:/bin:/sbin
+fi
+PATH=/var/lib/pb-plugins/bin:$PATH
+export PATH
+
 verbose_opt=
 if $pb_config debug | grep -q enabled
 then
        verbose_opt=--verbose
 fi
 
+# kernel messages may write over the ncurses ui - change log level to only
+# show particularly important messages
+dmesg -n 1
+
 while :
 do
        $ui $verbose_opt
        reset
        echo "Exiting petitboot. Type 'exit' to return."
+       echo "You may run 'pb-sos' to gather diagnostic data"
        $shell
 done