- move start of bootchart to initramfs (enable bootchart loggin with "bootchart" as kernel line option)
This commit is contained in:
Stephan Raue 2010-02-13 12:14:50 +01:00
parent a7a677d276
commit 5416875f5f
2 changed files with 11 additions and 9 deletions

View File

@ -21,6 +21,9 @@
splash) splash)
SPLASH=yes SPLASH=yes
;; ;;
bootchart)
BOOTCHART=yes
;;
esac esac
done done
@ -86,9 +89,14 @@
/bin/busybox mount --move /flash /sysroot/flash /bin/busybox mount --move /flash /sysroot/flash
/bin/busybox mount --move /storage /sysroot/storage /bin/busybox mount --move /storage /sysroot/storage
# exec /bin/busybox switch_root /sysroot /sbin/init.system if [ "$BOOTCHART" = "yes" -a -f "/sysroot/sbin/bootchartd" ] ; then
exec /bin/busybox chroot /sysroot /sbin/init.system progress "Starting Bootchart logging"
# exec /bin/busybox switch_root /sysroot /sbin/cinit mkdir -p /sysroot/storage/.bootchart
exec /bin/busybox switch_root /sysroot \
/sbin/bootchartd -o /storage/.bootchart
else
exec /bin/busybox switch_root /sysroot /sbin/init
fi
error "INIT_3" "Error in initramfs. Could not switch to new root" error "INIT_3" "Error in initramfs. Could not switch to new root"
debug_shell debug_shell

View File

@ -1,11 +1,5 @@
#!/bin/sh #!/bin/sh
# start bootchartd if avaible
if [ -f /sbin/bootchartd ]; then
mkdir -p /storage/bootchart
/sbin/bootchartd -o /storage/bootchart &
fi
# read config # read config
. /etc/sysconfig . /etc/sysconfig