From: <kr...@us...> - 2011-12-06 20:19:54
|
Revision: 5286 http://astlinux.svn.sourceforge.net/astlinux/?rev=5286&view=rev Author: krisk84 Date: 2011-12-06 20:19:48 +0000 (Tue, 06 Dec 2011) Log Message: ----------- add support for initramfs Modified Paths: -------------- branches/1.0/project/runnix/target_skeleton/runnix Modified: branches/1.0/project/runnix/target_skeleton/runnix =================================================================== --- branches/1.0/project/runnix/target_skeleton/runnix 2011-12-06 00:57:28 UTC (rev 5285) +++ branches/1.0/project/runnix/target_skeleton/runnix 2011-12-06 20:19:48 UTC (rev 5286) @@ -213,6 +213,19 @@ . $BASE/os/$RUNIMG.conf fi +if [ "$INITRAMFS" ]; then + if [ "$INITRAMFS" = "YES" ]; then + if [ "$KCMD" ]; then + echo "Image is initramfs, booting now..." + kexec --command-line="$KCMD" -f $BASE/os/$RUNIMG + do_failure + else + echo "You need to specify KCMD with initramfs" + do_failure + fi + fi +fi + if [ -z "$OFFSET" ]; then losetup /dev/loop0 $BASE/os/$RUNIMG else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |