Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Move from GRUB to plain EFI Stubs?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
alecStewart1
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2022
Posts: 127

PostPosted: Fri Apr 19, 2024 7:49 pm    Post subject: Reply with quote

AndrewAmmerlaan wrote:

My advice, if the firmware is tricky, then just use systemd-boot or refind. I have personally spent way too much time debugging and working around broken firmware and it is never worth the effort, the performance impact of systemd-boot and refind is neglible.


I use OpenRC, not systemd. Unfortunately, refind didn't work either.

It seems like some issue with dracut. If you look around there's a lot of people having issues with generating working initramfs with dracut after upgrading their profile from 17.0 to 23. One person when from using the dist-kernel to genkernel and things were working again. Granted, if you asked what was going wrong with dracut's generation of the initramfs, I have no idea.

I've yet to try genkernel yet, but I will either tonight or tomorrow if I have the time. My Gentoo machine has been powered off for a few days as I've wound up preoccupying myself with other things in the meantime.
Back to top
View user's profile Send private message
alecStewart1
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2022
Posts: 127

PostPosted: Fri Apr 19, 2024 7:51 pm    Post subject: Reply with quote

Biosias wrote:
But as other have pointed out, UEFI implementations are sometimes very weird ... to say the least. Even on my own machie, I can add entries but the firmware seems to at random ignore the set bootorder.


I've tried it out and it seems my board's firmware wants to see a partition that is labeled with "/boot". It doesn't look at anything labeled with "/efi", "/boot" is what it wants.
Why that instead of just looking if there's a partition with the ESP flag? Beats me.
Back to top
View user's profile Send private message
AndrewAmmerlaan
Developer
Developer


Joined: 25 Jun 2014
Posts: 272
Location: Nijmegen

PostPosted: Fri Apr 19, 2024 8:51 pm    Post subject: Reply with quote

alecStewart1 wrote:
Biosias wrote:
But as other have pointed out, UEFI implementations are sometimes very weird ... to say the least. Even on my own machie, I can add entries but the firmware seems to at random ignore the set bootorder.


I've tried it out and it seems my board's firmware wants to see a partition that is labeled with "/boot". It doesn't look at anything labeled with "/efi", "/boot" is what it wants.
Why that instead of just looking if there's a partition with the ESP flag? Beats me.


The firmware cannot know the mount point you give some partition within the linux OS (it cannot read the fstab on your root afterall), this cannot be the problem. The firmware checks the PARTTYPE of the partition (not the flags), are you sure it is correct? You can find it with lsblk.
_________________
OS: Gentoo 6.7.3-gentoo-dist, ~amd64, 17.1/desktop/plasma/systemd/merged-usr
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400
Back to top
View user's profile Send private message
alecStewart1
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2022
Posts: 127

PostPosted: Fri Apr 19, 2024 9:15 pm    Post subject: Reply with quote

AndrewAmmerlaan wrote:
alecStewart1 wrote:
Biosias wrote:
But as other have pointed out, UEFI implementations are sometimes very weird ... to say the least. Even on my own machie, I can add entries but the firmware seems to at random ignore the set bootorder.


I've tried it out and it seems my board's firmware wants to see a partition that is labeled with "/boot". It doesn't look at anything labeled with "/efi", "/boot" is what it wants.
Why that instead of just looking if there's a partition with the ESP flag? Beats me.


The firmware cannot know the mount point you give some partition within the linux OS (it cannot read the fstab on your root afterall), this cannot be the problem. The firmware checks the PARTTYPE of the partition (not the flags), are you sure it is correct? You can find it with lsblk.


I'll see, but when my boot partition was /efi, the none of the EFI entries where in the boot menu. When I moved it to /boot, they showed up. That was also when I was using refind and not uefi-mkconfig with installkernel. I don't know. Whatever the mountpoint is, I don't really care.
Back to top
View user's profile Send private message
alecStewart1
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2022
Posts: 127

PostPosted: Sat Apr 27, 2024 9:00 pm    Post subject: Reply with quote

Okay, so bumping this because genkernel seems to work.

However

It seems like my motherboard might be only okay with booting with an EFI file named bootx64.efi. The following is what I tried with efibootmgr to see what my computer would be okay with:

Code:

BootOrder: 0000,0002,0003,0004,0001
Boot0000* removeable    HD(1,GPT,d5d977e1-f515-574f-8949-caf8f2c41559,0x800,0x80000)/File(\EFI\BOOT\BOOTX64.EFI)root=UUID="963bf518-69b3-41af-8366-617ba5aa3ef5" ro quiet init_on_alloc=1 init_on_free=1 randomize_kstack_offset=on random.trust_cpu=off slab_nomerge pti=on page_poison=1 iommu.passthrough=0 iommu.strict=1 vsyscall=none apparmor=1 security=apparmor lsm=landlock,yama,integrity,apparmor,bpf driver=free amdgpu.modeset=1 snd-usb-audio.quirk_alias=0db0419c:0b051917 video=DP-1:2560x1440@165 zswap.enabled=1 zswap.compressor=zstd zswap.zpool=zsmalloc zswap.max_pool_percent=15 initrd=\EFI\boot\initramfs.cpio initrd=\EFI\boot\intel-uc.img

Boot0001* UEFI:  Patriot Memory PMAP    PciRoot(0x0)/Pci(0x14,0x0)/USB(20,0)/CDROM(1,0x27a1fc,0x8000)

Boot0002* backup        HD(1,GPT,d5d977e1-f515-574f-8949-caf8f2c41559,0x800,0x80000)/File(\EFI\backup\bzImage.efi)root=UUID="963bf518-69b3-41af-8366-617ba5aa3ef5" ro quiet init_on_alloc=1 init_on_free=1 randomize_kstack_offset=on random.trust_cpu=off slab_nomerge pti=on page_poison=1 iommu.passthrough=0 iommu.strict=1 vsyscall=none apparmor=1 security=apparmor lsm=landlock,yama,integrity,apparmor,bpf driver=free amdgpu.modeset=1 snd-usb-audio.quirk_alias=0db0419c:0b051917 video=DP-1:2560x1440@165 zswap.enabled=1 zswap.compressor=zstd zswap.zpool=zsmalloc zswap.max_pool_percent=15 initrd=\EFI\backup\initramfs.cpio initrd=\EFI\backup\intel-uc.img

Boot0003* gentoo        HD(1,GPT,d5d977e1-f515-574f-8949-caf8f2c41559,0x800,0x80000)/File(\VMLINUZ-6.6.21-GENTOO-X86_64)root=UUID="963bf518-69b3-41af-8366-617ba5aa3ef5" ro quiet init_on_alloc=1 init_on_free=1 randomize_kstack_offset=on random.trust_cpu=off slab_nomerge pti=on page_poison=1 iommu.passthrough=0 iommu.strict=1 vsyscall=none apparmor=1 security=apparmor lsm=landlock,yama,integrity,apparmor,bpf driver=free amdgpu.modeset=1 snd-usb-audio.quirk_alias=0db0419c:0b051917 video=DP-1:2560x1440@165 zswap.enabled=1 zswap.compressor=zstd zswap.zpool=zsmalloc zswap.max_pool_percent=15 initrd=\initramfs-6.6.21-gnetoo-x86_64.img initrd=\intel-uc.img


Boot0004* gentoo2       HD(1,GPT,d5d977e1-f515-574f-8949-caf8f2c41559,0x800,0x80000)/File(\EFI\GENTOO\BZIMAGE.EFI)root=UUID="963bf518-69b3-41af-8366-617ba5aa3ef5" ro quiet init_on_alloc=1 init_on_free=1 randomize_kstack_offset=on random.trust_cpu=off slab_nomerge pti=on page_poison=1 iommu.passthrough=0 iommu.strict=1 vsyscall=none apparmor=1 security=apparmor lsm=landlock,yama,integrity,apparmor,bpf driver=free amdgpu.modeset=1 snd-usb-audio.quirk_alias=0db0419c:0b051917 video=DP-1:2560x1440@165 zswap.enabled=1 zswap.compressor=zstd zswap.zpool=zsmalloc zswap.max_pool_percent=15 initrd=\EFI\gnetoo\initramfs.cpio initrd=\EFI\gentoo\intel-uc.img


Don't mind Boot0001, that's my live USB stick. The only option here that worked as Boot0000, the rest (besides the live USB) would just go back to the boot menu. So, what I'm going to try is


  • \EFI\BOOT\BOOTX64.EFI will be the normal EFI to boot into
  • \EFI\BOOT\BACKUP\BOOTX64.EFI will be the backup for storage for all of the stuff I know works
  • \EFI\BOOT\GENTOO\BOOTX64.EFI will just be to test for now and see if my motherboard is okay with that path.


My only question regarding genkernel is if there's a way to automate creating all of these? I guess I could just suck it up and make a shell script for myself.
Back to top
View user's profile Send private message
alecStewart1
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2022
Posts: 127

PostPosted: Sun Apr 28, 2024 1:12 pm    Post subject: Reply with quote

Okay, I'm able to boot fine, but it seems like there's some other issues: Sound is one, but I'll put in the multimedia page.

A few funky things is that upon booting I get:

Code:

Initramfs unpacking failed: invalid magic at start of compressed archive


This is probably the more pressing issue.

Reminder that I am using genkernel. Here's my /etc/genkernel.conf:

Code:

# Configuration file for genkernel

# This file is sourced by genkernel at startup and determines which options
# we will be using to compile our kernel.  The order of precidence is simple,
# with the internal settings being least important, configuration file
# settings next, and command line options being most important.

# =========COMMON COMMAND LINE OPTION DEFAULTS=========

# Install to $BOOTDIR
INSTALL="yes"

# Run 'make oldconfig' before compiling this kernel
#OLDCONFIG="yes"

# Run 'make menuconfig' before compiling this kernel
MENUCONFIG="yes"

# Run 'make gconfig' before compiling this kernel
#GCONFIG="no"

# Run 'make nconfig' (ncurses 'menuconfig') before compiling this kernel
#NCONFIG="no"

# Run 'make xconfig' before compiling this kernel
#XCONFIG="no"

# Run 'make mrproper' before compiling this kernel
#MRPROPER="yes"

# Run 'make clean' before compiling this kernel
# Only needed if MRPROPER is set to NO because
# MRPROPER implies 'make clean'.
#CLEAN="yes"

# Mount BOOTDIR automatically if it isn't mounted
MOUNTBOOT="yes"

# Make symlinks in BOOTDIR automatically
#SYMLINK="yes"

# Save the new configuration in /etc/kernels upon
# successful compilation
SAVE_CONFIG="yes"

# Enable color output in genkernel
NOCOLOR="false"

# Clear build cache dir on gernkernel start
CLEAR_CACHEDIR="no"

# Clear all tmp files and caches after genkernel has run
POSTCLEAR="no"

# Check for x MB free disk space in BOOTDIR
#CHECK_FREE_DISK_SPACE_BOOTDIR=0

# Check for x MB free disk space in kernel outputdir
#CHECK_FREE_DISK_SPACE_KERNELOUTPUTDIR=0

# Genkernel uses an independent configuration for MAKEOPTS, and does not source
# /etc/portage/make.conf . You can override the default setting by uncommenting
# and tweaking the following line. Default setting is set up by
# ${GK_SHARE}/${ARCH_OVERRIDE}/config.sh . The recommended value for -j
# argument is: <number of processors>*<number of cores per processor>+1
MAKEOPTS="-j12"

# Run the kernel make at the following NICE level
#NICE=10

# Add bcache support
#BCACHE="no"

# Add LVM support
#LVM="no"

# Add LUKS support
#LUKS="no"

# Add GnuPG support
#GPG="no"

# Add keyctl support for loading LUKS passphrase into a keyring
#KEYCTL="no"

# Add in early microcode support: this sets the kernel options for early microcode loading
# Possible values: empty/"no", "all", "intel", "amd"
MICROCODE="intel"

# Include early microcode in generated initramfs.
# Only needed if system cannot load multiple initramfs.
# NOTE: >=sys-boot/grub-2 will detect and auto-load {amd,intel}-uc.img file
#       provided by sys-firmware/intel-microcode[initramfs] or
#       sys-kernel/linux-firmware[initramfs].
#MICROCODE_INITRAMFS="no"

# Add NFS support
#NFS="no"

# Add DMRAID support
#DMRAID="no"

# Add SSH support
#SSH="no"

# Add b2sum support
#B2SUM="no"

# Include busybox in the initramfs. If included, busybox is rebuilt
# if the cached copy is out of date.
#BUSYBOX="yes"

# Add MDRAID support
#MDADM="no"

# Specify a custom mdadm.conf.
# By default the initramfs will be built *without* an mdadm.conf and will auto-detect
# arrays during bootup.  Usually, this should not be needed.
#MDADM_CONFIG="/etc/mdadm.conf"

# Add Multipath support
#MULTIPATH="no"

# Add iSCSI support
#ISCSI="no"

# Add e2fsprogs support
#E2FSPROGS="no"

# Include support for unionfs
#UNIONFS="no"

# Include support for zfs volume management.  If unset, genkernel will attempt
# to autodetect and enable this when rootfs is on zfs.
#ZFS="no"

# Add BTRFS support
BTRFS="yes"

# Add xfsprogs support
#XFSPROGS="no"

# Install firmware onto root filesystem
# Will conflict with sys-kernel/linux-firmware package
#FIRMWARE_INSTALL="no"

# Include full contents of FIRMWARE_DIR
# (if FIRMWARE option below is set to YES).
#ALLFIRMWARE="no"

# Add firmware(s) to initramfs required by copied modules
FIRMWARE="yes"

# Specify directory to pull from
FIRMWARE_DIR="/lib/firmware"

# Specify a comma-separated list of firmware files or directories to include,
# relative to FIRMWARE_DIR (if FIRMWARE option above is set to YES
# and ALLFIRMWARE is set to NO).
#FIRMWARE_FILES="regulatory.db,regulatory.db.p7s,iwlwifi-so-a0-gf-a0-83.ucode,iwl-debug-yoyo.bin,iwlwifi-so-a0-gf-a0.pnvm,amdgpu/navy_flounder_sos.bin,amdgpu/navy_flounder_ta.bin,amdgpu/navy_flounder_smc.bin,amdgpu/navy_flounder_dmcub.bin,amdgpu/navy_flounder_pfp.bin,amdgpu/navy_flounder_me.bin,amdgpu/navy_flounder_ce.bin,amdgpu/navy_flounder_rlc.bin,amdgpu/navy_flounder_mec.bin,amdgpu/navy_flounder_mec2.bin,amdgpu/navy_flounder_vcn.bin,intel/ibt-1040-0041.sfi,amdgpu/navy_flounder_sdma.bin,intel/ibt-1040-0041.ddc"

# Add new kernel to grub
# Possible values: empty/"no", "grub", "grub2"
BOOTLOADER="no"

# Use sandbox when building initramfs
SANDBOX="yes"

# Embed and set font early on boot
# Possible values: empty/"none", "current", <PSF file>
#BOOTFONT="current"

# Add boot splash using splashutils
#SPLASH="yes"

# Use this splash theme. If commented out - the "default" name theme is used.
# Also, SPLASH="yes" needs to be enabled for this one to work.
# This supersedes the "SPLASH_THEME" option in '/etc/conf.d/splash'.
#SPLASH_THEME="gentoo"

# Includes or excludes Plymouth from the initramfs. If "splash" is
# passed at boot, Plymouth will be activated.
#PLYMOUTH="no"

# Embeds the given plymouth theme in the initramfs.
#PLYMOUTH_THEME="text"

# Run "emerge @module-rebuild" automatically when possible and necessary
# after kernel and modules have been compiled
MODULEREBUILD="yes"

# Run the specified command in the current environment after the kernel and
# modules have been compiled, useful to rebuild external kernel module
# (see MODULEREBUILD above) or installing additional
# files (use 'copy_image_with_preserve dtb path/to/dtb dtb <kernelname>')
#CMD_CALLBACK=""


# =========KEYMAP SETTINGS=========
#
# Force keymap selection at boot
#DOKEYMAPAUTO="no"

# Enables keymap selection support
#KEYMAP="yes"


# =========LOW LEVEL COMPILE SETTINGS=========
#
# Assembler to use for the kernel.  See also the --kernel-as command line
# option.
#KERNEL_AS="as"

# Archiver to use for the kernel.  See also the --kernel-ar command line
# option.
#KERNEL_AR="ar"

# Compiler to use for the kernel (e.g. distcc).  See also the --kernel-cc
# command line option.
#KERNEL_CC="gcc"

# Linker to use for the kernel.  See also the --kernel-ld command line option.
#KERNEL_LD="mold"

# NM utility to use for the kernel.  See also the --kernel-nm command line option.
#KERNEL_NM="nm"

# GNU Make to use for kernel.  See also the --kernel-make command line option.
#KERNEL_MAKE="make"

# objcopy utility to use for the kernel.  See also the --kernel-objcopy command
# line option.
#KERNEL_OBJCOPY="objcopy"

# objdump utility to use for the kernel.  See also the --kernel-objdump command
# line option.
#KERNEL_OBJDUMP="objdump"

# ranlib utility to use for the kernel.  See also the --kernel-ranlib command
# line option.
#KERNEL_RANLIB="ranlib"

# readelf utility to use for the kernel.  See also the --kernel-readelf command
# line option.
#KERNEL_READELF="readelf"

# strip utility to use for the kernel.  See also the --kernel-strip command line
# option.
#KERNEL_STRIP="strip"

# Assembler to use for the utilities.  See also the --utils-as command line
# option.
#UTILS_AS="as"

# Archiver to use for the utilities.  See also the --utils-ar command line
# option.
#UTILS_AR="ar"

# C Compiler to use for the utilities (e.g. distcc).  See also the --utils-cc
# command line option.
#UTILS_CC="gcc"

# C++ Compiler to use for the utilities (e.g. distcc).  See also the --utils-cxx
# command line option.
#UTILS_CXX="g++"

# Linker to use for the utilities.  See also the --utils-ld command line
# option.
#UTILS_LD="mold"

# NM utility to use for the utilities.  See also the --utils-nm command line option.
#UTILS_NM="nm"

# GNU Make to use for the utilities.  See also the --utils-make command line
# option.
#UTILS_MAKE="make"

# Target triple (i.e. aarch64-linux-gnu) to build for. If you do not
# cross-compile, leave blank for auto detection.
#CROSS_COMPILE=""

# Target triple (i.e. aarch64-linux-gnu) to build kernel for.  Utilities will be
# built for the native target, not this target. If you do not cross-compile,
# leave blank.
#KERNEL_CROSS_COMPILE=""

# Override default make target (bzImage). See also the --kernel-target
# command line option. Useful to build a uImage on arm.
#KERNEL_MAKE_DIRECTIVE_OVERRIDE="fooImage"

# Override default kernel binary path. See also the --kernel-binary
# command line option. Useful to install a uImage on arm.
#KERNEL_BINARY_OVERRIDE="arch/foo/boot/bar"


# =========GENKERNEL LOCATION CONFIGURATION=========
#
# Variables:
#   %%ARCH%%  - Final determined architecture
#   %%CACHE%% - Final determined cache location

# Set genkernel's temporary work directory
#TMPDIR="/var/tmp/genkernel"

