Changeset 2468


Ignore:
Timestamp:
Nov 3, 2009, 4:40:57 PM (10 years ago)
Author:
bruno
Message:

Inventory precisions added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/mr/lib/MondoRescue/Inventory.pm

    r2467 r2468  
    5959    # FS/swaps
    6060    # LVM / ...
     61    # PCI / USB / lssd / ...
    6162    # messages/dmesg
    6263    # Kernel / Initrd
    6364    # Kernel Modules
    6465    # cmdline
     66}
    6567
     68sub mr_inv_hw_context {
     69
     70my %pb;
     71my ($ddir, $dver, $dfam);
     72my $cmdline = "/dev/null";
     73($ddir, $dver, $dfam, $pb{'dtype'}, $pb{'suf'}, $pb{'upd'}, $pb{'arch'}) = pb_distro_init();
     74pb_log(2,"DEBUG: distro tuple: ".Dumper($ddir, $dver, $dfam, $pb{'dtype'}, $pb{'suf'})."\n");
     75
     76if (($pb{{'dtype'} eq "rpm") || ($pb{{'dtype'} eq "deb") || ($pb{{'dtype'} eq "ebuild") || ($pb{{'dtype'} eq "tgz")) {
     77    cmdline = "/proc/cmdline";
     78} elsif ($pb{{'dtype'} eq "pkg") {
     79    cmdline = "/proc/cmdline";
     80}
     81return(pb_get_content($cmdline));
    6682}
    6783
Note: See TracChangeset for help on using the changeset viewer.