wok-tiny rev 153
No hard coded boot menu
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 20 21:15:35 2019 +0200 (2019-09-20) |
parents | 7efc88318579 |
children | 9f53549da10d |
files | ipxe/receipt linux/receipt memtest/receipt plop/receipt |
line diff
1.1 --- a/ipxe/receipt Thu Sep 19 20:20:35 2019 +0200 1.2 +++ b/ipxe/receipt Fri Sep 20 21:15:35 2019 +0200 1.3 @@ -17,3 +17,10 @@ 1.4 mkdir -p $fs/boot 1.5 cp $SOURCES_REPOSITORY/$TARBALL $fs/boot/$PACKAGE 1.6 } 1.7 + 1.8 +# Post install/remove commands for Tazpkg. 1.9 +post_install() 1.10 +{ 1.11 + grep -qs ^ipxe $1/boot/bootmenu || 1.12 + echo "ipxe IPXE,web,zeb,pxe SliTaz web boot" >> $1/boot/bootmenu 1.13 +}
2.1 --- a/linux/receipt Thu Sep 19 20:20:35 2019 +0200 2.2 +++ b/linux/receipt Fri Sep 20 21:15:35 2019 +0200 2.3 @@ -20,7 +20,7 @@ 2.4 INSTALL_DEPENDS="lz4 grep" 2.5 2.6 case "$TARGET" in 2.7 - i486) SUGGESTED="memtest ipxe";; # bundle may install a boot menu 2.8 + i486) SUGGESTED="memtest ipxe plop";; # bundle may install a boot menu 2.9 esac 2.10 2.11 S2bin()
3.1 --- a/memtest/receipt Thu Sep 19 20:20:35 2019 +0200 3.2 +++ b/memtest/receipt Fri Sep 20 21:15:35 2019 +0200 3.3 @@ -17,3 +17,10 @@ 3.4 mkdir -p $fs/boot 3.5 cp $SOURCES_REPOSITORY/$TARBALL $fs/boot/$PACKAGE 3.6 } 3.7 + 3.8 +# Post install/remove commands for Tazpkg. 3.9 +post_install() 3.10 +{ 3.11 + grep -qs ^memtest $1/boot/bootmenu || 3.12 + echo "memtest Memtest,test,mem Check memory" >> $1/boot/bootmenu 3.13 +}
4.1 --- a/plop/receipt Thu Sep 19 20:20:35 2019 +0200 4.2 +++ b/plop/receipt Fri Sep 20 21:15:35 2019 +0200 4.3 @@ -16,6 +16,15 @@ 4.4 # Rules to configure and make the package. 4.5 compile_rules() 4.6 { 4.7 + while read ofs data name; do 4.8 + echo -en "\x$data" | \ 4.9 + dd conv=notrunc of=plpbt.bin bs=1 seek=$((0x$ofs)) 4.10 + done <<EOT 4.11 +0288 00 videoMode=text 4.12 +0295 00 stars=off 4.13 +0299 01 font=bios 4.14 +029A 00 zoomanimation=off 4.15 +EOT 4.16 cp $stuff/*.S $stuff/pack . 4.17 for i in bootloader unpack ; do 4.18 cc -o $i.o -Wa,-a=$i.lst -c $i.S 4.19 @@ -32,3 +41,10 @@ 4.20 mkdir -p $fs/boot 4.21 cp $src/plop $fs/boot/ 4.22 } 4.23 + 4.24 +# Post install/remove commands for Tazpkg. 4.25 +post_install() 4.26 +{ 4.27 + grep -qs ^plop $1/boot/bootmenu || 4.28 + echo "plop Plop,boot Boot manager" >> $1/boot/bootmenu 4.29 +}