diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-07-05 18:53:16 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-07-05 19:03:18 +0200 |
commit | 325ab8add83e19c9dacd1b10ef6791441660f63a (patch) | |
tree | 452909123d0b50f71978098403a9740c99f79747 /perl-install/any.pm | |
parent | 767048570e8c44061cb0d6faf689698d3313870c (diff) | |
download | drakx-325ab8add83e19c9dacd1b10ef6791441660f63a.tar drakx-325ab8add83e19c9dacd1b10ef6791441660f63a.tar.gz drakx-325ab8add83e19c9dacd1b10ef6791441660f63a.tar.bz2 drakx-325ab8add83e19c9dacd1b10ef6791441660f63a.tar.xz drakx-325ab8add83e19c9dacd1b10ef6791441660f63a.zip |
restrict fdisk -l output to usefull disks
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r-- | perl-install/any.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index 85d454f88..6809a522f 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -9,6 +9,7 @@ use strict; use common; use detect_devices; use partition_table; +use fs::proc_partitions; use fs::type; use lang; use run_program; @@ -1313,6 +1314,12 @@ sub header { " ********************************************************************************"; } +sub fdisk() { + my @devs = grep { !m!^/dev/(loop|ram)\d+! && !/\d$/ } map { "/dev/$_->{dev}" } fs::proc_partitions::read_raw(); + `fdisk -l @devs`; + +} + sub report_bug { my (@other) = @_; |