Changeset 3908 in MondoRescue


Ignore:
Timestamp:
May 8, 2025, 5:11:26 PM (6 weeks ago)
Author:
Bruno Cornec
Message:

Debian 11 support for module detection patch from Christoph.Griesbeck_at_de.fkdelvotec.com

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/MondoRescue/lib/MondoRescue/Kernel.pm

    r3781 r3908  
    137137    pb_log(1,"Analyzing $m\n");
    138138    if (not defined $modpath{$m}) {
    139         pb_log(1,"WARNING: No modpath for module $m\n");
    140         next;
     139        # Useful for Debian 11+ distros
     140        my $mm;
     141        $mm = $m;
     142        $mm =~ tr/_/-/;
     143        $mm =~ s/x86-64/x86_64/g;
     144        if (defined $modpath{$mm}) {
     145            $m = $mm;
     146        } else {
     147            pb_log(1,"WARNING: No modpath for module $m\n");
     148            next;
     149        }
    141150    }
    142151    pb_log(2,"$m has a modpath of $modpath{$m}\n");
Note: See TracChangeset for help on using the changeset viewer.