Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873337 - sys-kernel/genkernel-4.2.6-r6: Failed to create binpkg of xz-5.2.5! (/usr/share/genkernel/gen_worker.sh: line 68: ./configure: Permission denied)
Summary: sys-kernel/genkernel-4.2.6-r6: Failed to create binpkg of xz-5.2.5! (/usr/sha...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-28 16:55 UTC by José Pekkarinen
Modified: 2022-10-01 05:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
genkernel log (genkernel.log,114.89 KB, text/x-log)
2022-09-28 16:55 UTC, José Pekkarinen
Details
genkernel.conf (genkernel.conf,11.76 KB, text/plain)
2022-09-28 16:57 UTC, José Pekkarinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description José Pekkarinen 2022-09-28 16:55:53 UTC
Created attachment 814519 [details]
genkernel log

Hi,

I'm having troubles after building a kernel, generating the initrd using genkernel. The kernel is configured to compress in xz, and I configured genkernel to compress the initrd also. The output of the error is as follows:

* ERROR: Command './configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-threads --enable-static --disable-nls --disable-xz --disable-xzdec --disable-lzmadec --disable-lzmainfo --disable-lzma-links --disable-scripts --disable-doc' failed!
* ERROR: create_initramfs(): append_data(): append_eudev(): populate_binpkg(): populate_binpkg(): gkbuild(): Failed to create binpkg of xz-5.2.5!
* Please consult '/var/log/genkernel.log' for more information and any
* errors that were reported above.

Attached is /var/log/genkernel.log.

Thanks!

José.
Comment 1 José Pekkarinen 2022-09-28 16:57:01 UTC
Created attachment 814522 [details]
genkernel.conf
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-01 02:44:25 UTC
COMMAND: ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-threads --enable-static --disable-nls --disable-xz --disable-xzdec --disable-lzmadec --disable-lzmainfo --disable-lzma-links --disable-scripts --disable-doc
/usr/share/genkernel/gen_worker.sh: line 68: ./configure: Permission denied

Dodgy umask?
Comment 3 José Pekkarinen 2022-10-01 05:46:51 UTC
(In reply to Sam James from comment #2)
> COMMAND: ./configure --prefix=/usr --build=x86_64-pc-linux-gnu
> --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info
> --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
> --enable-threads --enable-static --disable-nls --disable-xz --disable-xzdec
> --disable-lzmadec --disable-lzmainfo --disable-lzma-links --disable-scripts
> --disable-doc
> /usr/share/genkernel/gen_worker.sh: line 68: ./configure: Permission denied
> 
> Dodgy umask?

It can be, though the system is not having any extra config in that direction, default umask is:

$ umask 
0022

from /etc/login.defs:

[...]
# Default initial "umask" value used by login(1) on non-PAM enabled systems.
# Default "umask" value for pam_umask(8) on PAM enabled systems.
# UMASK is also used by useradd(8) and newusers(8) to set the mode for new
# home directories if HOME_MODE is not set.
# 022 is the default value, but 027, or even 077, could be considered
# for increased privacy. There is no One True Answer here: each sysadmin
# must make up their mind.
UMASK           022
[...]

Does genkernel modify this value?

Thanks!