summaryrefslogtreecommitdiffstats
path: root/make_boot_img
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-02-26 09:37:30 +0000
committerFrancois Pons <fpons@mandriva.com>2003-02-26 09:37:30 +0000
commitde7030d38a742d2bde8ce3155c824a003dbfa19e (patch)
treea595edb164e309e3a10928103992c12231e18249 /make_boot_img
parent61305fb342b977a3f1b4b231935f404d037ae3e7 (diff)
downloaddrakx-de7030d38a742d2bde8ce3155c824a003dbfa19e.tar
drakx-de7030d38a742d2bde8ce3155c824a003dbfa19e.tar.gz
drakx-de7030d38a742d2bde8ce3155c824a003dbfa19e.tar.bz2
drakx-de7030d38a742d2bde8ce3155c824a003dbfa19e.tar.xz
drakx-de7030d38a742d2bde8ce3155c824a003dbfa19e.zip
added acpi entries with activated acpi.
Diffstat (limited to 'make_boot_img')
-rwxr-xr-xmake_boot_img11
1 files changed, 7 insertions, 4 deletions
diff --git a/make_boot_img b/make_boot_img
index 7f5482d8b..0534aac04 100755
--- a/make_boot_img
+++ b/make_boot_img
@@ -14,7 +14,8 @@ my ($arch) = $Config{archname} =~ /(.*?)-/;
rename 'all.kernels', 'kernel/all.kernels';
rename 'all.modules', 'kernel/all.modules';
-$default_append = "ramdisk_size=128000 root=/dev/ram3 acpi=off";
+$default_append = "ramdisk_size=128000 root=/dev/ram3";
+$default_acpi = "acpi=off";
$default_vga = "vga=788";
$instdir = "mdk-stage1";
@@ -154,8 +155,10 @@ sub entries_append {
rescue => "rescue rw",
);
my @entries = (
- (map { $_->[0] => "$automatic $_->[1]" } group_by2(@simple_entries)),
- if_(member($type, "cdrom", "all"), oem => "automatic=method:cdrom $default_vga rescue oem rw"),
+ (map { $_->[0] => "$automatic $default_acpi $_->[1]" } group_by2(@simple_entries)),
+ if_(member($type, "cdrom", "all"),
+ oem => "automatic=method:cdrom $default_vga rescue oem rw",
+ acpi => "$default_vga acpi=on"),
if_($type eq "all", all => "pcmcia $default_vga"),
);
@@ -639,7 +642,7 @@ F2 advanced.msg
. join('', map_index {
"label alt$::i
kernel alt$::i/vmlinuz
- append initrd=alt$::i/all.rdz $default_append $default_vga
+ append initrd=alt$::i/all.rdz $default_append $default_acpi $default_vga
" } @kernels);
output "isolinux/help.msg", (-e "isolinux/boot.msg" && pack "C*", 0x0E, 0x80, 0x03, 0x00) .