-
Notifications
You must be signed in to change notification settings - Fork 46
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
unable to find a config file in /proc #137
Comments
Thanks for reporting it. Just to double-check, do you have any |
Could you please also provide output of |
|
Booster reads kernel's config file at generation time. Some systems (e.g. Arch Linux) provides /proc/config file. Some other systems (e.g. Fedora) have /boot/config-$kernelVersion. Add support for the /boot config path. Implements #137
@arun54321 I added a change that implements this |
I don't know whether I'm doing something wrong, I get this error. |
Oops sorry. I messed with dependencies earlier. I pushed a fix to |
This comment was marked as duplicate.
This comment was marked as duplicate.
Hmm, it works fine for me:
What go version do you use? |
go version go1.16.14 linux/amd64 I will try again after updating to 1.17.7 |
I believe clevis.go has been Does Fedora provide 1.17 go? If not then I will need to downgrade modules to 1.16. |
@arun54321 let me know if you was able to get it compiled with 1.17. |
I have compiled v1.18 . Does it compile on that? |
Yes, it should work with 1.17+. |
I don't see the error now. so I think it is working now. https://0bin.net/paste/xPA+MbcG#kS4L3yChfWKg4VR-Tnl7ajrbCfOItbq7v7MGNEnqQ9I |
But booster from this branch does not create initramfs image. |
Booster fails for some reason:
I need to look at the code to figure out why there is no any error message for this failure. |
Also related question. Is golang 1.17 easily available for Fedore users? Is it ok to use 1.17 specific feature or it is going to be a lot of troubles for Fedora users? |
My guess that there is a problem with You can also disable |
|
thanks. What is the content of what is output of |
I'm using fedora for around a week or 10 days. I don't know about fedora release schedules. For a time being anyone could use my copr repo till it arrives on official repositories. 1.18 is coming in fedora 36 so It should not be problem in future. |
|
https://paste.centos.org/view/adb37d94 for loadkeys. |
If Could you please post output of |
Looking at strace output I see that
(which is yet it fails with
it is not clear for me why it happens. It might be that Fedora's loadkeys expects some env var or maybe something else. |
Could you look at fedora's kbd patches? https://kojipkgs.fedoraproject.org//packages/kbd/2.4.0/8.fc35/src/kbd-2.4.0-8.fc35.src.rpm |
Some users add quotes around property values in these files. Strip the quotes to avoid `loadkeys` tool confusion. Related #137
@arun54321 I actually found one more difference from my setup. The values in your |
|
libc file is in /usr/lib64. How do I compile / fix it properly? |
I tried to symlink libc file to the destination. On fedora that folder is in /usr/lib/kbd/consolefonts Image generation is working now after symlink those missing folders.
|
Fedora keeps some of its libraries under /usr/lib64. Look at this directory when searching for ELF libraries. Related #137
I added |
Different systems have different consolefonts path, e.g. Fedora uses `/usr/lib/kbd/consolefonts`. Having this path as a separate constant makes it easier to patch for a specific distro. Related #137
I added a patch that makes it easier to configure this folder. Distros could update this path if needed. 051c8a1#diff-1dff658e5bba8c544f3d28aae04581865748e30fd711239342a747f63c4a406bR14 So the fedora package should patch booster path to |
Could you please pull |
The sourcecode needs to be patched to adjust it to Fedora's defaults. |
Should I apply the patch or just pull and build again? |
Works well. |
Does it boot at Fedora? Could you please also make a package for Fedora so other people can use the package easily? Is there any way to get this package to Fedora repository? |
I don't know to write hooks to which rebuilds image during kernel updates. |
Just now tested it. It boots to fedora. Thank you. |
Booster reads kernel's config file at generation time. Some systems (e.g. Arch Linux) provides /proc/config file. Some other systems (e.g. Fedora) have /boot/config-$kernelVersion. Add support for the /boot config path. Implements #137
Some users add quotes around property values in these files. Strip the quotes to avoid `loadkeys` tool confusion. Related #137
Fedora keeps some of its libraries under /usr/lib64. Look at this directory when searching for ELF libraries. Related #137
Different systems have different consolefonts path, e.g. Fedora uses `/usr/lib/kbd/consolefonts`. Having this path as a separate constant makes it easier to patch for a specific distro. Related #137
Could you add force and kernelVersion flags to wip branch? I am trying to write image generation script. It doesn't work due to missing flags. So far, it works without those flags.
It outputs
|
The flags start with double hype: |
|
Here is an example of usage https://github.com/anatol/booster/blob/master/packaging/arch/regenerate_images |
Thanks. Works fine now.
|
On fedora config file is on /boot

The text was updated successfully, but these errors were encountered: