From d0e2a1c7bc89a7d44a762c214b9b3e07406aac8a Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 8 Oct 2004 01:47:18 +0000 Subject: on a recent kernel, we remove any existing devfs= kernel option to enable udev --- perl-install/bootloader.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index ff5fc4c70..83e4fbf95 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -422,7 +422,16 @@ sub add_kernel { type => 'image', label => kernel_str2label($kernel_str), }); - $v->{append} = normalize_append("$bootloader->{perImageAppend} $v->{append}"); + + #- normalize append and handle special options + { + my ($simple, $dict) = unpack_append("$bootloader->{perImageAppend} $v->{append}"); + if (-e "$::prefix/sbin/udev" && $kernel_str->{version} =~ /^2\.(\d+\.\d+)/ && $1 >= 6.8) { + log::l("it is a recent kernel, so we remove any existing devfs= kernel option to enable udev"); + @$dict = grep { $_->[0] ne 'devfs' } @$dict; + } + $v->{append} = pack_append($simple, $dict); + } #- new versions of yaboot don't handle symlinks $b_nolink ||= arch() =~ /ppc/; -- cgit v1.2.1