mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
decode-panic deal with kextload
kextload won't handle -arch. deal appropriately. Change-Id: Iac7dac9b484e44b9610da028027aadbd94cfe151 Reviewed-on: http://gerrit.openafs.org/1246 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
521b3363aa
commit
b80efa48f4
@ -305,30 +305,53 @@ sub generate_symbol_files {
|
|||||||
my $kernel = shift;
|
my $kernel = shift;
|
||||||
my $kext = shift;
|
my $kext = shift;
|
||||||
|
|
||||||
if ($kernel eq "/mach_kernel") {
|
if ($kextprog eq $kextload) {
|
||||||
if ($option_verbose) {
|
if ($kernel eq "/mach_kernel") {
|
||||||
print "$kextprog -k $kernel -s $temp_dir -arch $kextarch -a org.openafs.filesystems.afs\@${kernel_address} -n $kext\n";
|
if ($option_verbose) {
|
||||||
|
print "$kextprog -k $kernel -s $temp_dir -a org.openafs.filesystems.afs\@${kernel_address} -n $kext\n";
|
||||||
|
}
|
||||||
|
system( $kextprog,
|
||||||
|
"-k", $kernel,
|
||||||
|
"-s", $temp_dir,
|
||||||
|
"-a", 'org.openafs.filesystems.afs@' . $kernel_address,
|
||||||
|
"-n", $kext );
|
||||||
|
} else {
|
||||||
|
if ($option_verbose) {
|
||||||
|
print "$kextprog -c -e -r $temp_dir -k $kernel -s $temp_dir -a org.openafs.filesystems.afs\@${kernel_address} -n $kext\n";
|
||||||
|
}
|
||||||
|
system( $kextprog,
|
||||||
|
"-c", "-e",
|
||||||
|
"-r", $temp_dir,
|
||||||
|
"-k", $kernel,
|
||||||
|
"-s", $temp_dir,
|
||||||
|
"-a", 'org.openafs.filesystems.afs@' . $kernel_address,
|
||||||
|
"-n", $kext );
|
||||||
}
|
}
|
||||||
system( $kextprog,
|
|
||||||
"-k", $kernel,
|
|
||||||
"-s", $temp_dir,
|
|
||||||
"-arch", $kextarch,
|
|
||||||
"-a", 'org.openafs.filesystems.afs@' . $kernel_address,
|
|
||||||
"-n", $kext );
|
|
||||||
} else {
|
} else {
|
||||||
if ($option_verbose) {
|
if ($kernel eq "/mach_kernel") {
|
||||||
print "$kextprog -c -e -r $temp_dir -k $kernel -s $temp_dir -arch $kextarch -a org.openafs.filesystems.afs\@${kernel_address} -n $kext\n";
|
if ($option_verbose) {
|
||||||
|
print "$kextprog -k $kernel -s $temp_dir -arch $kextarch -a org.openafs.filesystems.afs\@${kernel_address} -n $kext\n";
|
||||||
|
}
|
||||||
|
system( $kextprog,
|
||||||
|
"-k", $kernel,
|
||||||
|
"-s", $temp_dir,
|
||||||
|
"-arch", $kextarch,
|
||||||
|
"-a", 'org.openafs.filesystems.afs@' . $kernel_address,
|
||||||
|
"-n", $kext );
|
||||||
|
} else {
|
||||||
|
if ($option_verbose) {
|
||||||
|
print "$kextprog -c -e -r $temp_dir -k $kernel -s $temp_dir -arch $kextarch -a org.openafs.filesystems.afs\@${kernel_address} -n $kext\n";
|
||||||
|
}
|
||||||
|
system( $kextprog,
|
||||||
|
"-c", "-e",
|
||||||
|
"-r", $temp_dir,
|
||||||
|
"-k", $kernel,
|
||||||
|
"-s", $temp_dir,
|
||||||
|
"-arch", $kextarch,
|
||||||
|
"-a", 'org.openafs.filesystems.afs@' . $kernel_address,
|
||||||
|
"-n", $kext );
|
||||||
}
|
}
|
||||||
system( $kextprog,
|
}
|
||||||
"-c", "-e",
|
|
||||||
"-r", $temp_dir,
|
|
||||||
"-k", $kernel,
|
|
||||||
"-s", $temp_dir,
|
|
||||||
"-arch", $kextarch,
|
|
||||||
"-a", 'org.openafs.filesystems.afs@' . $kernel_address,
|
|
||||||
"-n", $kext );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( $CHILD_ERROR ) {
|
if ( $CHILD_ERROR ) {
|
||||||
# error
|
# error
|
||||||
croak "kextload failed to run: $OS_ERROR\n";
|
croak "kextload failed to run: $OS_ERROR\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user