SOURCES: rc-boot-prefer-PLD.patch (NEW), PLD.image (NEW) - added i...

arvenil arvenil at pld-linux.org
Thu Jan 3 19:24:36 CET 2008


Author: arvenil                      Date: Thu Jan  3 18:24:36 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- added image config for rc-boot (default PLD image)
- added patch - prefer PLD image when default is not selected
- release 6

---- Files affected:
SOURCES:
   rc-boot-prefer-PLD.patch (NONE -> 1.1)  (NEW), PLD.image (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/rc-boot-prefer-PLD.patch
diff -u /dev/null SOURCES/rc-boot-prefer-PLD.patch:1.1
--- /dev/null	Thu Jan  3 19:24:36 2008
+++ SOURCES/rc-boot-prefer-PLD.patch	Thu Jan  3 19:24:31 2008
@@ -0,0 +1,19 @@
+--- rc-boot-1.1/src/rc-boot	2002-08-20 16:22:48.000000000 +0000
++++ rc-boot-1.1/src/rc-boot	2008-01-01 16:04:59.000000000 +0000
+@@ -248,8 +248,14 @@
+ done
+ 
+ if [ "$DEFAULT" = "" ] ; then
+-	DEFAULT=$first
+-	msg "$first taken as defult image"
++	IM_File=${CONFIG_DIR}/images/PLD
++	if [ -f ${IM_File} ] && load_image ${IM_File} ; then
++		DEFAULT=$NAME
++		msg "$NAME taken as defult image"
++	else
++		DEFAULT=$first
++		msg "$first taken as defult image"
++	fi
+ elif [ "$def" = nok ] ; then
+ 	die "cannot found default image ($DEFAULT) in $CONFIG_DIR/images"
+ fi

================================================================
Index: SOURCES/PLD.image
diff -u /dev/null SOURCES/PLD.image:1.1
--- /dev/null	Thu Jan  3 19:24:36 2008
+++ SOURCES/PLD.image	Thu Jan  3 19:24:31 2008
@@ -0,0 +1,4 @@
+TYPE=Linux
+ROOT=auto
+KERNEL=/boot/vmlinuz
+INITRD=/boot/initrd
================================================================


More information about the pld-cvs-commit mailing list