# HG changeset patch # User Pascal Bellard # Date 1337686858 -7200 # Node ID e1f0bb1ee5773b6c5b5c602df9599bc81cedef59 # Parent 082d59f85261ffec1225e43330fba3b8c7472f06 linux: bootloader.sh may insert doc files in boot floppies diff -r 082d59f85261 -r e1f0bb1ee577 linux/stuff/bootloader.sh --- a/linux/stuff/bootloader.sh Tue May 22 13:16:18 2012 +0200 +++ b/linux/stuff/bootloader.sh Tue May 22 13:40:58 2012 +0200 @@ -9,7 +9,7 @@ usage() { cat < /dev/null) store 16 $RootDevOfs $RDEV $bs RDEV + # Info text after setup + if [ -s "$INFOFILE" ]; then + patch 048 9a:00:00:00:90 $bs lcall displayinfo + uudecode >$bs.infotext <>$bs.infotext + if [ $Version -lt 514 ]; then + store 16 0x050 0x0022 $bs.infotext + fi + ddq if=/dev/zero bs=512 count=1 >>$bs.infotext + n=$(($(stat -c %s $bs.infotext)/512)) + ddq if=$bs.infotext count=$n bs=512 >> $bs + rm -f $bs.infotext + store 8 0x1F1 $(($setupsz+$n)) $bs update setup size + store 8 0x04A $((2+2*$setupsz)) $bs update displayinfo call + fi + # Store cmdline after setup if [ -n "$CMDLINE" ]; then echo -n "$CMDLINE" | ddq bs=512 count=1 conv=sync >> $bs @@ -240,7 +263,7 @@ # Output kernel code syssz=$(( ($(getlong 0x1F4 $bs)+31)/32 )) - cat $KERNEL /dev/zero | ddq bs=512 skip=$(( $setupsz+1 )) count=$syssz + cat $KERNEL /dev/zero | ddq bs=512 skip=$(( $setupsz+1 )) count=$syssz conv=sync # Output initramfs for i in $( echo $INITRD | sed 's/,/ /' ); do