Summary: | sys-kernel/dracut fails when non-existent modules are configured in the config file(s) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Mokrejš <mmokrejs> |
Component: | Current packages | Assignee: | Patrick McLean <chutzpah> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | alexander, floppym |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | debug.log |
Description
Martin Mokrejš
2021-08-28 15:41:21 UTC
I doubt the memstrack message is significant; just below it is a message from the ostree module, so it isn't getting stuck there. Please run "dracut --debug --kver 5.4.143 > debug.log 2>&1" and attach debug.log. Created attachment 736543 [details]
debug.log
1. I zapped the UUID values.
2. Some variable is empty and then some ln(1) exec breaks:
//usr/lib/dracut/dracut-init.sh@1076(): [[ Usage: ln [OPTION]... [-T] TARGET LINK_NAME
3. Some escaping function is broken, see many instances of:
/usr/lib/dracut/dracut-functions.sh@25(is_func): [[ function == \f\u\n\c\t\i\o\n ]]
It looks like /etc/dracut.conf.d/ostree.conf contains a reference to an "ostree" module. sys-kernel/dracut does not supply that module. Did you remove dev-util/ostree, and forget to update your dracut config? $ ls -latr /etc/dracut.conf.d/ostree.conf -rw-r--r-- 1 root root 838 Jul 2 20:43 /etc/dracut.conf.d/ostree.conf $ cat /etc/dracut.conf.d/ostree.conf # Copyright (C) 2013 Colin Walters <walters@verbum.org> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. add_dracutmodules+=" ostree systemd " reproducible=yes $ Somewhat hand-decorated original grep output: $ grep ostree /var/log/emerge.log 1625248035: Started emerge on: čec 02, 2021 19:47:14 1625248035: *** emerge --newuse --oneshot --update --backtrack=30000 --keep-going --regex-search-auto=y =sys-cluster/singularity-3.8.0::gentoo 1625248045: Started emerge on: čec 02, 2021 19:47:24 ... 1625248078: >>> emerge (3 of 7) dev-util/ostree-2020.8 to / 1625248078: === (3 of 7) Cleaning (dev-util/ostree-2020.8::/mnt/external/scratch/usr/portage/dev-util/ostree/ostree-2020.8.ebuild) 1625248078: === (3 of 7) Compiling/Merging (dev-util/ostree-2020.8::/mnt/external/scratch/usr/portage/dev-util/ostree/ostree-2020.8.ebuild) 1625248141: === (3 of 7) Merging (dev-util/ostree-2020.8::/mnt/external/scratch/usr/portage/dev-util/ostree/ostree-2020.8.ebuild) 1625248144: >>> AUTOCLEAN: dev-util/ostree:0 1625248146: === (3 of 7) Post-Build Cleaning (dev-util/ostree-2020.8::/mnt/external/scratch/usr/portage/dev-util/ostree/ostree-2020.8.ebuild) 1625248146: ::: completed emerge (3 of 7) dev-util/ostree-2020.8 to / ... 1625248237: ::: completed emerge (1 of 1) sys-cluster/singularity-3.8.0 to / 1625248237: *** Finished. Cleaning up... 1625248240: *** exiting successfully. 1625248242: *** terminating. 1625251179: Started emerge on: čec 02, 2021 20:39:38 1625251179: *** emerge --newuse --oneshot --update --backtrack=30000 --keep-going --regex-search-auto=y =sys-boot/grub-2.06:2/2.06::gentoo 1625251207: >>> emerge (1 of 2) sys-boot/grub-2.06 to / 1625251208: === (1 of 2) Cleaning (sys-boot/grub-2.06::/mnt/external/scratch/usr/portage/sys-boot/grub/grub-2.06.ebuild) 1625251208: === (1 of 2) Compiling/Merging (sys-boot/grub-2.06::/mnt/external/scratch/usr/portage/sys-boot/grub/grub-2.06.ebuild) 1625251346: === (1 of 2) Merging (sys-boot/grub-2.06::/mnt/external/scratch/usr/portage/sys-boot/grub/grub-2.06.ebuild) 1625251349: >>> AUTOCLEAN: sys-boot/grub:2 1625251349: === Unmerging... (sys-boot/grub-2.06_rc1) 1625251352: >>> unmerge success: sys-boot/grub-2.06_rc1 1625251354: === (1 of 2) Post-Build Cleaning (sys-boot/grub-2.06::/mnt/external/scratch/usr/portage/sys-boot/grub/grub-2.06.ebuild) 1625251354: ::: completed emerge (1 of 2) sys-boot/grub-2.06 to / 1625251354: >>> emerge (2 of 2) dev-util/ostree-2020.8 to / 1625251354: === (2 of 2) Cleaning (dev-util/ostree-2020.8::/mnt/external/scratch/usr/portage/dev-util/ostree/ostree-2020.8.ebuild) 1625251354: === (2 of 2) Compiling/Merging (dev-util/ostree-2020.8::/mnt/external/scratch/usr/portage/dev-util/ostree/ostree-2020.8.ebuild) 1625251385: === (2 of 2) Merging (dev-util/ostree-2020.8::/mnt/external/scratch/usr/portage/dev-util/ostree/ostree-2020.8.ebuild) 1625251388: >>> AUTOCLEAN: dev-util/ostree:0 1625251388: === Unmerging... (dev-util/ostree-2020.8) 1625251390: >>> unmerge success: dev-util/ostree-2020.8 1625251392: === (2 of 2) Post-Build Cleaning (dev-util/ostree-2020.8::/mnt/external/scratch/usr/portage/dev-util/ostree/ostree-2020.8.ebuild) 1625251392: ::: completed emerge (2 of 2) dev-util/ostree-2020.8 to / 1625251392: *** Finished. Cleaning up... 1625251396: *** exiting successfully. 1625251401: *** terminating. $ So, it is not installed at the moment, true. I don't know why. Please remove /etc/dracut.conf.d/ostree.conf if you are not using it. Thank you for your help. But could the messages be improved to make clear why dracut exited? Same here: /usr/lib/dracut/dracut-init.sh@986(for_each_module_dir): for _mod in $_modcheck /usr/lib/dracut/dracut-init.sh@987(for_each_module_dir): [[ i18n dm fs-lib rootfs-block crypt kernel-modules kernel-modules-extra lvm mdraid crypt-gpg crypt-loop kernel-network-modules terminfo udev-rules biosdevname usrmount base shutdown == *\ ssh-client\ * ]] /usr/lib/dracut/dracut-init.sh@989(for_each_module_dir): [[ != *\ ssh-client\ * ]] /usr/lib/dracut/dracut-init.sh@990(for_each_module_dir): [[ all != *\ ssh-client\ * ]] /usr/lib/dracut/dracut-init.sh@991(for_each_module_dir): [[ systemd == *\ ssh-client\ * ]] /usr/lib/dracut/dracut-init.sh@994(for_each_module_dir): derror 'dracut module '\''ssh-client'\'' cannot be found or installed.' /usr/lib/dracut/dracut-logger.sh@438(derror): set +x dracut: dracut module 'ssh-client' cannot be found or installed. /usr/lib/dracut/dracut-init.sh@995(for_each_module_dir): [[ == *\ ssh-client\ * ]] /usr/lib/dracut/dracut-init.sh@996(for_each_module_dir): [[ all == *\ ssh-client\ * ]] /usr/lib/dracut/dracut-init.sh@997(for_each_module_dir): [[ crypt-gpg crypt-loop crypt crypt crypt-gpg lvm dm ssh-client rootfs-block fs-lib network kernel-network-modules network-manager dbus dbus-daemon systemd == *\ ssh-client\ * ]] /usr/lib/dracut/dracut-init.sh@997(for_each_module_dir): exit 1 /usr/lib/dracut/dracut-init.sh@2(for_each_module_dir): ret=1 /usr/lib/dracut/dracut-init.sh@3(for_each_module_dir): [[ -n '' ]] /usr/lib/dracut/dracut-init.sh@3(for_each_module_dir): [[ -n /var/tmp/dracut.n9JvC1 ]] /usr/lib/dracut/dracut-init.sh@3(for_each_module_dir): rm -rf -- /var/tmp/dracut.n9JvC1 /usr/lib/dracut/dracut-init.sh@4(for_each_module_dir): [[ -n '' ]] /usr/lib/dracut/dracut-init.sh@7(for_each_module_dir): exit 1 # dracut --list-modules | grep ssh dracut: Executing: /usr/bin/dracut --list-modules ssh-client # I used to have a working shell script calling dracut and copying the initrd file along bzImage to various boot media, mouting and unmounting them, etc. It simply has stopped working. So I dropped "ssh-client" from the dracut commandline too. (In reply to Martin Mokrejš from comment #6) > Thank you for your help. But could the messages be improved to make clear > why dracut exited? You could suggest such an enhancement upstream. |