From: Alexander Wirt Date: Sat, 21 Apr 2007 09:18:31 +0000 (+0200) Subject: Introduce BOOT_APPEND also to grml-debootstrap X-Git-Tag: 0.9~22 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=dd916bb8959181ad9e54648d1cbf2fd6626c6a81;hp=f0ac72ffdaa75e8965dd8bfbe1bd138996e6bd52 Introduce BOOT_APPEND also to grml-debootstrap --- diff --git a/chroot-script b/chroot-script index d4ebff2..7ee50a9 100644 --- a/chroot-script +++ b/chroot-script @@ -336,7 +336,7 @@ grub() { $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 diff --git a/config b/config index 9a66f30..9467498 100644 --- a/config +++ b/config @@ -40,6 +40,10 @@ GRUB='' # 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... diff --git a/grml-debootstrap b/grml-debootstrap index 23efd5b..d4451cb 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -41,16 +41,17 @@ usage() { echo einfo "Valid options:" echo " - -h|--help Print this usage information and exit. - -v|--version Show summary of options and exit. - - -t|--target Target partition (/dev/...) or directory. - -r|--release Specify release of new Debian system. Supported relases: sarge, etch, lenny and sid. - -m|--mirror Specify mirror which should be used for apt-get/aptitude. - -p|--mntpoint Specify mountpoint that should be used for mounting the target system. - --groot Specify root device for usage in grub (corresponds with \$TARGET). - --grub Where do you want to install grub to? Use grub syntax for specifying. - --password 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 partition (/dev/...) or directory. + -r|--release Specify release of new Debian system. Supported relases: sarge, etch, lenny and sid. + -m|--mirror Specify mirror which should be used for apt-get/aptitude. + -p|--mntpoint Specify mountpoint that should be used for mounting the target system. + --groot Specify root device for usage in grub (corresponds with \$TARGET). + --grub Where do you want to install grub to? Use grub syntax for specifying. + --password Use specified password as password for user root. Use with caution. + --boot_append Add specified appendline to kernel whilst booting " } diff --git a/zsh-completion b/zsh-completion index 1c48e0c..b27c3b4 100644 --- a/zsh-completion +++ b/zsh-completion @@ -17,7 +17,8 @@ _arguments -s '(-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