Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486720 - =sys-kernel/dracut-033-r1 - Partial mode. Incomplete logical volumes will be processed.
Summary: =sys-kernel/dracut-033-r1 - Partial mode. Incomplete logical volumes will be ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-01 21:24 UTC by cyberbat
Modified: 2023-09-08 09:24 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cyberbat 2013-10-01 21:24:59 UTC
24.072125] dracut: Scanning devices sda7 sdb3 sdc1 sdd3  for LVM logical volumes ssd/usr ssd/usr
[   24.102087] dracut: inactive '/dev/tempvg/temp' [1.82 TiB] inherit
[   24.104123] dracut: inactive '/dev/storage/enc-stor' [1.46 TiB] inherit
[   24.105531] dracut: inactive '/dev/ssd/portage' [512.00 MiB] inherit
[   24.105656] dracut: inactive '/dev/ssd/opt' [5.62 GiB] inherit
[   24.105770] dracut: ACTIVE '/dev/ssd/usr' [20.00 GiB] inherit
[   24.107381] dracut: Partial mode. Incomplete logical volumes will be processed.
33.735528] dracut Warning: Could not boot.
[   33.736033] dracut Warning: /dev/mapper/crypt-swap does not exist
+ '[' -f /run/initramfs/init.log ']'

=sys-kernel/dracut-031-r1 works fine.
I use these kernel options:
kernel /vmlinuz rd.lvm.lv=ssd/usr root=UUID=6efd858c-8237-40b8-9931-1aa1f27bba0b rootflags=rw,relatime,user_xattr,barrier=1,data=ordered rootfstype=ext4
Comment 1 cyberbat 2013-10-02 15:16:16 UTC
USE="device-mapper" DRACUT_MODULES="caps gensplash lvm"
Comment 2 Alexander Tsoy 2013-10-05 21:17:58 UTC
(In reply to cyberbat from comment #0)
> 33.735528] dracut Warning: Could not boot.
> [   33.736033] dracut Warning: /dev/mapper/crypt-swap does not exist
...
> kernel /vmlinuz rd.lvm.lv=ssd/usr
> root=UUID=6efd858c-8237-40b8-9931-1aa1f27bba0b
> rootflags=rw,relatime,user_xattr,barrier=1,data=ordered rootfstype=ext4

Why it waits for activation of /dev/mapper/crypt-swap? Do you have a "kernel_cmdline" option in dracut.conf or dracut.conf.d?
Comment 3 cyberbat 2013-10-05 22:25:53 UTC
(In reply to Alexander Tsoy from comment #2)
> (In reply to cyberbat from comment #0)
> > 33.735528] dracut Warning: Could not boot.
> > [   33.736033] dracut Warning: /dev/mapper/crypt-swap does not exist
> ...
> > kernel /vmlinuz rd.lvm.lv=ssd/usr
> > root=UUID=6efd858c-8237-40b8-9931-1aa1f27bba0b
> > rootflags=rw,relatime,user_xattr,barrier=1,data=ordered rootfstype=ext4
> 
> Why it waits for activation of /dev/mapper/crypt-swap? Do you have a
> "kernel_cmdline" option in dracut.conf or dracut.conf.d?

I don't have kernel_cmdline option in dracut.conf nor in dracut.conf.d. 

I have crypt-swap configuration in conf.d/dmcrypt:
swap=crypt-swap
source='/dev/raid0/swap'

and fstab:
/dev/mapper/crypt-swap    none                            swap            sw                              0 0

"swap" is logical volume of "raid0" volume group which is located on raid0 mdraid array.
Comment 4 Alexander Tsoy 2013-10-06 17:27:43 UTC
(In reply to cyberbat from comment #3)

Please generate initramfs with dracut-033-r1 and post the output of following commands:

# lsinitrd /path/to/initramfs | grep 'hooks/emergency'
# dracut --print-cmdline
Comment 5 Alexander Tsoy 2013-10-06 20:52:26 UTC
I think you can ignore my previous comment. Looks like possible workarounds/solutions would be:

1. Create a fake /etc/crypttab:
# echo 'crypt-swap /dev/raid0/swap /dev/urandom swap' > /etc/crypttab
Then dracut will not include this device into host_devs stack. (Also see bug 429966 - I hope the migration will ever happen. :) )

2. Wait for upstream fix of "- remove wait for swap devs, if no "resume=" is given on the kernel command line"
http://git.kernel.org/cgit/boot/dracut/dracut.git/tree/TODO

3. Activate encryted swap in initramfs.
Comment 6 Alexander Tsoy 2013-10-06 21:25:09 UTC
And message "Partial mode. Incomplete logical volumes will be processed." is not related to this issue. It's just a warning shown by lvm when --partial option is passed.
Comment 7 Alexander Tsoy 2014-03-15 22:03:24 UTC
Any news on this bug? Does adding swap to /etc/crypttab help?
Comment 8 Amadeusz Żołnowski (RETIRED) gentoo-dev 2015-03-24 15:24:40 UTC
@cyberbat: Any news on the bug?