View previous topic :: View next topic |
Author |
Message |
TimCve n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Jan 2021 Posts: 5
|
Posted: Fri Mar 12, 2021 11:29 pm Post subject: [solved] Cannot install an initramfs |
|
|
I have recently screwed my system and needed to do a reinstall. Everything went as usual until I got to installing an initramfs after configuring & compiling the kernel.
When I run: Code: | genkernel --install --kernel-config=/usr/src/linux/.config initramfs |
I get the following output:
Code: | * Gentoo Linux Genkernel; Version 4.1.2
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --install --kernel-config=/usr/src/linux/.config initramfs
* Working with Linux kernel 5.10.23-gentoo for x86_64
* Using kernel config file '/usr/src/linux/.config' ...
* Current kernel's LOCALVERSION is set to ''; Will ignore set --kernel-localversion value '-x86_64' because kernel was not build ...
* initramfs: >> Initializing ...
* >> Appending devices cpio data ...
* >> Appending base_layout cpio data ...
* >> Appending util-linux cpio data ...
* ERROR: Command 'autoreconf --force --install ' failed!
* ERROR: create_initramfs(): append_data(): append_util-linux(): populate_binpkg(): gkbuild(): Failed to create binpkg of util-linux-2.36!
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* '/var/log/genkernel.log' so that your issue can be dealt with effectively.
*
* Please do *not* report kernel compilation failures as genkernel bugs!
* |
I am using lz4 kernel compression, initramfs with lz4 support is enabled in the config, app-arch/lz4 is also installed.
What I have tried:
-Downgrading gentoo-sources back to kernel 5.10 instead of using 5.11, the same error happens with both versions.
I suspect that the problem lies in the kernel configuration; because on all my previous installations, I have been using a kernel config that always worked. However, I have lost that config file, the error only appeared now that I have reconfigured the kernel.
Perhaps there is some setting that I have left disabled that fixes this problem?
Last edited by TimCve on Sat Mar 13, 2021 12:29 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
halcon l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/488895685f0ccb058b6ff.jpg)
Joined: 15 Dec 2019 Posts: 649
|
Posted: Sat Mar 13, 2021 12:05 am Post subject: Re: Cannot install an initramfs |
|
|
Hi TimCve,
TimCve wrote: | Code: | * ERROR: create_initramfs(): append_data(): append_util-linux(): populate_binpkg(): gkbuild(): Failed to create binpkg of util-linux-2.36! |
|
Try to downgrade genkernel to 4.0.10 (it worked for me).
IMHO, the error is due to that line -
https://github.com/gentoo/gentoo/blob/180702f8e140f7e0052a68ecb6fc39779c513808/sys-kernel/genkernel/genkernel-4.1.2-r3.ebuild#L40
There is no such util-linux version: 2.36.
If it is really so, I think it deserves to be reported as a bug. I had no time to do that when encoutered this error, and have remembered about it now looking at your post. _________________ A wife asks her husband, a programmer:
- Could you please go shopping for me and buy one carton of milk, and if they have eggs, get 6?
He comes back with 6 cartons of milk.
- Why did you buy 6 cartons of milk?
- They had eggs. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TimCve n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 17 Jan 2021 Posts: 5
|
Posted: Sat Mar 13, 2021 12:27 am Post subject: Thanks, it worked! |
|
|
Thanks, I appreciate it, downgrading genkernel really did fix the problem. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
halcon l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/488895685f0ccb058b6ff.jpg)
Joined: 15 Dec 2019 Posts: 649
|
Posted: Sat Mar 13, 2021 12:32 am Post subject: |
|
|
Great!
After your confirmation, I opened bugzilla, and, before posting a new bugreport, searched, and found that - it's old enough... It's about lvm, not about util-linux, but the error is very similar. _________________ A wife asks her husband, a programmer:
- Could you please go shopping for me and buy one carton of milk, and if they have eggs, get 6?
He comes back with 6 cartons of milk.
- Why did you buy 6 cartons of milk?
- They had eggs. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mustafasalih1993 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/26303842460277e47a9eb4.jpg)
Joined: 09 Feb 2021 Posts: 38
|
Posted: Sat Mar 13, 2021 12:34 am Post subject: Re: Cannot install an initramfs |
|
|
halcon's sig wrote: |
A wife asks her husband, a programmer:
- Could you please go shopping for me and buy one carton of milk, and if they have eggs, get 6?
He comes back with 6 cartons of milk.
- Why did you buy 6 cartons of milk?
- They had eggs.
|
This made my day thanks ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Whissi Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/19879541755bce0a550da6c.jpg)
Joined: 12 Jan 2011 Posts: 222
|
Posted: Mon Mar 15, 2021 3:12 am Post subject: Re: Cannot install an initramfs |
|
|
No, the genkernel ebuild is fine. Keep in mind that genkernel will not use other Gentoo packages.
If you get such a failure, please always look into genkernel.log (/var/log/genkerne.log by default) which will contain complete build.log of last run showing the exact problem. _________________ Regards,
Whissi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
halcon l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/488895685f0ccb058b6ff.jpg)
Joined: 15 Dec 2019 Posts: 649
|
Posted: Mon Mar 15, 2021 4:45 am Post subject: Re: Cannot install an initramfs |
|
|
Whissi,
Thanks for your reply.
Whissi wrote: | Keep in mind that genkernel will not use other Gentoo packages. |
Ouch! Why?
Whissi wrote: | If you get such a failure, please always look into genkernel.log (/var/log/genkerne.log by default) which will contain complete build.log of last run showing the exact problem. |
Unfortunately, genkernel log is being rewrited at each run, so I don't have the log with the error no more. But I found the main error text in my web search history of that day:
"no rule to make target 6" - while trying to compile util-linux. _________________ A wife asks her husband, a programmer:
- Could you please go shopping for me and buy one carton of milk, and if they have eggs, get 6?
He comes back with 6 cartons of milk.
- Why did you buy 6 cartons of milk?
- They had eggs. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Whissi Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/19879541755bce0a550da6c.jpg)
Joined: 12 Jan 2011 Posts: 222
|
Posted: Mon Mar 15, 2021 1:37 pm Post subject: Re: Cannot install an initramfs |
|
|
halcon wrote: | Whissi wrote: | Keep in mind that genkernel will not use other Gentoo packages. |
Ouch! Why? | This is actually a good question I cannot really answer. All I know is that genkernel always built the tools it uses in initramfs on its own. This is required for cross-compile support and some libs/programs we use don't have real static support anymore in ::gentoo so we are applying patches/hacks you don't find in ::gentoo.
halcon wrote: | Unfortunately, genkernel log is being rewrited at each run, so I don't have the log with the error no more. But I found the main error text in my web search history of that day:
"no rule to make target 6" - while trying to compile util-linux. | Never seen this. Could please delete cached copy in /var/cache/genkernel and try again? _________________ Regards,
Whissi |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
halcon l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/488895685f0ccb058b6ff.jpg)
Joined: 15 Dec 2019 Posts: 649
|
Posted: Mon Mar 15, 2021 3:21 pm Post subject: Re: Cannot install an initramfs |
|
|
Whissi wrote: | This is required for cross-compile support and some libs/programs we use don't have real static support anymore in ::gentoo so we are applying patches/hacks you don't find in ::gentoo. |
Good to know!
halcon wrote: | Never seen this. Could please delete cached copy in /var/cache/genkernel and try again? |
I've tried. But I can't reproduce it anymore. I removed the cache, upgraded genkernel and ran `genkernel ramdisk`. And util-linux is being compiled without errors now.
Maybe, it is because the system has been changed. I have installed many packages since then.
It is a new install on a new laptop. I had got that error on a very minimal system (without X), in chroot from pre-installed Mint. And now X is installed, the native Gentoo kernel is running. _________________ A wife asks her husband, a programmer:
- Could you please go shopping for me and buy one carton of milk, and if they have eggs, get 6?
He comes back with 6 cartons of milk.
- Why did you buy 6 cartons of milk?
- They had eggs. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Bogdan107 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 03 Aug 2021 Posts: 3 Location: Ukraine
|
Posted: Sat Nov 06, 2021 4:34 pm Post subject: |
|
|
Code: | sh: line 1: tools/git-version-gen: Permission denied |
This message generated, if genkernel script, started in TMPDIR, has no rights for execution in filesystem.
Code: | gkbuild(): Failed to create binpkg of util-linux-2.37! |
This message generated, because binary compiled files of this package is not finded under CACHE_DIR/<genkernel_version> directory.
Details at https://forums.gentoo.org/viewtopic-p-8638606.html |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|