Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support more disk lookup keys #45

Open
dwlehman opened this issue Oct 11, 2019 · 2 comments
Open

support more disk lookup keys #45

dwlehman opened this issue Oct 11, 2019 · 2 comments
Assignees

Comments

@dwlehman
Copy link
Collaborator

The current support in blivet does not include support for:

  1. /dev/disk/ symlinks
  2. WWN/WWID
@dwlehman dwlehman self-assigned this Oct 11, 2019
@pcahyna
Copy link
Member

pcahyna commented Oct 11, 2019

you said in #35 (comment) that it supports /dev/disk/ symlinks. I just tried and this works:

      storage_volumes:
        - name: barefs
          type: disk
          disks:
            # /dev/vdc
            - /dev/disk/by-path/virtio-pci-0000:08:00.0
          fs_type: ext4
          mount_point: /mnt/barefs

A symlink to a partition does not work though.
I wonder why is it necessary to add support for block device types one by one? Can't the role just use any block device node or a symlink to it? Tools usually don't care what device type they are working on or whether it is a symlink: they can just open() the path and the kernel handles all for them.

@azrdev
Copy link

azrdev commented Oct 26, 2024

Maybe this is a different Feature request, but: AIUI no matter what you put in disks:, it will always identify the disks in the generated /etc/fstab by UUID=, I cannot (but would like to) use e.g. LABEL= generated from fs_label:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants