Introduce BOOT_APPEND also to grml-debootstrap
authorAlexander Wirt <formorer@grml.org>
Sat, 21 Apr 2007 09:18:31 +0000 (11:18 +0200)
committerAlexander Wirt <formorer@grml.org>
Sat, 21 Apr 2007 09:18:31 +0000 (11:18 +0200)
chroot-script
config
grml-debootstrap
zsh-completion

index d4ebff2..7ee50a9 100644 (file)
@@ -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 (file)
--- 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...
 
index 23efd5b..d4451cb 100755 (executable)
@@ -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>   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
 
 "
 }
index 1c48e0c..b27c3b4 100644 (file)
@@ -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