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

RHCOS 4.11 x86_64 error about missing script for creating stable symlink to boot disk #755

Closed
miabbott opened this issue Mar 22, 2022 · 4 comments · Fixed by coreos/fedora-coreos-config#1620

Comments

@miabbott
Copy link
Member

Was going through the journal for a separate issue and saw the following:

Mar 22 19:06:09 localhost [1488]: failed to execute '/usr/lib/udev/coreos-disk-contains-fs' 'coreos-disk-contains-fs vda boot': No such file or directory

This happens after the switch to the real root and by my read of coreos/fedora-coreos-config#1308 the udev rule is only available in the initrd, with the symlink being removed during initramfs teardown.

So the error looks scary, but is harmless AFAICT

@miabbott miabbott changed the title RHCOS 4.11 x86_64 missing script for creating stable symlink to boot disk RHCOS 4.11 x86_64 error about missing script for creating stable symlink to boot disk Mar 22, 2022
@miabbott
Copy link
Member Author

The script is in fact present in the initrd:

$ lsinitrd /boot/ostree/rhcos-f95980e810c2f5991e686361b987d40644b0a2e5a22c6d98e40f591f058eb8de/initramfs-4.18.0-348.20.1.el8_5.x86_64.img | grep coreos-disk-contains-fs
        -r-xr-xr-x   1 root     root          571 Jan  1  1970 usr/lib/udev/coreos-disk-contains-fs

It looks like the udev rule is getting triggered on the switch to the real root and complaining about the missing script:

Mar 22 19:53:01 localhost systemd[1]: Starting udev Kernel Device Manager...
Mar 22 19:53:01 localhost systemd[1]: Started udev Kernel Device Manager.
Mar 22 19:53:01 localhost [1490]: failed to execute '/usr/lib/udev/coreos-disk-contains-fs' 'coreos-disk-contains-fs vda boot': No such file or directory

jlebon added a commit to jlebon/fedora-coreos-config that referenced this issue Mar 22, 2022
The associated script only exists in the initrd. But also, we only need
the symlink in the initrd anyway.

Fixes 6d7b9ad ("overlay.d: add udev rule for creating stable symlink to
boot disk").

Fixes openshift/os#755.
@jlebon
Copy link
Member

jlebon commented Mar 22, 2022

coreos/fedora-coreos-config#1620 should fix this.

@miabbott
Copy link
Member Author

Let's keep this open until we do the submodule bump

@miabbott miabbott reopened this Mar 23, 2022
@bgilbert bgilbert closed this as completed Jun 8, 2022
@cgwalters cgwalters reopened this Jun 8, 2022
@bgilbert
Copy link
Contributor

bgilbert commented Jun 8, 2022

The submodule bump landed in #758.

@bgilbert bgilbert closed this as completed Jun 8, 2022
HuijingHei pushed a commit to HuijingHei/fedora-coreos-config that referenced this issue Oct 10, 2023
The associated script only exists in the initrd. But also, we only need
the symlink in the initrd anyway.

Fixes 6d7b9ad ("overlay.d: add udev rule for creating stable symlink to
boot disk").

Fixes openshift/os#755.
HuijingHei pushed a commit to HuijingHei/fedora-coreos-config that referenced this issue Oct 10, 2023
The associated script only exists in the initrd. But also, we only need
the symlink in the initrd anyway.

Fixes 6d7b9ad ("overlay.d: add udev rule for creating stable symlink to
boot disk").

Fixes openshift/os#755.
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

Successfully merging a pull request may close this issue.

4 participants