View previous topic :: View next topic |
Author |
Message |
y351 Apprentice
Joined: 21 May 2017 Posts: 197
|
Posted: Mon Jun 21, 2021 1:17 pm Post subject: [Dracut] Initrd and modules (btrfs, dm_crypt)[resolved] |
|
|
Hi,
I use initrd to boot (crypt , lvm, btrfs) and dracut to generate it.
Code: | hostonly="yes"
dracutmodules+=" kernel-modules rootfs-block udev-rules base fs-lib shutdown btrfs lvm crypt resume i18n terminfo "
i18n_install_all="yes"
i18n_vars="/etc/conf.d/keymaps:KEYMAP,EXTENDED_KEYMAPS-EXT_KEYMAPS /etc/conf.d/consolefont:CONSOLEFONT-FONT,CONSOLETRANSLATION-FONT_MAP /etc/rc.conf:UNICODE"
install_items+=" /lib64/elogind/elogind-uaccess-command " |
In the kernel :
Code: | CONFIG_BTRFS_FS=y
CONFIG_DM_CRYPT=y |
But from the boot, i get two messages :
1. when uncrypt the disk to boot, i got this message :
Quote: | modprobe: FATAL: Module dm_crypt not found in directory /lib/modules/5.12.11-gentoo |
NB : the system is not booted yet
2. After booting,
dmesg | egrep -i 'modprob|crypt'
Quote: | dracut: modprobe: FATAL: Module btrfs not found in directory /lib/modules/5.12.11-gentoo |
But none is fatal to uncrypt the disk and to mount the partition with btrfs.
But this both messages are boring.
How to get them off ?
Code: | Portage 3.0.20 (python 3.9.5-final-0, default/linux/amd64/17.1/hardened/selinux, gcc-10.3.0, glibc-2.33, 5.12.11-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-5.12.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-5557U_CPU_@_3.10GHz-with-glibc2.33
KiB Mem: 16264188 total, 1539740 free
KiB Swap: 8388604 total, 8376872 free
Timestamp of repository gentoo: Mon, 21 Jun 2021 00:45:01 +0000
Head commit of repository gentoo: 5484b21ca35d648b6c92b4f6cbf5f460268ae3c3
sh bash 5.1_p8
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
ccache version 4.3 [enabled]
app-shells/bash: 5.1_p8::gentoo
dev-java/java-config: 2.3.1::gentoo
dev-lang/perl: 5.32.1::gentoo
dev-lang/python: 2.7.18_p10::gentoo, 3.6.13_p5::gentoo, 3.8.10_p2::gentoo, 3.9.5_p2::gentoo
dev-lang/rust: 1.52.1::gentoo
dev-util/ccache: 4.3::gentoo
dev-util/cmake: 3.18.5::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.7::gentoo
sys-apps/openrc: 0.42.1-r1::gentoo
sys-apps/sandbox: 2.24::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake: 1.16.3-r1::gentoo
sys-devel/binutils: 2.35.2::gentoo
sys-devel/gcc: 10.3.0::gentoo
sys-devel/gcc-config: 2.4::gentoo
sys-devel/libtool: 2.4.6-r6::gentoo
sys-devel/make: 4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc: 2.33::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-jobs: 1
sync-rsync-extra-opts:
sync-rsync-verify-max-age: 24
local
location: /usr/local/portage
masters: gentoo
priority: 10
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=haswell -O2 -fforce-addr -pipe"
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="-march=haswell -O2 -fforce-addr -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4.0 --keep-going=y --with-bdeps=y --complete-graph"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-f
etch parallel-install preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://URL"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
USE="X acl amd64 branding bzip2 chroot crypt cryptsetup elogind ffmpeg gnutls hardened iconv icu ipv6 jpeg libglvnd libtirpc logrotate lzma mmx modplug multilib ncurses nls nptl opengl openmp pam pax_kernel pcre perl pic pie png python rea
dline seccomp secure_delete selinux snmp split-usr sse sse2 ssl ssp symlink tcpd unicode wavpack webrsync-gpg xattr xml xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu
10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon auth
n_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_
config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="load memory syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3
mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rt
cm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS=
"presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGET
S="python3_9" QEMU_SOFTMMU_TARGETS="arm x86_64 sparc" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i915 fbdev vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip f
uzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
=================================================================
Package Settings
=================================================================
sys-kernel/dracut-053-r1::gentoo was built with the following:
USE="(selinux)" ABI_X86="(64)"
|
Last edited by y351 on Mon Aug 16, 2021 4:11 pm; edited 1 time in total |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3916
|
Posted: Mon Jun 21, 2021 5:01 pm Post subject: |
|
|
Hi
for one set selinux=permissive in
/etc/selinux/config.
Also
Code: |
grep -i btrfs /usr/src/linux/.config
|
Does it appear as a module or in-built(=y)?
Do you have something like
Code: |
CONFIG_BTRFS_FS=m
CONFIG_BTRFS_FS_POSIX_ACL=y
|
_________________
|
|
Back to top |
|
|
y351 Apprentice
Joined: 21 May 2017 Posts: 197
|
Posted: Tue Jun 22, 2021 11:56 am Post subject: |
|
|
It is not planned to disable SELinux.
And the modules are build-in. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3916
|
Posted: Tue Jun 22, 2021 5:07 pm Post subject: |
|
|
You say
Quote: |
And the modules are build-in.
|
Code: |
dracut: modprobe: FATAL: Module btrfs not found in directory /lib/modules/5.12.11-gentoo
|
That is why dracut complains.It finds no module because there is none.
Plz modify your dracut.conf
Code: |
dracutmodules+=" kernel-modules rootfs-block udev-rules base fs-lib shutdown lvm resume i18n terminfo "
|
_________________
|
|
Back to top |
|
|
y351 Apprentice
Joined: 21 May 2017 Posts: 197
|
Posted: Wed Jun 23, 2021 8:15 pm Post subject: |
|
|
When uncrypt the disk booting with initramfs, the kernel is not needed. |
|
Back to top |
|
|
y351 Apprentice
Joined: 21 May 2017 Posts: 197
|
Posted: Mon Aug 16, 2021 4:10 pm Post subject: |
|
|
Code: | modprobe: FATAL: Module dm_crypt not found in directory /lib/modules/5.12.11-gentoo
|
The message disappeared with the kernel 5.13.11-gentoo. |
|
Back to top |
|
|
inkflaw n00b
Joined: 07 Jun 2023 Posts: 2
|
Posted: Sat Aug 10, 2024 2:51 am Post subject: |
|
|
y351 wrote: | Code: | modprobe: FATAL: Module dm_crypt not found in directory /lib/modules/5.12.11-gentoo
|
The message disappeared with the kernel 5.13.11-gentoo. |
Due to enabled hostonly, you need to run `modprobe dm-crypt` befor dracut |
|
Back to top |
|
|
|
|
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
|
|