]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added a debug mode for installer.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Oct 2008 19:32:01 +0000 (19:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Oct 2008 19:32:01 +0000 (19:32 +0000)
If you pass "debug" to the kernel command line,
the pomona installer will be ran by strace.

src/install/root/.bash_profile

index 737b025f0c64c51f5d536bec0d69b260b84c5ecc..c71e413a40a71ebcdbf2d9577554621eda611256 100644 (file)
@@ -22,6 +22,8 @@
 LANG=en_US.UTF-8
 export LANG
 
+command=/sbin/pomona
+debug=off
 mode=
 
 for o in $(cat /proc/cmdline) ; do
@@ -29,9 +31,12 @@ for o in $(cat /proc/cmdline) ; do
     mode=*)
         mode=${o#mode=}
         ;;
+    debug)
+        debug=on
     esac
 done
 
 if [ "$mode" = "install" ]; then
-       [[ "$(tty)" =~ "tty1" ]] && exec /sbin/pomona
+       [ "$debug" == "on" ] && command="strace -ff -F -o /tmp/strace.log $command"
+       [[ "$(tty)" =~ "tty1" ]] && exec $command
 fi