After upgrade dracut to 023 with systemd support and generate initrd, the system hangs when booting Reproducible: Always Steps to Reproduce: 1. USE=dracut_modules_systemd emerge -1 =dracut-023 2. generate initrd (in my case dracut -f -L3 -M --xz -H -m 'dash i18n kernel-modules resume rootfs-block terminfo udev-rules usrmount base fs-lib plymouth systemd' '/boot/initrd_test' '3.4.9-zen+' ) 3. boot system Actual Results: system hangs when booting Expected Results: system boot fine # emerge -pv dracut These are the packages that would be merged, in order: Calculating dependencies ... done! [ebuild R ~] sys-kernel/dracut-023 USE="-debug -device-mapper -net -optimization (-selinux)" DRACUT_MODULES="btrfs gensplash plymouth systemd -biosdevname -bootchart -caps -cifs -crypt -crypt-gpg -crypt-loop -dmraid -dmsquash-live -iscsi -livenet -lvm -mdraid -multipath -nbd -nfs -ssh-client -syslog" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB In /boot/grub/menu.lst: title Gentoo Linux (systemd) savedefault 2 root (hd0,0) kernel /kernel root=LABEL=SSD-ROOT resume=LABEL=SSD-SWAP video=SVIDEO-1:d memmap=4K$0x000a1271000 rd.debug init=/bin/systemd initrd /initrd_test
Created attachment 321914 [details] boot_screen.JPG This is screen when booting
Only short time to write this, but it looks like you may have hit a bug with dracut doing "mount -o move" using util-linux' mount command. Busybox apparently accepts "mount -o move" while util-linux does not, it needs "mount --move". I may be wrong, because I am only using my powers of Google to deduce this, but it will take some time to actually test it, so you might have better time to get at a solution/answer, perhaps by forcing dracut to use busybox to do the mount moving. HTH
(In reply to comment #0) > 2. generate initrd (in my case > dracut -f -L3 -M --xz -H -m 'dash i18n kernel-modules resume rootfs-block > terminfo udev-rules usrmount base fs-lib plymouth systemd' > '/boot/initrd_test' '3.4.9-zen+' Please try just: dracut -H /boot/initrd_test 3.4.9-zen+ Using option -m is discouraged.
This command not include systemd module: # dracut -H /boot/initrd_test 3.5.3-zen+ I: *** Including module: dash *** I: *** Including module: i18n *** I: *** Including module: plymouth *** I: *** Including module: btrfs *** I: *** Including module: kernel-modules *** I: Skipping program /lib/modprobe.d/*.conf as it cannot be found and is flagged to be optional I: *** Including module: resume *** I: *** Including module: rootfs-block *** I: *** Including module: terminfo *** I: *** Including module: udev-rules *** I: Skipping program /usr/lib/udev/create_floppy_devices as it cannot be found and is flagged to be optional I: Skipping program /usr/lib/udev/edd_id as it cannot be found and is flagged to be optional I: Skipping program /usr/lib/udev/firmware.sh as it cannot be found and is flagged to be optional I: Skipping program /usr/lib/udev/firmware as it cannot be found and is flagged to be optional I: Skipping program /usr/lib/udev/firmware.agent as it cannot be found and is flagged to be optional I: Skipping program /usr/lib/udev/hotplug.functions as it cannot be found and is flagged to be optional I: Skipping program /usr/lib/udev/fw_unit_symlinks.sh as it cannot be found and is flagged to be optional I: Skipping program /usr/lib/udev/path_id as it cannot be found and is flagged to be optional I: Skipping program /usr/lib/udev/input_id as it cannot be found and is flagged to be optional I: Skipping program /usr/lib/udev/usb_id as it cannot be found and is flagged to be optional I: Skipping program /usr/lib/udev/pcmcia-socket-startup as it cannot be found and is flagged to be optional I: Skipping program /usr/lib/udev/pcmcia-check-broken-cis as it cannot be found and is flagged to be optional I: *** Including module: usrmount *** I: *** Including module: base *** I: *** Including module: fs-lib *** I: *** Including module: shutdown *** I: *** Including modules done *** I: *** Installing kernel module dependencies and firmware *** I: *** Installing kernel module dependencies and firmware done *** I: *** Creating image file *** I: *** Creating image file done *** I: Wrote /boot/initrd_test: I: -rw-r--r-- 1 root root 4394225 авг. 31 21:48 /boot/initrd_test
(In reply to comment #4) > This command not include systemd module: Append "-a systemd", please.
hangs ( However, do not swear at the mount. last message with systemd: systemd-journald [401]: Flushing /dev/kmsg
Hmmm. Root partition is mounted, but booting process stoped. My be in journal there something... I will cover in the near future, and on Monday will check on the another PC.
(In reply to comment #7) > Hmmm. Root partition is mounted, but booting process stoped. My be in > journal there something... > I will cover in the near future, and on Monday will check on the another PC. If rootfs is mounted and switch is done, job of dracut ends.
Created attachment 322713 [details] break_boot_with_systemd-dracut.log Swich-root is not done. But I make initrd on my netbook, and run system with rd.debug rd.break This log, obtained by journalctl.
(In reply to comment #9) > Created attachment 322713 [details] > break_boot_with_systemd-dracut.log > > Swich-root is not done. > But I make initrd on my netbook, and run system with > rd.debug rd.break > This log, obtained by journalctl. Could you show me the tree of /usr/lib/systemd/ of your system and the tree of /usr/lib/systemd/ of initramfs? (The second could be obtained with lsinitrd.)
Created attachment 322796 [details] system_tree
Created attachment 322798 [details] initrd_tree
i have a similar problem , i tryed dracut with dmsquash-live and systemd , and i could boot into .
(In reply to comment #9) > Created attachment 322713 [details] > break_boot_with_systemd-dracut.log > > Swich-root is not done. > But I make initrd on my netbook, and run system with > rd.debug rd.break > This log, obtained by journalctl. Without rd.break do you still get mount-move errors? What version of util-linux do you have?
FWIW, in my case it seems to be working with dracut 24.
(In reply to comment #15) > FWIW, in my case it seems to be working with dracut 24. Good. Thanks. :-) I'll bump it tomorrow or at weekends.
dracut-024 is in the tree for some time already. Soon I'll remove 023 version.