-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: provide stable symlinks in disk resources
This allows to grab various `/dev/disk` symlinks, including in maintenance mode when `talosctl ls` is not allowed. Samle output: ```yaml node: 172.20.0.5 metadata: namespace: runtime type: Disks.block.talos.dev id: nvme0n2 version: 2 owner: block.DisksController phase: running created: 2025-01-23T12:57:08Z updated: 2025-01-23T12:57:09Z spec: dev_path: /dev/nvme0n2 size: 5368709120 pretty_size: 5.4 GB io_size: 512 sector_size: 512 readonly: false cdrom: false model: QEMU NVMe Ctrl serial: deadbeef wwid: nvme.1b36-6465616462656566-51454d55204e564d65204374726c-00000002 bus_path: /pci0000:00/0000:00:08.0/nvme sub_system: /sys/class/block transport: nvme symlinks: - /dev/disk/by-diskseq/11 - /dev/disk/by-id/nvme-QEMU_NVMe_Ctrl_deadbeef_2 - /dev/disk/by-id/nvme-nvme.1b36-6465616462656566-51454d55204e564d65204374726c-00000002 - /dev/disk/by-path/pci-0000:00:08.0-nvme-2 ``` Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
- Loading branch information
Showing
17 changed files
with
1,012 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.