-
Notifications
You must be signed in to change notification settings - Fork 59
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
Create /dev/disk/* symlink to boot disk, for use by Ignition config #759
Comments
I don't think udev rules natively have a way to take action based on the properties of a child device. In principle we could shell out to a script, though. However: if we do this with udev, race conditions could be a concern. At some point during ignition-disks, the boot device will no longer have a recognizable rootfs on it, and udev will remove the symlink. Ignition device aliases should handle this, if the symlink is only used to partition the disk. But if the config tries to reuse the symlink e.g. to put a filesystem on the whole-disk device for the original boot disk, it may fail. We might want to create the symlink programmatically from a systemd service, instead. That would avoid any possible races. Plus, we're used to sequencing systemd units in the initrd, and less used to debugging udev interactions. |
This is also related to...some tracker issue where we discussed discovering the boot disk and how for us that boils down to our GRUB config hardcoding Because this refers to the Agree that systemd unit makes the most sense; we can just explicitly sequence it where we want. |
Right.
Yep. |
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 As long as `cores-root-disk` symlink isn't managed by `udev-rules` or `device-mapper`, we should use target device for `systemd` `.device' units Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
…oot disk Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Creates '/dev/disk/coreos-root-disk' symlink to boot disk for use by Ignition config, therefore 'storage.disks' section could be defined without hardcoding /dev/sda, /dev/vda, etc. Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Creates '/dev/disk/coreos-boot-disk' symlink to boot disk for use by Ignition config, therefore 'storage.disks' section could be defined without hardcoding /dev/sda, /dev/vda, etc. Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Creates '/dev/disk/coreos-boot-disk' symlink to boot disk for use by Ignition config, therefore 'storage.disks' section could be defined without hardcoding /dev/sda, /dev/vda, etc. Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Fixed in coreos/fedora-coreos-config#1308. |
Would be cool to add some docs for this. |
Opened coreos/fedora-coreos-docs#353 so we don't lose that. |
The fix for this went into |
I think this one went into stable |
The fix for this went into |
Creates '/dev/disk/coreos-boot-disk' symlink to boot disk for use by Ignition config, therefore 'storage.disks' section could be defined without hardcoding /dev/sda, /dev/vda, etc. Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
Creates '/dev/disk/coreos-boot-disk' symlink to boot disk for use by Ignition config, therefore 'storage.disks' section could be defined without hardcoding /dev/sda, /dev/vda, etc. Issue: coreos/fedora-coreos-tracker#759 Signed-off-by: Nikita Dubrovskii <nikita@linux.ibm.com>
(apologies for writing a JIRA card; actually I copypasted this)
As a user configuring disk partitions via FCC,
I want a stable device path for the boot disk,
so I can write a
storage.disks
section without hardcoding/dev/sda
,/dev/vda
, or/dev/nvme0n1
.Acceptance criteria:
/dev/disk/...
symlink for disk containingroot
filesystem when there's exactly one such disk, and create no such symlink in other cases (e.g. rootfs RAID)storage.disks.device
context (to prevent adding a mount unit pointing to the symlink)/var
partition on boot diskThe text was updated successfully, but these errors were encountered: