mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Merge pull request #618 from Eddy-Wallace/feat/lsblk-arch-hotfix
Hotfix for Issue #610
This commit is contained in:
commit
4c71a2294e
1 changed files with 8 additions and 0 deletions
|
@ -74,6 +74,14 @@ namespace Drivelist
|
|||
d.device = name.toStdString();
|
||||
d.raw = true;
|
||||
d.isVirtual = subsystems == "block";
|
||||
|
||||
// Hot fix for newer lsblk version on Arch based linux distributions.
|
||||
// See issue #610
|
||||
// Only tested with laptop's internal sd card reader.
|
||||
if (!d.isVirtual && subsystems.contains("mmc")) {
|
||||
d.isVirtual = subsystems.contains("block"); //< lsblk will output something like "block:mmc:mmc_host:pci" for key "subsystems".
|
||||
}
|
||||
|
||||
if (bdev["ro"].isBool())
|
||||
{
|
||||
/* With some lsblk versions it is a bool in others a "0" or "1" string */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue