I have others issues/questions with modules.
Complete logs:
Code: Select all
# ugrd --kver 6.12.41-gentoo --no-kmod
INFO | Processing module: ugrd.base.base
INFO | Processing module: ugrd.base.core
INFO | Processing module: ugrd.fs.mounts
INFO | Adding library path: /usr/lib64
INFO | Processing module: ugrd.base.cmdline
INFO | Processing module: ugrd.base.banner
INFO | Processing module: ugrd.kmod.kmod
INFO | Processing module: ugrd.kmod.standard_mask
INFO | Processing module: ugrd.kmod.input
INFO | Processing module: ugrd.fs.cpio
INFO | Processing module: ugrd.base.checks
INFO | [kernel_version] Setting from arguments: 6.12.41-gentoo
INFO | [no_kmod] Setting from arguments: True
INFO | Loading config file: /etc/ugrd/config.toml
ERROR | kernel_version is set, but no_kmod is enabled.
INFO | -- | Running ugrd v2.0.2
INFO | -- | Running build tasks
INFO | Detected init at: /usr/bin/init
INFO | Source path for libgcc_s: /usr/lib/gcc/x86_64-pc-linux-gnu/14/libgcc_s.so.1
INFO | Using default shell: /bin/sh
INFO | Found virtual block devices: dm-1, dm-2, dm-0
INFO | [/dev/mapper/root] Auto-enabling kernel modules for device: dm_mod
INFO | [/dev/mapper/root] Autodetected mount type from device: xfs
INFO | [root] Autodetected mount source: uuid=xxx
INFO | [mounts] Updating mount: root
INFO | [/] Detected virtual block device: /dev/mapper/root
INFO | [/dev/sda2] Auto-enabling kernel modules for device: sd_mod
INFO | Autodetected LUKS mount, enabling the cryptsetup module: root
INFO | Processing module: ugrd.crypto.cryptsetup
INFO | [root] LUKS volume uuid:xxx
INFO | [root] Configuring cryptsetup for LUKS mount (root) on: dm-0
root:
uuid: xxx
INFO | [root] Autodetected device mapper container: sda2
WARNING | [get_kernel_version] Kernel version is already set, skipping.
WARNING | [autodetect_modules] no_kmod is enabled, skipping.
INFO | [Mitsumi Electric Mitsumi USB Multimedia Keyboard / Mouse (Wireless)] Detected driver: hid-generic
INFO | Build directory does not exist, skipping cleaning: /tmp/initramfs_build
INFO | Processing module: ugrd.kmod.novideo
INFO | Processing module: ugrd.kmod.nosound
INFO | Processing module: ugrd.kmod.nonetwork
INFO | Detected cryptsetup backend: openssl
INFO | Setting shebang to: #!/bin/sh -l
WARNING | [process_modules] no_kmod is enabled, skipping.
WARNING | [process_module_metadata] no_kmod is enabled, skipping.
WARNING | [xfs] Kernel module info for firmware detection does not exist, but no_kmod is set.
WARNING | [dm_crypt] Kernel module info for firmware detection does not exist, but no_kmod is set.
WARNING | [sha256_generic] Kernel module info for firmware detection does not exist, but no_kmod is set.
INFO | [deploy_nodes] Skipping real device node creation with mknod, as make_nodes is not specified.
INFO | Regenerating ld.so.cache
INFO | Wrote file: /tmp/initramfs_build/etc/ld.so.conf
WARNING | [regen_kmod_metadata] no_kmod is enabled, skipping.
INFO | -- | Generating init functions
WARNING | no_kmod is enabled, but kernel modules are set, ensure the following kernel modules are built into the kernel:
WARNING | Init kernel modules: xfs, dm_crypt
WARNING | Included kernel modules: sha256_generic
INFO | No initramfs fstab found, skipping mount_fstab. If non-root storage devices are not needed at boot, this is fine.
INFO | Wrote file: /tmp/initramfs_build/etc/profile
INFO | Included functions: check_var, setvar, readvar, wait_for_space, prompt_user, retry, klog, edebug, einfo, ewarn, eerror, rd_fail, rd_restart, _find_init, mount_default_root, parse_cmdline_bool, parse_cmdline_str, get_crypt_dev, open_crypt_dev, mount_base, export_exports, parse_cmdline, print_banner, crypt_init, mount_root, do_switch_root
INFO | Wrote file: /tmp/initramfs_build/init
INFO | -- | Packing build
INFO | [XZ] Compressing the CPIO data, original size: 17.58 MiB
INFO | Wrote 5.79 MiB to: /tmp/initramfs_out/ugrd-6.12.41-gentoo.cpio.xz
INFO | -- | Running checks
I do not understand some things:
Code: Select all
ERROR | kernel_version is set, but no_kmod is enabled.
Why is it an error?
Code: Select all
INFO | [/dev/mapper/root] Auto-enabling kernel modules for device: dm_mod
INFO | [/dev/mapper/root] Autodetected mount type from device: xfs
Why a module?! Is it mandatory to have a module for dm_crypt?
Code: Select all
WARNING | no_kmod is enabled, but kernel modules are set, ensure the following kernel modules are built into the kernel:
WARNING | Init kernel modules: xfs, dm_crypt
WARNING | Included kernel modules: sha256_generic
No! I do not have any module:
Code: Select all
usr/src/linux # grep -c '=m' .config
0
Why ugrd wants some modules?
Without “--no-kmod”, ugrd crash:
Code: Select all
ugrd --kver 6.12.41-gentoo
[…]
WARNING | [get_kernel_version] Kernel version is already set, skipping.
INFO | Autodetected kernel modules: dm_mod, sd_mod, 8250_mid, mei_me, virtio_pci, intel_lpss_pci, i2c_designware_pci, 8250_pci, shpchp, intel_uncore, ehci_pci, 8250_pci1xxxx, 8250_pericom, ahci, platform_pci, intel_agp, dw_dmac_pci, ohci_pci, ata_piix, pci_stub, iosf_mbi, radeon, snd_hda_intel, r8169, amdgpu, pcieportdrv, sis_agp, uhci_hcd, ccp, lpc_ich, xhci_pci, xhci_pci_renesas, intel_scu_pcidrv, via_agp
[…]
ERROR | [xfs] Failed to get modinfo for init kernel module: [xfs] Modinfo returned no output.
ERROR | [dm_crypt] Failed to get modinfo for init kernel module: [dm_crypt] Modinfo returned no output.
[…]
CRITICAL | Required module cannot be imported and is not builtin: xfs
I do not understand why it crashes. Lots of strange things with modules.
Context:
This is a new Gentoo install. I used gentoo-kernel. then swith to gentoo-sources with the .config of gentoo-kernel. I have a full rootfs encrypted.
Tonight, I tried to boot and it crashed due to previously populate /lib/modules/6.12.41-gentoo/. initramfs wanted to load kernel but did not find it (probably because there is no modules on my kernel).
I have removed the old lib/modules/6.12.41-gentoo/ folder and get the above strange behaviour. I will try tomorrow to boot again.