grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

simple shell script for installation


From: Yoshinori K. Okuji
Subject: simple shell script for installation
Date: Sat, 29 Jan 2005 23:38:28 +0100
User-agent: KMail/1.7.1

I don't remember if I have already posted this script to this list. I'm 
using this script to make a floppy image on PC:

#! /bin/sh

file=$HOME/work/grub2/objs/floppy.img

./grub-mkimage -d . -v -o core.img chain fat
mkdosfs $file
sudo mount -o loop -t vfat $file /mnt/loop
sudo mkdir -p /mnt/loop/boot/grub
sudo cp boot.img core.img *.mod /mnt/loop/boot/grub
test -f grub.cfg && sudo cp -f grub.cfg /mnt/loop/boot/grub
sudo ./grub-setup -d /mnt/loop/boot/grub -v -r '(fd0)' -m device.map 
'(fd0)'
sudo umount /mnt/loop


After running this script, I simply do "qemu -fda floppy.img".

I guess you have your own script, but I hope this helps some people.

Okuji




reply via email to

[Prev in Thread] Current Thread [Next in Thread]