diff --git a/debian/changelog b/debian/changelog index 81f26c97..1eeceeec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -23,6 +23,8 @@ debian-cd (2.2.23) unstable; UNRELEASED - Completed access cd-drivers transition. - d-i renamed syslinux.txt to boot.txt, us new name instead of renaming file from d-i. + - Use isolinux config files included in the d-i debian-cd_info tarball + so it does not need to be maintained in both places. * Stephen R. Marenka - Changed m68k boot for etch to handle etch changes in d-i. diff --git a/tools/boot/etch/boot-amd64 b/tools/boot/etch/boot-amd64 index 04c01d0d..b04c2b0b 100755 --- a/tools/boot/etch/boot-amd64 +++ b/tools/boot/etch/boot-amd64 @@ -66,41 +66,17 @@ cp -lf cdrom/vmlinuz $CDDIR/install/ cp -lf cdrom/initrd.gz $CDDIR/install/ echo -n "-cache-inodes -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table " > $N.mkisofs_opts -cat > boot$N/isolinux/isolinux.cfg < $CDDIR/install/sbm.bin # Keep the original file timestamp touch -r $BASEDIR/data/$DI_CODENAME/sbm.bin.gz $CDDIR/install/sbm.bin cp -p $BASEDIR/data/$DI_CODENAME/README.sbm $CDDIR/install/ -# Isolinux help files come from d-i. +# Isolinux setup including config and help files comes from d-i. cat cdrom/debian-cd_info.tar.gz | (cd boot$N/isolinux/; tar zx) if [ -e boot$N/isolinux/f3.txt.only26 ];then mv boot$N/isolinux/f3.txt.only26 boot$N/isolinux/f3.txt fi + if [ "$SPLASHPNG" ] ; then # Insert our own splash screen. Color index 15 is # background, and index 7 is foreground. Set to black and @@ -109,6 +85,12 @@ if [ "$SPLASHPNG" ] ; then ppmtolss16 "#ffffff=7" "#000000=15" > boot$N/isolinux/splash.rle fi +if [ -n "$KERNEL_PARAMS" ]; then + # Substitute custom kernel params into the isolinux config + # file. + sed -i "s/append /append $KERNEL_PARAMS/" boot$N/isolinux/isolinux.cfg +fi + # write final lines to mkisofs_opts echo -n "boot$N " >> $N.mkisofs_opts diff --git a/tools/boot/etch/boot-i386 b/tools/boot/etch/boot-i386 index 79553851..868fb8ce 100755 --- a/tools/boot/etch/boot-i386 +++ b/tools/boot/etch/boot-i386 @@ -111,75 +111,6 @@ else fi fi -write_isolinux_config () { - cat > boot$N/isolinux/isolinux.cfg < boot$N/isolinux/isolinux.cfg < boot$N/isolinux/splash.rle fi + + if [ -n "$KERNEL_PARAMS" ]; then + # Substitute custom kernel params into the isolinux config + # file. + sed -i "s/append /append $KERNEL_PARAMS/" boot$N/isolinux/isolinux.cfg + fi fi # Add autorun if we have README.html