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

Fix get_current_initrd parser #113

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Fix get_current_initrd parser #113

merged 1 commit into from
Jan 21, 2025

Conversation

aplanas
Copy link
Contributor

@aplanas aplanas commented Jan 14, 2025

show-entry return the key and the value as two different elements. This patch fix how to recover only the value part (the actual path of the initrd file)

Fix openSUSE/sdbootutil#122

@TobiPeterG
Copy link

I haven't worked on this script before, so probably dumb question:
The initrd key in the sdbootutil entry file only has the relative path beginning from the efi partition, so it will only be e.g. /opensuse-tumbleweed/6.12.8-lqx1-2-liquorix/initrd-f845c190c3293fe4f4e23ba49af4d67f559b4c06 instead of /boot/efi/opensuse-tumbleweed/6.12.8-lqx1-2-liquorix/initrd-f845c190c3293fe4f4e23ba49af4d67f559b4c06
I see that it is called on 3 ocasions from this file and I couldn't find that the EFI parition path is added.
Is this relevant here?

@aplanas
Copy link
Contributor Author

aplanas commented Jan 14, 2025

Is this relevant here?

Like super relevant ... Thanks for catching this.

`show-entry` return the key and the value as two different elements.
This patch fix how to recover only the value part (the actual path of
the initrd file)

Fix openSUSE/sdbootutil#122

Signed-off-by: Alberto Planas <[email protected]>
@aplanas
Copy link
Contributor Author

aplanas commented Jan 14, 2025

Updated

@TobiPeterG
Copy link

It seems to be fixed now, just updated one of my systems and didn't see the message :)

@mwilck mwilck merged commit bcecb6d into openSUSE:master Jan 21, 2025
16 checks passed
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Feb 6, 2025
https://build.opensuse.org/request/show/1239335
by user mwilck + anag+factory
* Fix "initrd: file not found" error in sd-boot setup
    (gh#openSUSE/suse-module-tools#113, gh#openSUSE/sdbootutil#122) (forwarded request 1239333 from mwilck)
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.

initrd: file not found
3 participants