Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 432268 - sys-kernel/dracut-023 failed boot system with systemd module
Summary: sys-kernel/dracut-023 failed boot system with systemd module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-22 06:01 UTC by Egor Y. Egorov
Modified: 2012-11-01 10:12 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
boot_screen.JPG (boot_screen.JPG,265.14 KB, image/jpeg)
2012-08-22 06:03 UTC, Egor Y. Egorov
Details
break_boot_with_systemd-dracut.log (break_boot_with_systemd-dracut.log,65.35 KB, text/plain)
2012-09-01 09:10 UTC, Egor Y. Egorov
Details
system_tree (system_tree,12.48 KB, text/plain)
2012-09-03 01:50 UTC, Egor Y. Egorov
Details
initrd_tree (initrd_tree,4.09 KB, text/plain)
2012-09-03 01:50 UTC, Egor Y. Egorov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Y. Egorov 2012-08-22 06:01:19 UTC
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
Comment 1 Egor Y. Egorov 2012-08-22 06:03:25 UTC
Created attachment 321914 [details]
boot_screen.JPG

This is screen when booting
Comment 2 crabbed halo ablution 2012-08-22 07:31:59 UTC
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
Comment 3 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-08-31 11:29:59 UTC
(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.
Comment 4 Egor Y. Egorov 2012-08-31 14:51:40 UTC
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
Comment 5 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-08-31 15:00:26 UTC
(In reply to comment #4)
> This command not include systemd module:

Append "-a systemd", please.
Comment 6 Egor Y. Egorov 2012-08-31 15:59:23 UTC
hangs (
However, do not swear at the mount.
last message with systemd:
systemd-journald [401]: Flushing /dev/kmsg
Comment 7 Egor Y. Egorov 2012-09-01 06:18:03 UTC
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.
Comment 8 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-09-01 08:08:46 UTC
(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.
Comment 9 Egor Y. Egorov 2012-09-01 09:10:15 UTC
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.
Comment 10 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-09-01 11:10:45 UTC
(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.)
Comment 11 Egor Y. Egorov 2012-09-03 01:50:07 UTC
Created attachment 322796 [details]
system_tree
Comment 12 Egor Y. Egorov 2012-09-03 01:50:22 UTC
Created attachment 322798 [details]
initrd_tree
Comment 13 Sak1s 2012-09-19 21:44:59 UTC
i have a similar problem , i tryed dracut with dmsquash-live and systemd ,
and i could boot into .
Comment 14 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-09-25 18:56:42 UTC
(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?
Comment 15 Canek Peláez Valdés 2012-10-24 18:18:29 UTC
FWIW, in my case it seems to be working with dracut 24.
Comment 16 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-10-24 19:31:17 UTC
(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.
Comment 17 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-11-01 10:12:06 UTC
dracut-024 is in the tree for some time already. Soon I'll remove 023 version.