$UPDATEGRUB -y
if [ -f /boot/grub/menu.lst ] ; then
sed -i "s/^# groot=.*/# groot=(${GROOT})/g" /boot/grub/menu.lst
- sed -i "s|^# kopt=root=.*|# kopt=root=${TARGET} ro|g" /boot/grub/menu.lst
+ sed -i "s|^# kopt=root=.*|# kopt=root=${TARGET} ro ${BOOT_APPEND}|g" /boot/grub/menu.lst
# not sure why savedefault does not work for me; any ideas?
sed -i "s/^savedefault.*/# &/g" /boot/grub/menu.lst
$UPDATEGRUB -y
# GROOT='hd0,0'
GROOT=''
+# specifiy additional bootparameters for usage in grub
+# e.g. "pci=nomsi"
+BOOT_APPEND=''
+
################################################################################
# Now the variables you might want to adjust, but need not to...
echo
einfo "Valid options:"
echo "
- -h|--help Print this usage information and exit.
- -v|--version Show summary of options and exit.
-
- -t|--target <target> Target partition (/dev/...) or directory.
- -r|--release <release> Specify release of new Debian system. Supported relases: sarge, etch, lenny and sid.
- -m|--mirror <URL> Specify mirror which should be used for apt-get/aptitude.
- -p|--mntpoint <mnt> Specify mountpoint that should be used for mounting the target system.
- --groot <device> Specify root device for usage in grub (corresponds with \$TARGET).
- --grub <device> Where do you want to install grub to? Use grub syntax for specifying.
- --password <pwd> Use specified password as password for user root. Use with caution.
+ -h|--help Print this usage information and exit.
+ -v|--version Show summary of options and exit.
+
+ -t|--target <target> Target partition (/dev/...) or directory.
+ -r|--release <release> Specify release of new Debian system. Supported relases: sarge, etch, lenny and sid.
+ -m|--mirror <URL> Specify mirror which should be used for apt-get/aptitude.
+ -p|--mntpoint <mnt> Specify mountpoint that should be used for mounting the target system.
+ --groot <device> Specify root device for usage in grub (corresponds with \$TARGET).
+ --grub <device> Where do you want to install grub to? Use grub syntax for specifying.
+ --password <pwd> Use specified password as password for user root. Use with caution.
+ --boot_append <appendline> Add specified appendline to kernel whilst booting
"
}
'(-t --target)'{-t,--target}'[target partition or directory]:device or directory:_path_files' \
'--grub[installation device for grub]:grub syntax' \
'--groot[root device for usage in grub]:grub syntax' \
- '--password[specify password for root user]'
+ '--password[specify password for root user]' \
+ '--boot_append[appendline for kernel]'
## END OF FILE #################################################################
# vim:ft=zsh