| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Matt Turner <mattst88@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This restores the --kernel-cross-compile= option from genkernel 3.x,
which controls only the --kernel-xxx= options as opposed to both kernel
and userspace options controlled by --cross-compile=.
Also adds documentation on the missing options in default
genkernel.conf.
Bug: https://bugs.gentoo.org/716862
Signed-off-by: Matoro Mahri <matoro@users.noreply.github.com>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
|
|
|
|
| |
Signed-off-by: Matt Turner <mattst88@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
Make sure we pull in correct genkernel arch-specific configuration.
Kernel arch is always "s390".
Closes: https://github.com/gentoo/genkernel/pull/43
Signed-off-by: Matoro Mahri <matoro@users.noreply.github.com>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
|
|
|
|
|
|
|
| |
Upstream boost changed the flags to use 'off' instead of 'none'.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Closes: https://bugs.gentoo.org/854480
|
|\
| |
| |
| |
| |
| | |
Merges: https://github.com/gentoo/genkernel/pull/41
Closes: https://github.com/gentoo/genkernel/pull/41
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|/
|
|
|
|
|
|
|
| |
With the current proliferation of multi-core CPUs enabling threaded XZ
compression brings very significant runtime improvement: on my 4-core
system the total genkernel runtime drops from 356 seconds to 166 seconds
(a reduction of more than 50%) - so let's enable this mode by default.
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
|
|\
| |
| |
| |
| |
| | |
Closes: https://github.com/gentoo/genkernel/pull/39
Merges: https://github.com/gentoo/genkernel/pull/39
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|/
|
|
| |
Signed-off-by: FlyingWaffle <flyingwaffle@pm.me>
|
|\
| |
| |
| |
| |
| | |
Merges: https://github.com/gentoo/genkernel/pull/38
Closes: https://github.com/gentoo/genkernel/pull/38
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
| |
| |
| |
| |
| |
| | |
...on a broader range of system configurations, including LVM and swapfiles.
Signed-off-by: FlyingWaffle <flyingwaffle@pm.me>
|
|\ \
| |/
|/|
| |
| |
| | |
Merges: https://github.com/gentoo/genkernel/pull/37
Closes: https://github.com/gentoo/genkernel/pull/37
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
| |
| |
| |
| | |
Signed-off-by: Dmitry Baranov <reagentoo@gmail.com>
|
| |
| |
| |
| | |
Signed-off-by: Dmitry Baranov <reagentoo@gmail.com>
|
|\|
| |
| |
| |
| |
| | |
Merges: https://github.com/gentoo/genkernel/pull/10
Closes: https://github.com/gentoo/genkernel/pull/10
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
cryptsetup LUKS2 format comes with an ability to automatically unlock
multiple devices (root, swap, etc.) sharing the same passphrase, without
retyping it for each of them, by loading it into the user keyring.
This commit adds such (optional) genkernel support for loading LUKS
passphrase into the user keyring on boot.
In the default mode of operation the newly added key is (possibly) used
only to unlock root and swap devices and is removed soon after that.
By providing appropriate kernel command line parameter the key can be left
in the keyring instead (with an optional timeout) for unlocking other LUKS
devices post-initramfs time.
Because one of the most common use cases of this functionality will be
having an encrypted swap for doing suspend to disk (hibernation) let's also
make sure that we don't unlock the root device when doing so is unnecessary
(when we are resuming the system from hibernation).
Since the security of a FDE passphrase is of paramount importance in this
solution significant care has been taken not to leak it accidentally:
* The passphrase is read directly by keyctl to avoid storing it in the
shell,
* If the passphrase is used only to unlock root and swap devices (which is
the default mode of operation) the init script will check whether its
removal from keyring has actually succeeded and, if not, reboot the system
rather than continue while leaving it exposed,
* keyutils includes a patch (already upstreamed) to wipe the passphrase
from memory when no longer needed.
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
|
|
|
|
| |
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When trying to install a new kernel on catbus.sparc.dev.gentoo.org, the
newly built initrd consistently claimed that it could not find init, and
dropped to the rescue shell.
However, init was there just fine in /newroot (as before).
I dug out the command that is actually run inside linuxrc,
elif ! chroot "${CHROOT}" test -x /${init#/} 1>/dev/null 2>&1
and tried to run that manually, which led to a rather strange error message
rescueshell / # chroot /newroot test -x /lib/systemd/systemd
chroot: can't execute 'test': File name too long
Some more research led me to the busybox manpage (where here chroot comes
from):
https://busybox.net/downloads/BusyBox.html#chroot
chroot
chroot NEWROOT [PROG [ARGS]]
Run PROG with root directory set to NEWROOT
Note, the third argument is *not* a command (as with usual chroot, see the
manpage from coreutils chroot) but a program!
Bug: https://bugs.gentoo.org/842027
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
|
|\
| |
| |
| |
| | |
Closes: https://github.com/gentoo/genkernel/pull/34
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
| |
| |
| |
| | |
Signed-off-by: DanF <44616e46@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Needed more cryptsetup in weirder cases. Maybe better in future to
provide easier way to detect these and/or match dracut's code for module
selection.
Based on old https://github.com/robbat2/genkernel/pull/29 submission
Closes: https://github.com/robbat2/genkernel/pull/29
Suggested-by: David Guglielmi <david.guglielmi@gmail.com>
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Note: commit 73a05632d61171685ac4960c6b684cefa6d82afd is
significantly easier to review by ignoring whitespace changes.
Closes: https://github.com/gentoo/genkernel/pull/28
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Dmitry Baranov <reagentoo@gmail.com>
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Note: commit efdf4d0affb587655d703140db86d45ffd2a1ede is significantly
easier to review by ignoring whitespace changes.
Closes: https://github.com/gentoo/genkernel/pull/30
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Simplify conditional blocks where 'continue' is present.
Signed-off-by: Dmitry Baranov <reagentoo@gmail.com>
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Closes: https://github.com/gentoo/genkernel/pull/33
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: orbea <orbea@riseup.net>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: orbea <orbea@riseup.net>
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | | |
This helps when the build uses slibtool where the compiled binary output
path differs from GNU libtool.
Signed-off-by: orbea <orbea@riseup.net>
|
|\ \ \
| |/ /
|/| |
| | |
| | | |
Closes: https://github.com/gentoo/genkernel/pull/35
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
dmraid
luks
lvm
multipath
Bug: https://bugs.gentoo.org/749957
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
|
| |
| |
| |
| |
| | |
Bug: https://bugs.gentoo.org/828445
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| |
| | |
Fixes: d3ee3d06 ("Bump btrfs-progs to v5.15")
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| | |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| | |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| | |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| | |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| | |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| | |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| | |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| |
| |
| | |
Closes: https://bugs.gentoo.org/341193
Closes: https://bugs.gentoo.org/822087
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| | |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
non-static kernels
Fixes: 153a877d ("Refactor (compressed) kernel module handling")
Bug: https://bugs.gentoo.org/821484
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| |
| |
| | |
>=glibc-2.34
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| |
| |
| |
| | |
>=glibc-2.34
Bug: https://bugs.gentoo.org/823716
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
NSS files module was merged into libc in >=glibc-2.34 so it can't be used
to test for changed glibc version anymore.
Using libc.a seems to be the better alternative which we use already in
get_chost_libdir() and depend on in general.
In addition, a check was added to ensure that our glibc test file really
exists (older-than check would pass if our test file would be missing
which is not what we want).
Fixes: 61049d29 ("gen_compile.sh: populate_binpkg(): Throw away binpkg when glibc has changed")
Bug: https://bugs.gentoo.org/823716
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| | |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| |
| | |
Bug: https://bugs.gentoo.org/815676
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In >=sys-apps/baselayout-2.8, /etc/modprobe.d was moved to /lib/modprobe.d.
This commit will try to copy /etc/modprobe.d and /lib/modprobe.d but will
no longer fail if one directory is missing.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|
| |
| |
| |
| | |
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
|