From a8e02eb1639876f9f60f3f2031b774eee59fd02f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Wed, 25 Aug 2004 05:21:51 +0000 Subject: handle nolapic, idle=poll, ide=nodma boot options --- perl-install/install_steps.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 832b37a53..f6fc97b2f 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -808,6 +808,15 @@ sub setupBootloaderBefore { if (cat_("/proc/cmdline") =~ /\bnoapic/) { bootloader::set_append($o->{bootloader}, 'noapic'); } + if (cat_("/proc/cmdline") =~ /\bnolapic/) { + bootloader::set_append($o->{bootloader}, 'nolapic'); + } + if (cat_("/proc/cmdline") =~ /\b(idle)=(\S+)/) { + bootloader::set_append($o->{bootloader}, $1, $2); + } + if (cat_("/proc/cmdline") =~ /ide=nodma/) { + bootloader::set_append($o->{bootloader}, 'ide', 'nodma'); + } my ($MemTotal) = cat_("/proc/meminfo") =~ /^MemTotal:\s*(\d+)/m; if (my ($biggest_swap) = sort { $b->{size} <=> $a->{size} } grep { isSwap($_) } @{$o->{fstab}}) { log::l("MemTotal: $MemTotal < ", $biggest_swap->{size} / 2); -- cgit v1.2.1