# Set the boot directory, default is /boot
BOOTDIR="/efi"

# Default share directory location
GK_SHARE="${GK_SHARE:-/usr/share/genkernel}"

# Location of the default cache
CACHE_DIR="/var/cache/genkernel"

# Location of DISTDIR, where our source tarballs are stored
DISTDIR="${GK_SHARE}/distfiles"

# Log output file
LOGFILE="/var/log/genkernel.log"

# Debug Level
LOGLEVEL=3


# =========COMPILED UTILS CONFIGURATION=========
#
# Default location of kernel source
DEFAULT_KERNEL_SOURCE="/usr/src/linux"

# Default kernel config (only use to override using
# arch/%%ARCH%%/kernel-config-${VER}.${PAT} !)
#DEFAULT_KERNEL_CONFIG="${GK_SHARE}/arch/%%ARCH%%/kernel-config"

# Specifies a user created busybox config
#BUSYBOX_CONFIG="/path/to/file"

# NOTE: Since genkernel 3.4.41 the version of
#   busybox, lvm, mdadm, ... have been moved to
#   /usr/share/genkernel/defaults/software.sh in order to
#   reduce the merging you have to do during etc-update.
#   You can still override these settings in here.


# =========MISC KERNEL CONFIGURATION=========
#
# Set kernel filename which will be used when kernel will be installed
# into BOOTDIR. See man page to learn more about available placeholders.
#KERNEL_FILENAME="vmlinuz-%%KV%%"

# Set kernel symlink name which will be used when kernel will be installed
# into BOOTDIR and SYMLINK option is enabled
#KERNEL_SYMLINK_NAME="kernel"

# This option will set kernel option CONFIG_LOCALVERSION.
# Use special value "UNSET" to unset already set CONFIG_LOCALVERSION.
#KERNEL_LOCALVERSION="-%%ARCH%%"

# This option is only valid if kerncache is
# defined. If there is a valid kerncache no checks
# will be made against a kernel source tree.
#KERNEL_SOURCES="yes"

# Build a static (monolithic kernel)
#BUILD_STATIC="no"

# Make and install kernelz image (PowerPC)
#GENZIMAGE="no"

# Archive file created using tar containing kernel binary, content
# of /lib/modules and the kernel config.
# NOTE: Archive is created before the callbacks are run!
#KERNCACHE="/path/to/file.tar.xz"

# Prefix to kernel module destination, modules
# will be installed in <prefix>/lib/modules
#KERNEL_MODULES_PREFIX=""


# =========MISC INITRAMFS CONFIGURATION=========
#
# Set initramfs filename which will be used when initramfs will be
# installed into BOOTDIR. See man page to learn more about available
# placeholders.
#INITRAMFS_FILENAME="initramfs-%%KV%%.img"

# Set initramfs symlink name which will be used when initramfs will be
# installed into BOOTDIR and SYMLINK option is enabled
#INITRAMFS_SYMLINK_NAME="initramfs"

# Copy all compiled kernel modules to the initramfs
#ALLRAMDISKMODULES="no"

# Copy selected modules to the initramfs based on arch-specific modules_load file
#RAMDISKMODULES="yes"

# Archive file created using tar containing kernel and initramfs.
# NOTE: No modules outside of the initramfs will be included!
#MINKERNPACKAGE="/path/to/file.tar.xz"

# Add additional modules to the initramfs using the module groups defined
# in /usr/share/genkernel/defaults/modules_load (see this file for
# more details).  This would be used if, for example, you
# required an additional crypto module or network device at boot
# time and did not want to statically compile these in the kernel.
# Options take the form AMODULES_{group} where {group} is one of
# the groups in modules_load (which are in the form MODULES_{group}).
# Use this with caution.
#AMODULES_group="module-to-include another-module"

