Hi,
I've made a linuxboot-CD with GRUB as bootloader and found out a nice
feature.
You can specify a default entry to boot and a fallback if the default
does not work. This way I can install new i. e. blank harddisks by just
putting the cd into the drive and walk away. The first time GRUB uses
the fallback entry - booting unattended, the second time it uses the
default und boots into the windows setup.
Here is my menu.lst:
# Set the default entry to the entry number NUM. Numbering starts from
0, and
# the entry number 0 is the default if the command is not used.
#
default 0
# Fallback to the second entry.
fallback 1
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the
default entry
# (normally the first entry defined).
timeout 10
# Pretty colours
color cyan/blue white/blue
# German keys
setkey z y
setkey Z Y
setkey y z
setkey Y Z
#
#
setkey equal parenright
setkey parenright parenleft
setkey doublequote at
setkey backquote equal
setkey parenleft asterisk
setkey plus bracketright
setkey minus slash
setkey ampersand caret
setkey numbersign less
setkey slash ampersand
setkey underscore question
setkey question underscore
setkey semicolon less
setkey less backslash
setkey colon greater
setkey greater bar
setkey asterisk braceright
setkey backslash minus
setkey caret backquote
title Installed Windows 2000/XP
root (hd0,0)
makeactive
chainloader +1
title Unattended Installation
root (cd)
kernel /boot/bzImage z_user=install z_pass=password
z_path=\\192.168.0.1\install
initrd /boot/initrd
It's not much different to isolinux. My directory structure follows:
iso
`-- boot
|-- bzImage
|-- grub
| |-- menu.lst
| `-- stage2_eltorito
`-- initrd
To make the iso image file (from GRUB manual):
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot \
-boot-load-size 4 -boot-info-table -o grub.iso iso
Maybe this can be considered for future versions of unatteded if/when
there are others who find it useful.
Regards
Thomas
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
unattended-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-devel