Add support for kernel options to be removed from the BOOTMFS kernel
and loaded as modules, not just kernel devices.
This commit is contained in:
parent
64c5487f60
commit
473443adc0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95850
@ -39,7 +39,11 @@ open CONFIG, "< $config" or die "Cannot open $config.\n";
|
||||
while (<CONFIG>) {
|
||||
s/#.*$//;
|
||||
if (/^(\w+)\s+(\w+)\s+(\d+)\s+(\w+)\s+\"(.*)\"\s*$/) {
|
||||
$drivers{$1} = 1;
|
||||
if ($4 eq "options") {
|
||||
$options{$1} = 1;
|
||||
} else {
|
||||
$drivers{$1} = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
close CONFIG;
|
||||
@ -47,6 +51,7 @@ close CONFIG;
|
||||
open BOOTMFS, "< $bootmfs" or die "Cannot open $bootmfs.\n";
|
||||
while (<BOOTMFS>) {
|
||||
next if (/^device\s+(\w+)/ && $drivers{$1});
|
||||
next if (/^options\s+(\w+)/ && $options{$1});
|
||||
push @bootmfs, $_;
|
||||
}
|
||||
close BOOTMFS;
|
||||
|
Loading…
Reference in New Issue
Block a user