siderolabs / go-blockdevice

Mozilla Public License 2.0
18 stars 14 forks source link

feat: support detection of squashfs and Talos META #93

Closed smira closed 6 months ago

smira commented 6 months ago

This allows more sane output for discovered blockdevices in Talos.

smira commented 6 months ago

when imported into Talos:

NODE         NAMESPACE   TYPE               ID      VERSION   TYPE        SIZE          DISCOVERED   LABEL       PARTITIONLABEL
172.20.0.5   runtime     DiscoveredVolume   dm-0    1         disk        88080384      xfs          STATE       
172.20.0.5   runtime     DiscoveredVolume   dm-1    1         disk        11605639168   xfs          EPHEMERAL   
172.20.0.5   runtime     DiscoveredVolume   loop0   1         disk        65503232      squashfs                 
172.20.0.5   runtime     DiscoveredVolume   sda     1         disk        10485760000                            
172.20.0.5   runtime     DiscoveredVolume   sdb     1         disk        10485760000                            
172.20.0.5   runtime     DiscoveredVolume   vda     1         disk        12884901888   gpt                      
172.20.0.5   runtime     DiscoveredVolume   vda1    1         partition   104832000     vfat                     EFI
172.20.0.5   runtime     DiscoveredVolume   vda2    1         partition   1048576                                BIOS
172.20.0.5   runtime     DiscoveredVolume   vda3    1         partition   981467136     xfs          BOOT        BOOT
172.20.0.5   runtime     DiscoveredVolume   vda4    3         partition   524288        talosmeta                META
172.20.0.5   runtime     DiscoveredVolume   vda5    1         partition   104857600     luks                     STATE
172.20.0.5   runtime     DiscoveredVolume   vda6    1         partition   11622416384   luks                     EPHEMERAL
smira commented 6 months ago

/m