# Override the default modules in the initramfs, for a given group, as defined by
# /usr/share/genkernel/defaults/modules_load and the per-arch modules_load
# files. You PROBABLY want to use AMODULES_* above, and NOT MODULES_* here.
# If you use MODULES_* here, the default and per-arch modules will NOT be used.
#MODULES_group1="some-module"
#MODULES_group2="" # Load no modules for this group

# Override the default used linuxrc script.
#LINUXRC="/path/to/custom/linuxrc"

# Archive file created using tar containing modules after
# the callbacks have run
#MODULESPACKAGE="/path/to/file.tar.xz"

# Directory structure to include in the initramfs,
# only available on >=2.6 kernels
#INITRAMFS_OVERLAY=""

# Build the generated initramfs into the kernel instead of
# keeping it as a separate file
#INTEGRATED_INITRAMFS="no"

# Compress generated initramfs
COMPRESS_INITRD="yes"

# Types of compression: best, xz, lzma, bzip2, gzip, lzop, lz4, zstd, fastest
# "best" selects the best available compression method
# "fastest" selects the fastest available compression method
COMPRESS_INITRD_TYPE="zstd"

# wrap initramfs using mkimage for u-boot bootloader
# WRAP_INITRD=no

# Create a self-contained env in the initramfs
#NETBOOT="no"


# =========MISC BOOT CONFIGURATION=========
#
# Specify a default for real_root=
#REAL_ROOT="/dev/one/two/gentoo"


Another fun few things I've found are a lot of stuff getting caught by audit/apparmor

Code:

kauditd_printk_skb: 4 callbacks suppressed
audit: type=1400 audit(1714308877.652:352): apparmor="DENIED" operation="mknod" class="file" profile="syslogd" name="/run/syslogd.cache" pid=5574 comm="syslogd" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
audit: type=1400 audit(1714308877.655:353): apparmor="DENIED" operation="mknod" class="file" profile="syslogd" name="/run/syslogd.cache" pid=5574 comm="syslogd" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
audit: type=1400 audit(1714308877.658:354): apparmor="DENIED" operation="mknod" class="file" profile="syslogd" name="/run/syslogd.cache" pid=5574 comm="syslogd" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
audit: type=1400 audit(1714308877.662:355): apparmor="DENIED" operation="mknod" class="file" profile="syslogd" name="/run/syslogd.cache" pid=5574 comm="syslogd" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
audit: type=1400 audit(1714308877.665:356): apparmor="DENIED" operation="mknod" class="file" profile="syslogd" name="/run/syslogd.cache" pid=5574 comm="syslogd" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
audit: type=1400 audit(1714308877.668:357): apparmor="DENIED" operation="mknod" class="file" profile="syslogd" name="/run/syslogd.cache" pid=5574 comm="syslogd" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
audit: type=1400 audit(1714308877.672:358): apparmor="DENIED" operation="mknod" class="file" profile="syslogd" name="/run/syslogd.cache" pid=5574 comm="syslogd" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
audit: type=1400 audit(1714308877.675:359): apparmor="DENIED" operation="mknod" class="file" profile="syslogd" name="/run/syslogd.cache" pid=5574 comm="syslogd" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
audit: type=1400 audit(1714308877.678:360): apparmor="DENIED" operation="mknod" class="file" profile="syslogd" name="/run/syslogd.cache" pid=5574 comm="syslogd" requested_mask="c" denied_mask="c" fsuid=0 ouid=0
audit: type=1400 audit(1714308877.678:361): apparmor="DENIED" operation="mknod" class="file" profile="syslogd" name="/run/syslogd.cache" pid=5574 comm="syslogd" requested_mask="c" denied_mask="c" fsuid=0 ouid=0


This is usually proceeded by or followed by

Code:

logitech-djreceiver 0003:046D:C537.0014: Unexpected input report number 128
logitech-djreceiver 0003:046D:C537.0014: Unexpected input report number 128
logitech-djreceiver 0003:046D:C537.0014: Unexpected input report number 128
logitech-djreceiver 0003:046D:C537.0014: Unexpected input report number 128


