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 · 1 comment
Open

support more disk lookup keys #45

dwlehman opened this issue Oct 11, 2019 · 1 comment
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.

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

2 participants