retro-imager/src/linux
Dmytro Aleksandrov 701f03ec94 Explicitly add '--tree' to the lsblk to remove partitions from top level output
After trimming the lsblk output by listing only required columns (see [1]), the output includes not only the disk devices, but also their partitions, which significantly clutters the device selection dialog.

This happens becuase the "--output" argument [2] defaults to using "--tree", but only if the column "NAME" is outputed, which in current state doesn't (only "kname" is used). So that all child elements (e.g. partitions) are listed on the same level with disk devices.

Thus ist's proposed to explicitly add "--tree" argument, so that we don't
rely on lsblk CLI intricacies

[1] baae3c7641
[2] https://www.mankier.com/8/lsblk#--output
2024-09-30 12:05:28 +01:00
..
acceleratedcryptographichash_gnutls.cpp AcceleratedCryptographicHash: Use platform capabilities 2024-09-11 17:12:48 +01:00
linuxdrivelist.cpp Explicitly add '--tree' to the lsblk to remove partitions from top level output 2024-09-30 12:05:28 +01:00
networkmanagerapi.cpp Fix BSD wifi support 2024-01-06 15:27:14 +01:00
networkmanagerapi.h Refactor WLAN PSK retrieval code 2023-03-10 18:37:22 +01:00
org.raspberrypi.rpi-imager.desktop linux: Appimage packaging 2024-09-11 17:12:48 +01:00
stpanalyzer.cpp Embedded: fix network detection 2024-01-15 00:16:43 +01:00
stpanalyzer.h Embedded: fix network detection 2024-01-15 00:16:43 +01:00
udisks2api.cpp Linux udisks2: force kernel to rescan MBR before ejection 2023-03-30 16:26:26 +02:00
udisks2api.h udisks2: add support for 'safely removing storage' 2023-03-24 15:33:54 +01:00