aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gen_initramfs.sh: append_base_layout(): Symlink '/etc/mtab' to ↵Thomas Deutschmann2020-08-281-0/+3
| | | | | | '/proc/self/mounts' Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_initramfs.sh: append_base_layout(): Add /etc/initrd-releaseThomas Deutschmann2020-08-281-1/+10
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* arch/mips/config.sh: Update outdated configThomas Deutschmann2020-08-281-4/+4
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gkbuilds/xfsprogs: Build xfs_growfsThomas Deutschmann2020-08-281-3/+12
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gkbuilds/e2fsprogs: Build resize2fsThomas Deutschmann2020-08-281-1/+2
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gkbuilds/e2fsprogs: Use libblkid/libuuid from util-linuxThomas Deutschmann2020-08-281-2/+2
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/linuxrc: Add gksosreportThomas Deutschmann2020-08-284-8/+98
| | | | | | | | | | To help debugging, 'gksosreport' was added (idea was borrowed from dracut): Whenever a user run into a problem and get to a rescue shell, running "gksosreport" will generate /run/initramfs/gksosreport.txt containing useful debug information suitable to attach to bug reports. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/linuxrc: Try to determine filesystem typeThomas Deutschmann2020-08-282-2/+46
| | | | | | | | | 'mount -t auto' will not trigger module loading for filesystem kernel modules. Therefore we try to determine filesystem to trigger module loading in case filesystem isn't built into the kernel. Bug: https://bugs.gentoo.org/739250 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/linuxrc: Add gk.udev.debug to run udevd in debug modeThomas Deutschmann2020-08-283-1/+14
| | | | | | | When gk.udev.debug=yes is set (boolean option), udevd will run in debug mode. Output will be written to /run/initramfs/udevd.log. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/linuxrc: Log udevd debug output into /run/initramfs/udevd.logThomas Deutschmann2020-08-282-1/+2
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/linuxrc: Always preserve logThomas Deutschmann2020-08-285-128/+12
| | | | | | | | | | Now that we are using UDEV and have to preserve /run, we can also use /run to always store log from initramfs. This will make debugging easier because user don't have to explicit enable logging (disabling is still possible). Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Remove --disklabel optionThomas Deutschmann2020-08-286-16/+0
| | | | | | | Now that we always build util-linux for switch_root, we no longer need this option. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Use switch_root from util-linuxThomas Deutschmann2020-08-283-44/+38
| | | | | | | | | | switch_root from busybox does not move /dev, /sys, /proc and /run. If we do that manually there is a small window for a race condition when /dev, /sys or /proc is still needed but already moved. switch_root from util-linux will move these mounts on its own and will therefore avoid any potential problems. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_funcs.sh: _tc-getPROG(): Prevent override with empty valueThomas Deutschmann2020-08-281-0/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/linuxrc: Make use of PATH (2)Thomas Deutschmann2020-08-281-3/+4
| | | | | | Don't use absolute paths. Use 'hash' to test if command is available. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_initramfs.sh: append_base_layout(): move /run/utmp to /var/run/utmpThomas Deutschmann2020-08-281-2/+2
| | | | | | | | | | Will fix syslogin_perform_logout: logout(pts/0) returned an error: No such file or directory error logged by dropbear. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/initrd.scripts: log_msg(): Leave function early in case log file ↵Thomas Deutschmann2020-08-281-1/+1
| | | | | | cannot be written Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_configkernel.sh: config_kernel(): Ensure kernel supports TMPFSThomas Deutschmann2020-08-281-0/+5
| | | | | | This is required for UDEV support. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/linuxrc: Support devices with symlinks (2)Thomas Deutschmann2020-08-281-1/+1
| | | | | | Follow up for commit 0048f44c081dce2e296b48c71a208abf2a815c84. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/linuxrc: Add debug breakpoint before udevd startThomas Deutschmann2020-08-281-0/+3
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/config.sh: Add DEFAULT_<TYPE>_<TCVAR> to allow overrideThomas Deutschmann2020-08-282-11/+41
| | | | | | | _tc-getPROG() can only override variable with user provided value when there is a default value. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gkbuilds/eudev: Set exec_prefixThomas Deutschmann2020-08-271-0/+5
| | | | | | | This is required for proper generation of 64-btrfs.rules. Bug: https://bugs.gentoo.org/739268 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* genkernel: bump to v4.1.1v4.1.1Thomas Deutschmann2020-08-271-1/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* kernel-generic-config: Enable WireGuard supportThomas Deutschmann2020-08-271-0/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump libgpg-error to v1.39Thomas Deutschmann2020-08-277-244/+0
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/linuxrc: Disable processing of modules_load file by defaultThomas Deutschmann2020-08-264-18/+37
| | | | | | | | | | | Now that we are using (e)udev with kmod support, we can rely on UDEV to load required kernel modules. Old module loading based on modules_load file can still be enabled via boolean "gk.hw.use-modules_load" kernel command-line option which is inverting and replacing previous "nodetect" kernel command-line option. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* eudev: Enable kmod supportThomas Deutschmann2020-08-264-11/+49
| | | | | | This will allow us to use (e)udev to load required kernel modules. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gkbuilds/open-iscsi: Use 'pkg-config --static'Thomas Deutschmann2020-08-262-9/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/modules_load: Add hv_sock to Hyper-V modules listThomas Deutschmann2020-08-251-1/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/modules_load: Fix Hyper-V keyboard supportThomas Deutschmann2020-08-251-1/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_initramfs.sh: append_modules(): Update modules.* files to represent ↵Thomas Deutschmann2020-08-251-0/+5
| | | | | | initramfs content Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gkbuilds/dropbear: Build dbclientThomas Deutschmann2020-08-251-1/+4
| | | | | | Required for scp. Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/linuxrc: Hide first output until cmdline was parsedThomas Deutschmann2020-08-241-2/+2
| | | | | | | | This will make us honor QUIET kernel command-line argument and allow full silent boot. Link: https://forums.gentoo.org/viewtopic-t-1117988.html Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_initramfs.sh: append_multipath(): don't check package file list with ↵Thomas Deutschmann2020-08-241-1/+0
| | | | | | realpath Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_initramfs.sh: append_zfs(): don't check package file list with realpathThomas Deutschmann2020-08-241-1/+0
| | | | | Bug: https://bugs.gentoo.org/738740 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* busy-config: Disable CONFIG_STACK_OPTIMIZATION_386Thomas Deutschmann2020-08-231-0/+1
| | | | | | | | Using '-mpreferred-stack-boundary=2' is considered broken and is causing problems for some users. Bug: https://bugs.gentoo.org/725674 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/initrd.scripts: log_msg(): Log millisecondsThomas Deutschmann2020-08-211-2/+2
| | | | | | | This will allow us to see more in detail where initramfs spent time. Bug: https://bugs.gentoo.org/738378 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* --luks: Add support for Serpent cipherThomas Deutschmann2020-08-214-3/+17
| | | | | Link: https://forums.gentoo.org/viewtopic-t-1117806.html Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_configkernel.sh: config_kernel(): Set CONFIG_CRYPTO_AES_586 only for X86Thomas Deutschmann2020-08-211-5/+5
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/linuxrc: Process /etc/initramfs.mounts multiple timesThomas Deutschmann2020-08-192-34/+56
| | | | | | | | | | | | | | We need to mount mountpoints listed in /etc/initramfs.mounts before validating REAL_INIT in case init is located on seperate mount. In addition the code was moved to a dedicated function named process_initramfs_mounts() to allow to run it multiple times which is needed if REAL_INIT wasn't verified (in case system was booted from livecd). Link: https://forums.gentoo.org/viewtopic-t-1117762.html Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* bcache: Fix pkg-config callThomas Deutschmann2020-08-191-1/+1
| | | | | Bug: https://bugs.gentoo.org/737894 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_determineargs.sh: determine_real_args(): --integrated-initramfs requires ↵Thomas Deutschmann2020-08-181-0/+8
| | | | | | building of kernel and initramfs Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* gen_funcs.sh: kconfig_set_opt(): Change separator to allow setting of pathsThomas Deutschmann2020-08-181-1/+1
| | | | | Bug: https://bugs.gentoo.org/737598 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* genkernel: bump to v4.1.0v4.1.0Thomas Deutschmann2020-08-101-1/+1
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/initrd.scripts: start_volumes(): Don't wait for /dev/zfsThomas Deutschmann2020-08-091-12/+1
| | | | | | | This is not needed anymore and also not working. Bug: https://bugs.gentoo.org/736084 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* defaults/initrd.scripts: start_volumes(): Drop ZPOOL_IMPORT_UDEV_TIMEOUT_MS ↵Thomas Deutschmann2020-08-091-3/+0
| | | | | | | | | workaround Now that we switched to (E)UDEV usage, this workaround is no longer needed. Follow-up: 73689f8 ("ZFS: Enable UDEV support") Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* modules_load: Add vmw_pvscsi for VMware PVSCSI driver supportThomas Deutschmann2020-08-041-1/+1
| | | | | Link: https://forums.gentoo.org/viewtopic-t-1116502.html Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump btrfs-progs to v5.7v4.1.0_rc1Thomas Deutschmann2020-08-043-0/+0
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump busybox to v1.32.0Thomas Deutschmann2020-08-047-145/+46
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
* Bump util-linux to v2.36Thomas Deutschmann2020-08-041-36/+0
| | | | Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>