summaryrefslogtreecommitdiffstats
path: root/rescue/tree/etc/oem
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-03-19 16:21:24 +0000
committerFrancois Pons <fpons@mandriva.com>2003-03-19 16:21:24 +0000
commit31a454b0be1c0fbe4e60e347a14ffe7a6303f56d (patch)
tree28c92af692af208fa2b337713cc020e0ead3a679 /rescue/tree/etc/oem
parent74177e6e2b96d3b96f2bea8ea00d4446f0020070 (diff)
downloaddrakx-backup-do-not-use-31a454b0be1c0fbe4e60e347a14ffe7a6303f56d.tar
drakx-backup-do-not-use-31a454b0be1c0fbe4e60e347a14ffe7a6303f56d.tar.gz
drakx-backup-do-not-use-31a454b0be1c0fbe4e60e347a14ffe7a6303f56d.tar.bz2
drakx-backup-do-not-use-31a454b0be1c0fbe4e60e347a14ffe7a6303f56d.tar.xz
drakx-backup-do-not-use-31a454b0be1c0fbe4e60e347a14ffe7a6303f56d.zip
added support for passing kernel options to oem scrpit.
Diffstat (limited to 'rescue/tree/etc/oem')
-rwxr-xr-xrescue/tree/etc/oem6
1 files changed, 5 insertions, 1 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 (<F>) {
/\[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) {