Mercurial > lcfOS
view cos/grub/makegrubfloppy.sh @ 279:2ccd57b1d78c
Fix register allocator to do burn2 OK
author | Windel Bouwman |
---|---|
date | Sat, 12 Oct 2013 09:56:23 +0200 |
parents | 92ace1ca50a8 |
children |
line wrap: on
line source
#!/bin/bash # Creates an empty floppy with grub loader on it. # Filename: FLOPPYFILE=emptybootdisk.img # Create file of 1.44M size: dd if=/dev/zero of=$FLOPPYFILE bs=512 count=2880 # Create filesystem: mkfs.msdos $FLOPPYFILE # Create grub directory: mmd -i $FLOPPYFILE grub # Copy grub files: mcopy -i $FLOPPYFILE /usr/lib/grub/i386-pc/* ::/grub # Run grub commands in batch mode: grub --batch <<THEEND device (fd0) ${FLOPPYFILE} root (fd0) setup (fd0) quit THEEND # List files on floppy: mdir -i $FLOPPYFILE