Changeset 2468 in MondoRescue
- Timestamp:
- Nov 3, 2009, 4:40:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/mr/lib/MondoRescue/Inventory.pm
r2467 r2468 59 59 # FS/swaps 60 60 # LVM / ... 61 # PCI / USB / lssd / ... 61 62 # messages/dmesg 62 63 # Kernel / Initrd 63 64 # Kernel Modules 64 65 # cmdline 66 } 65 67 68 sub mr_inv_hw_context { 69 70 my %pb; 71 my ($ddir, $dver, $dfam); 72 my $cmdline = "/dev/null"; 73 ($ddir, $dver, $dfam, $pb{'dtype'}, $pb{'suf'}, $pb{'upd'}, $pb{'arch'}) = pb_distro_init(); 74 pb_log(2,"DEBUG: distro tuple: ".Dumper($ddir, $dver, $dfam, $pb{'dtype'}, $pb{'suf'})."\n"); 75 76 if (($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 } 81 return(pb_get_content($cmdline)); 66 82 } 67 83
Note:
See TracChangeset
for help on using the changeset viewer.