diff --git a/src/packaging/MacOS/decode-panic b/src/packaging/MacOS/decode-panic index cd7c874f99..42fc1bd2e8 100755 --- a/src/packaging/MacOS/decode-panic +++ b/src/packaging/MacOS/decode-panic @@ -305,30 +305,53 @@ sub generate_symbol_files { my $kernel = shift; my $kext = shift; - if ($kernel eq "/mach_kernel") { - if ($option_verbose) { - print "$kextprog -k $kernel -s $temp_dir -arch $kextarch -a org.openafs.filesystems.afs\@${kernel_address} -n $kext\n"; + if ($kextprog eq $kextload) { + if ($kernel eq "/mach_kernel") { + 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 { - 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"; + if ($kernel eq "/mach_kernel") { + 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 ) { # error croak "kextload failed to run: $OS_ERROR\n";