So God knows if that's related to anything.

Here's the kernel config I used, I'm on the hardened profile and I did some KSPP.

And of course the good ol' emerge --info:

Code:

Portage 3.0.61 (python 3.12.3-final-0, default/linux/amd64/23.0/split-usr/hardened, gcc-13, glibc-2.38-r13, 6.6.21-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.6.21-gentoo-x86_64-x86_64-12th_Gen_Intel-R-_Core-TM-_i5-12600K-with-glibc2.38
KiB Mem:    32656092 total,  28216908 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository wayland-desktop: Sat, 27 Apr 2024 15:33:32 +0000
Head commit of repository wayland-desktop: 76f437a854834e610ba26cd55b0c5f5ec2fd43b4

Timestamp of repository steam-overlay: Fri, 19 Apr 2024 23:18:33 +0000
Head commit of repository steam-overlay: 69fc49999f96346c4cc4692a9a781b757a11c22a

Head commit of repository librewolf: 9e354f7da7912ee22b87d047754067ec026e7604

Timestamp of repository guru: Sat, 27 Apr 2024 18:48:20 +0000
Head commit of repository guru: c01bf5ee7595452c28f789063c59b81a57994df9

Timestamp of repository gentoo: Sat, 27 Apr 2024 21:19:27 +0000
Head commit of repository gentoo: 51380f84a8633950347f9bfd743256b632d95beb

Timestamp of repository haskell: Thu, 25 Apr 2024 23:33:16 +0000
Head commit of repository haskell: c33d0764fd2d24521a00b1b84ba8a0892a13dfff

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.10.14_p1::gentoo, 3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust-bin:         1.77.1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo, 18.1.4::gentoo
sys-devel/gcc:             13.2.1_p20240210::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo, 18.1.4::gentoo
sys-devel/llvm:            17.0.6::gentoo, 18.1.4::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r13::gentoo
Repositories:

local-repo
    location: /var/db/repos/local-repo
    masters: gentoo
    priority: 2
    volatile: False

wayland-desktop
    location: /var/db/repos/wayland-desktop
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/wayland-desktop.git
    masters: gentoo
    priority: 6
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    priority: 7
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    priority: 8
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    priority: 9
    volatile: False

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: 10
    volatile: False

haskell
    location: /var/db/repos/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/haskell.git
    masters: gentoo
    priority: 11
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=alderlake -pipe -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk -fomit-frame-pointer --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=20480"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=alderlake -pipe -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk -fomit-frame-pointer --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=20480"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -march=alderlake -pipe -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk -fomit-frame-pointer --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=20480"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=alderlake -pipe -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk -fomit-frame-pointer --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=20480"
GENTOO_MIRRORS="https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ https://ftp.uni-hannover.de/gentoo/ https://mirror.netcologne.de/gentoo/ https://packages.hs-regensburg.de/gentoo-distfiles/ https://www.mirrorservice.org/sites/distfiles.gentoo.org/ https://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_US en-US ja ko zh-CN zh-TW"
MAKEOPTS="-j12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp/portage"
RUSTFLAGS="-C target-cpu=native -C opt-level=3 -C strip=symbols"
SHELL="/bin/fish"
USE="X a52 aac acl acpi alsa amd64 apparmor audit bluetooth bzip2 caps cet crypt cups cxx dbus dga dri drm elogind emacs ffmpeg filecaps fontconfig gdbm gif gstreamer gui hardened iconv jpeg libtirpc lto mp3 mp4 mpeg multilib ncurses ogg opengl openmp openrc pam pcre pic pie pipewire png pulseaudio readline savedconfig screencast seccomp sound split-usr ssl ssp svg syslog test-rust threads truetype udev udisks unicode upower usb vaapi vdpau verify-sig vorbis vtv vulkan wayland wifi xattr xcb xft xml xtpax zlib" ABI_X86="64 32" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en_US en-US ja ko zh-CN zh-TW" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="AMDGPU X86 BPF" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_12" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum