summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* genkernel 4.3.2v4.3.2Matt Turner2023-01-081-1/+1
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* Reimplement --kernel-cross-compile= for genkernel 4.xMatoro Mahri2023-01-083-11/+43
| | | | | | | | | | | | | 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>
* genkernel 4.3.1v4.3.1Matt Turner2022-11-141-1/+1
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* Fix s390 supportv4.3.0Matoro Mahri2022-10-191-0/+3
| | | | | | | | | 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>
* gkbuilds/boost-build.gkbuild: upstream boost flags changedRobin H. Johnson2022-07-031-1/+1
| | | | | | | 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
* Merge Enable threaded XZ compression by defaultRobin H. Johnson2022-06-201-1/+1
|\ | | | | | | | | | | 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>
| * Enable threaded XZ compression by defaultMaciej S. Szmigiero2022-06-111-1/+1
|/ | | | | | | | | 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>
* Fixes a mistake with quotation usage when testing for LVM flagRobin H. Johnson2022-05-291-1/+1
|\ | | | | | | | | | | 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>
| * Fixes a mistake with quotation usage when testing for LVM flag.FlyingWaffle2022-05-281-1/+1
|/ | | | Signed-off-by: FlyingWaffle <flyingwaffle@pm.me>
* Additional test to allow for hibernation resumeRobin H. Johnson2022-05-281-1/+2
|\ | | | | | | | | | | 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>
| * Additional test to allow for hibernation resume...FlyingWaffle2022-05-281-1/+2
| | | | | | | | | | | | ...on a broader range of system configurations, including LVM and swapfiles. Signed-off-by: FlyingWaffle <flyingwaffle@pm.me>
* | Detached header: fix bootstrap calls and sleeps, remove extra bracketRobin H. Johnson2022-05-281-16/+27
|\ \ | |/ |/| | | | | | | 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>
| * defaults/initrd.scripts: start_LUKS_*(): fix bootstrap calls and sleepsDmitry Baranov2022-05-251-15/+26
| | | | | | | | Signed-off-by: Dmitry Baranov <reagentoo@gmail.com>
| * defaults/initrd.scripts: openLUKS(): remove extra bracket in conditional blockDmitry Baranov2022-05-251-1/+1
| | | | | | | | Signed-off-by: Dmitry Baranov <reagentoo@gmail.com>
* | add keyctl support for loading LUKS passphrase into a keyringRobin H. Johnson2022-05-249-3/+181
|\| | | | | | | | | | | 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>
| * genkernel: add keyctl support for loading LUKS passphrase into a keyringMaciej S. Szmigiero2022-05-229-3/+181
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* arch: Copy s390 config to s390x (it's 64bit anyway!)Andreas K. Hüttel2022-05-204-0/+1538
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* linuxrc: do not rely on chroot evaluating PATHAndreas K. Hüttel2022-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Updating open-iscsi to 2.1.4Robin H. Johnson2022-05-164-122/+15
|\ | | | | | | | | Closes: https://github.com/gentoo/genkernel/pull/34 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
| * Updating open-iscsi to 2.1.4Dan F2022-05-164-122/+15
| | | | | | | | Signed-off-by: DanF <44616e46@gmail.com>
* | defaults/modules_load: more crypto modulesRobin H. Johnson2022-05-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Add support for LUKS detached header (another attempt)Robin H. Johnson2022-05-153-16/+186
|\ \ | | | | | | | | | | | | | | | | | | | | | 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>
| * | Add support for LUKS detached headerDmitry Baranov2021-08-073-16/+186
| | | | | | | | | | | | Signed-off-by: Dmitry Baranov <reagentoo@gmail.com>
* | | defaults/initrd.scripts: Get rid of extra paddingRobin H. Johnson2022-05-151-92/+92
|\| | | | | | | | | | | | | | | | | | | | | | | 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>
| * | defaults/initrd.scripts: Get rid of extra paddingDmitry Baranov2021-08-071-92/+92
| | | | | | | | | | | | | | | | | | Simplify conditional blocks where 'continue' is present. Signed-off-by: Dmitry Baranov <reagentoo@gmail.com>
* | | gkbuild: Install the correct binaries with slibtoolRobin H. Johnson2022-05-153-7/+26
|\ \ \ | | | | | | | | | | | | | | | | Closes: https://github.com/gentoo/genkernel/pull/33 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
| * | | gkbuild/cryptsetup: Install the correct binaries with slibtoolorbea2022-05-151-2/+1
| | | | | | | | | | | | | | | | Signed-off-by: orbea <orbea@riseup.net>
| * | | gkbuild/util-linux: Install the correct binaries with slibtoolorbea2022-05-151-5/+2
| | | | | | | | | | | | | | | | Signed-off-by: orbea <orbea@riseup.net>
| * | | gen_funcs: Add an install_exe functionorbea2022-05-151-0/+23
| | |/ | |/| | | | | | | | | | | | | | | | This helps when the build uses slibtool where the compiled binary output path differs from GNU libtool. Signed-off-by: orbea <orbea@riseup.net>
* | | gen_initramfs.sh: append devicemanager only for dmraid, luks, or lvmRobin H. Johnson2022-05-152-4/+16
|\ \ \ | |/ / |/| | | | | | | | Closes: https://github.com/gentoo/genkernel/pull/35 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
| * | gen_initramfs.sh: append devicemanager only for specific modulesMike Gilbert2022-05-152-4/+16
|/ / | | | | | | | | | | | | | | | | | | dmraid luks lvm multipath Bug: https://bugs.gentoo.org/749957 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* | fuse: Add patch to allow building against glibc-2.34Thomas Deutschmann2021-12-101-0/+60
| | | | | | | | | | Bug: https://bugs.gentoo.org/828445 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | btrfs-progs-5.15+ needs libudevThomas Deutschmann2021-11-161-1/+1
| | | | | | | | | | Fixes: d3ee3d06 ("Bump btrfs-progs to v5.15") Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | Bump xfsprogs to v5.13.0v4.2.6Thomas Deutschmann2021-11-151-0/+0
| | | | | | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | Bump libgpg-error to v1.43Thomas Deutschmann2021-11-153-32/+0
| | | | | | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | Bump libgcrypt to v1.9.4Thomas Deutschmann2021-11-151-0/+0
| | | | | | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | Bump e2fsprogs to v1.46.4Thomas Deutschmann2021-11-153-0/+0
| | | | | | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | Bump btrfs-progs to v5.15Thomas Deutschmann2021-11-153-1/+1
| | | | | | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | Bump cryptsetup to v2.4.1Thomas Deutschmann2021-11-151-1/+2
| | | | | | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | gkbuilds/coreutils: Fix cross-compileThomas Deutschmann2021-11-151-2/+2
| | | | | | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | defaults/modules_load: Add support for i8042 & AT keyboardsThomas Deutschmann2021-11-151-0/+3
| | | | | | | | | | | | Closes: https://bugs.gentoo.org/341193 Closes: https://bugs.gentoo.org/822087 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | genkernel: Bump to v4.2.6Thomas Deutschmann2021-11-151-1/+1
| | | | | | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | gen_determineargs.sh: determine_real_args(): Make kmod only required for ↵Thomas Deutschmann2021-11-152-7/+10
| | | | | | | | | | | | | | | | non-static kernels Fixes: 153a877d ("Refactor (compressed) kernel module handling") Bug: https://bugs.gentoo.org/821484 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | gen_initramfs.sh: append_dropbear: NSS files module was merged into libc in ↵Thomas Deutschmann2021-11-151-2/+10
| | | | | | | | | | | | >=glibc-2.34 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | gen_initramfs.sh: append_busybox: NSS dns module was merged into libc in ↵Thomas Deutschmann2021-11-151-2/+10
| | | | | | | | | | | | | | >=glibc-2.34 Bug: https://bugs.gentoo.org/823716 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | gen_compile.sh: populate_binpkg(): Use libc.a for testing if glibc has changedThomas Deutschmann2021-11-151-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | genkernel: Bump to v4.2.5v4.2.5Thomas Deutschmann2021-10-271-1/+1
| | | | | | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | gkbuilds/btrfs-progs: Disable backtrace on non-glibc systemsThomas Deutschmann2021-10-011-1/+9
| | | | | | | | | | Bug: https://bugs.gentoo.org/815676 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* | gen_initramfs.sh: append_modprobed(): Adopt changes from sys-apps/baselayout-2.8Thomas Deutschmann2021-09-301-3/+12
| | | | | | | | | | | | | | | | | | 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>
* | defaults/software.sh: dropbear needs libxcryptThomas Deutschmann2021-09-291-1/+1
| | | | | | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>