Mageia Bugzilla – Attachment 4541 Details for
Bug 11812
drakxtools doesn't recognize eMMC as block device (basic patch)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
basic patch
detect_devices_mmc_block.patch (text/plain), 1.05 KB, created by
Luc Menut
on 2013-11-28 21:29:21 CET
(
hide
)
Description:
basic patch
Filename:
MIME Type:
Creator:
Luc Menut
Created:
2013-11-28 21:29:21 CET
Size:
1.05 KB
patch
obsolete
>diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm >index 6f70c92..184a1db 100644 >--- a/perl-install/detect_devices.pm >+++ b/perl-install/detect_devices.pm >@@ -33,7 +33,7 @@ sub get() { > #- 2. The first SCSI device if SCSI exists. Or > #- 3. The first RAID device if RAID exists. > >- getIDE(), getSCSI(), getXenBlk(), getVirtIO(), getDAC960(), getCompaqSmartArray(), getATARAID(); >+ getIDE(), getSCSI(), getMmcBlk(), getXenBlk(), getVirtIO(), getDAC960(), getCompaqSmartArray(), getATARAID(); > } > sub hds() { grep { may_be_a_hd($_) } get() } > sub tapes() { grep { $_->{media_type} eq 'tape' } get() } >@@ -401,6 +401,14 @@ sub getVirtIO() { > glob("/sys/bus/virtio/devices/*/block/*"); > } > >+sub getMmcBlk() { >+ -d '/sys/bus/mmc/devices' or return; >+ map { >+ { device => basename($_), info => "MMC block device", media_type => 'hd', bus => 'mmc' }; >+ } >+ glob("/sys/bus/mmc/devices/*/block/*"); >+} >+ > # cpu_name : arch() =~ /^alpha/ ? "cpu " : > # arch() =~ /^ppc/ ? "processor" : "vendor_id" >
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 6f70c92..184a1db 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -33,7 +33,7 @@ sub get() { #- 2. The first SCSI device if SCSI exists. Or #- 3. The first RAID device if RAID exists. - getIDE(), getSCSI(), getXenBlk(), getVirtIO(), getDAC960(), getCompaqSmartArray(), getATARAID(); + getIDE(), getSCSI(), getMmcBlk(), getXenBlk(), getVirtIO(), getDAC960(), getCompaqSmartArray(), getATARAID(); } sub hds() { grep { may_be_a_hd($_) } get() } sub tapes() { grep { $_->{media_type} eq 'tape' } get() } @@ -401,6 +401,14 @@ sub getVirtIO() { glob("/sys/bus/virtio/devices/*/block/*"); } +sub getMmcBlk() { + -d '/sys/bus/mmc/devices' or return; + map { + { device => basename($_), info => "MMC block device", media_type => 'hd', bus => 'mmc' }; + } + glob("/sys/bus/mmc/devices/*/block/*"); +} + # cpu_name : arch() =~ /^alpha/ ? "cpu " : # arch() =~ /^ppc/ ? "processor" : "vendor_id"
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 11812
:
4540
| 4541 |
4542