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

If the storage device is not initializing, just try everything #30

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

ericcurtin
Copy link
Collaborator

Part of what makes this solution performant is we initially just try to initialize storage devices, by initializing driver subsystems:

--subsystem-match=module --subsystem-match=block
--subsystem-match=virtio --subsystem-match=pci --subsystem-match=nvme

there may be some kinds of devices unaccounted for, if this is true, after 8 seconds try and initialize all devices. If such devices want to be performant, ideally the people who encounter this should add the minimal required to this storage specific udev trigger, so their device is included in the targeted storage trigger.

Part of what makes this solution performant is we initially just try to
initialize storage devices, by initializing driver subsystems:

--subsystem-match=module --subsystem-match=block
--subsystem-match=virtio --subsystem-match=pci --subsystem-match=nvme

there may be some kinds of devices unaccounted for, if this is true,
after 8 seconds try and initialize all devices. If such devices want to
be performant, ideally the people who encounter this should add the
minimal required to this storage specific udev trigger, so their device
is included in the targeted storage trigger.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
@ericcurtin
Copy link
Collaborator Author

Merging... It's currently blocking progress of another PR

@ericcurtin ericcurtin merged commit 98d8171 into main Dec 1, 2023
1 of 2 checks passed
@ericcurtin ericcurtin deleted the suboptimal-fallback branch December 1, 2023 21:21
@@ -17,7 +17,7 @@ exec_erofs() {
"$SKIPCPIO_BIN" "/boot/initramfs-$kver.img" | "$CAT" | cpio -ivd
popd
rm -f "/boot/initoverlayfs-$kver.img"
mkfs.erofs "$erofs_compression" "/boot/initoverlayfs-$kver.img" ${INITRAMFS_DUMP_DIR}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may have been this change that was breaking the other PR, we should never have an empty "" string here, no quotes is what works here

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 this pull request may close these issues.

1 participant