aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* initrd.scripts: Add is_userinteraction_allowed() functionThomas Deutschmann2021-03-141-5/+18
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* linuxrc: Rename rundebugshell() -> run_debug_shell()Thomas Deutschmann2021-03-142-18/+14
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* initrd.scripts: modules_scan(): Rename GK_ROOTFS_DETECTED_STATEFILE -> ↵Thomas Deutschmann2021-03-142-4/+4
| | | | | | | | GK_ROOT_DEV_DETECTED_STATEFILE GK_ROOT_DEV_DETECTED_STATEFILE is the more precise name. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* linuxrc: Skip loading embedded boot font for serial consolesThomas Deutschmann2021-03-141-1/+7
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* initrd.scripts: setup_keymap(): Skip keymap loading for serial consolesThomas Deutschmann2021-03-141-0/+7
| | | | | Bug: https://bugs.gentoo.org/222699 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* linuxrc: Drop "console" kernel argument handlingThomas Deutschmann2021-03-142-25/+0
| | | | | | | It was never really used; Kernel's console handling already did the work. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* linuxrc: Mark kernel command-line argument lvmraid as deprecatedThomas Deutschmann2021-03-142-6/+1
| | | | | | Not used anymore since we moved to (e)udev. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* linuxrc: Determine active consoleThomas Deutschmann2021-03-143-1/+16
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* initrd.scripts: run_shell(): Reformat exec codeThomas Deutschmann2021-03-141-3/+3
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* linuxrc: Reformat exec codeThomas Deutschmann2021-03-141-2/+2
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* linuxrc: Don't delete /linuxrcThomas Deutschmann2021-03-141-5/+0
| | | | | | It's not clear why this was ever added via commit c4e37560598d4dc59ef3619084f3822df71e8aef. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* initrd.scripts: bootstrapFS(): Create /dev/tty0Thomas Deutschmann2021-03-141-0/+1
| | | | | | If we create ttyS0, we should also create tty0. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump strace to v5.11Thomas Deutschmann2021-03-132-5/+6
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump xfsprogs to v5.11.0Thomas Deutschmann2021-03-131-0/+0
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump e2fsprogs to v1.46.2Thomas Deutschmann2021-03-134-46/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump btrfs-progs to v5.11Thomas Deutschmann2021-03-133-2/+2
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* initrd.scripts: Add trim() functionThomas Deutschmann2021-03-082-0/+11
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/modules_load: Add netconsoleThomas Deutschmann2021-02-191-1/+1
| | | | | | This will ensure that netconsole will be available in initramfs. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_moddeps.sh: modules_dep_list(): match module more preciseThomas Deutschmann2021-02-181-1/+1
| | | | | | | | | | The current pattern is not precise enough. I.e. when looking for Realtek network driver module (realtek.ko), we also get a match on Realtek HD audio codec module (snd-hda-codec-realtek.ko). This commit will make the pattern more precise. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* kernel-generic-config: rebased against & and updated for linux-5.11Thomas Deutschmann2021-02-181-67/+723
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gkbuilds/libgpg-error: remove lock-obj-pub.${CHOST}.h workaroundThomas Deutschmann2021-02-181-43/+0
| | | | | | Workaround for bug 584052 shouldn't be necessary anymore. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gkbuilds/libgpg-error: do not install gpg-error-config or gpgrt-config anymoreThomas Deutschmann2021-02-181-18/+2
| | | | | | | | The new gpgrt-config wrapper clashes with buildroot environment. Instead of patch gpgrt-config, libgcrypt has been patched to use pkg-config instead of gpg-error-config or gpgrt-config helper. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump libgcrypt to v1.9.2Thomas Deutschmann2021-02-183-40/+59
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_configkernel.sh: config_kernel(): don't set ↵Thomas Deutschmann2021-02-181-1/+1
| | | | | | | | | CONFIG_MICROCODE_OLD_INTERFACE for $KV > 4.3 anymore sys-apps/microcode-ctl which uses this interface was already removed from repository in 2018. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* initrd.scripts: openLUKS(): differentiate LUKS_DEVICE errorsThomas Deutschmann2021-02-152-2/+14
| | | | | | | | If LUKS_DEVICE was not found user can either have not set crypt_{root,swap}, set crypt_{root,swap} to an invalid value or kernel is lacking storage support (i.e. missing controller driver). Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* initrd.scripts: openLUKS(): validate argumentThomas Deutschmann2021-02-151-0/+4
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* linuxrc: load btrfs module manuallyThomas Deutschmann2021-02-151-0/+8
| | | | | | | | | | There is no trigger/rule in UDEV/btrfs-progs to load btrfs module. The only known trigger via mount command could be too late or is maybe insufficient depending on used BTRFS {meta,}data profile. Bug: https://bugs.gentoo.org/739892 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump util-linux to v2.36.2Thomas Deutschmann2021-02-131-31/+0
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump eudev to v3.2.10Thomas Deutschmann2021-02-102-130/+0
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* eudev: allow empty propertiesThomas Deutschmann2021-02-091-0/+130
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_initramfs.sh: append_eudev(): log udevadm errors to $LOGFILEThomas Deutschmann2021-02-091-1/+2
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_funcs.sh: check_disk_space_requirements(): use global LC_ALLThomas Deutschmann2021-02-081-2/+2
| | | | | | Since commit 0785165ca64 we set LC_ALL in global scope. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_initramfs.sh: copy_binaries(): use global LC_ALLThomas Deutschmann2021-02-081-1/+1
| | | | | | Since commit 0785165ca64 we set LC_ALL in global scope. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_initramfs.sh: remove unused function is_static()Thomas Deutschmann2021-02-081-6/+0
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump kmod to v28Thomas Deutschmann2021-02-082-3/+4
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump dropbear to v2020.81Thomas Deutschmann2021-02-081-0/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump e2fsprogs to v1.46.0Thomas Deutschmann2021-02-084-8/+54
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump libgpg-error to v1.41Thomas Deutschmann2021-02-082-0/+0
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump libgcrypt to v1.8.7Thomas Deutschmann2021-02-081-0/+0
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump busybox to v1.33.0Thomas Deutschmann2021-02-082-0/+0
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump thin-provisioning-tools to v0.9.0Thomas Deutschmann2021-02-083-133/+2
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump xfsprogs to v5.10.0Thomas Deutschmann2021-02-081-0/+127
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump btrfs-progs to v5.10.1Thomas Deutschmann2021-02-083-8/+8
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump boost to v1.75.0Thomas Deutschmann2021-02-087-12/+22
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* linuxrc: Add gk.preserverun.disabledThomas Deutschmann2021-02-084-0/+53
| | | | | | | | | | | | When this boolean option is set and enabled, genkernel initramfs will unmount /run before calling switch_root. This can help in SELinux context for example where labeling is required which is not supported by genkernel. Bug: https://bugs.gentoo.org/739424 Bug: https://bugs.gentoo.org/740576 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* linuxrc: add kernel command-line argument to allow user to pass additional ↵Thomas Deutschmann2021-02-075-15/+34
| | | | | | | | | | | | | | | | | options to cryptsetup Cryptsetup supports additional options like "--perf-no_read_workqueue" or "--perf-no_write_workqueue". While it is recommended to use LUKS2 format and make these activiation flags permanent, you can also make use of the new kernel command-line arguments "crypt_root_options" for root device or "crypt_swap_options" for swap device to pass additional options to cryptsetup. These arguments can be specified multiple times or separate multiple options with a comma. Bug: https://bugs.gentoo.org/755587 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* genkernel: make sure GREP_OPTIONS is unsetThomas Deutschmann2021-02-061-0/+1
| | | | | | | We are using grep command and user could have set GREP_OPTIONS environment variable which could cause problems. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* genkernel: normalize localesThomas Deutschmann2021-02-061-0/+6
| | | | | | | | | We need to ensure we are using same locales within genkernel because some regular expressions or program output we parse maybe different depending on used locales. Bug: https://bugs.gentoo.org/763165 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_initramfs.sh: fix typo: s/auxilary/auxiliary/gGöktürk Yüksek2021-02-061-3/+3
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* genkernel.conf: typo fix: s/staticly/statically/Göktürk Yüksek2021-02-061-1/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>