From 31a454b0be1c0fbe4e60e347a14ffe7a6303f56d Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Wed, 19 Mar 2003 16:21:24 +0000 Subject: added support for passing kernel options to oem scrpit. --- rescue/tree/etc/oem | 6 +++++- rescue/tree/etc/oem-all | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/rescue/tree/etc/oem b/rescue/tree/etc/oem index bf31cbda7..d8a8125c5 100755 --- a/rescue/tree/etc/oem +++ b/rescue/tree/etc/oem @@ -117,6 +117,9 @@ unless (-e "/cdrom/VERSION") { system "mount", "-r", "-t", "iso9660", "/dev/$cd", "/cdrom"; } +#- default options to be used. +$options{kernel} = "acpi=off"; + #- detect language used and default options. my ($lang, $flang, $charset); open F, "/cdrom/VERSION" or die "no installation cdrom found on $cd"; @@ -125,6 +128,7 @@ while () { /\[lang[=:]([^]]*)\]/ and $options{lang} = $1; /[\[\-]server[\]\-]/ and $options{server} = ''; /\[boot_entries[=:]([^]]*)\]/ and $options{boot_entries} = $1; + /\[kernel[=:]([^]]*)\]/ and $options{kernel} = $1; /\[ext2\]/ and $options{fs} = "ext2"; /\[ext3\]/ and $options{fs} = "ext3"; } @@ -477,7 +481,7 @@ if (defined $resize_fat_size) { print F "timeout 0\n\n"; print F "title oem\n"; } -print F "kernel (hd0,$instz)/boot/vmlinuz ramdisk_size=128000 acpi=off automatic=method:disk,disk:$hd,partition:$hdp$inst,directory:/ hd vga=788 fbeginner flang=$lang oem defcfg=/tmp/hdimage/Mandrake/oem_patch.pl\n"; +print F "kernel (hd0,$instz)/boot/vmlinuz ramdisk_size=128000 $options{kernel} automatic=method:disk,disk:$hd,partition:$hdp$inst,directory:/ hd vga=788 fbeginner flang=$lang oem defcfg=/tmp/hdimage/Mandrake/oem_patch.pl\n"; print F "initrd (hd0,$instz)/boot/all.rdz\n"; #- if a windows partition is available, add an entrie for it. if (defined $resize_fat_size) { diff --git a/rescue/tree/etc/oem-all b/rescue/tree/etc/oem-all index f4aa357d0..b80e96694 100755 --- a/rescue/tree/etc/oem-all +++ b/rescue/tree/etc/oem-all @@ -122,6 +122,7 @@ $options{free_size} = 500; $options{free_primary} = 1; $options{free_fs} = 'fat16'; $options{boot_entries} = 'linux,linux-nonfb,failsafe,floppy'; +$options{kernel} = "acpi=off"; open F, "/cdrom/VERSION" or die "no installation cdrom found on $cd"; while () { @@ -490,7 +491,7 @@ if (defined $resize_fat_size) { print F "timeout 0\n\n"; print F "title oem\n"; } -print F "kernel (hd0,$instz)/boot/vmlinuz ramdisk_size=128000 acpi=off automatic=method:disk,disk:$hd,partition:$hdp$inst,directory:/ hd vga=788 fbeginner oem defcfg=/tmp/hdimage/Mandrake/oem_patch.pl\n"; +print F "kernel (hd0,$instz)/boot/vmlinuz ramdisk_size=128000 $options{kernel} automatic=method:disk,disk:$hd,partition:$hdp$inst,directory:/ hd vga=788 fbeginner oem defcfg=/tmp/hdimage/Mandrake/oem_patch.pl\n"; print F "initrd (hd0,$instz)/boot/all.rdz\n"; #- if a windows partition is available, add an entrie for it. if (defined $resize_fat_size) { -- cgit v1.2.1