Bug 866454

Summary: [dracut] no usable initrd generated
Product: [openSUSE] openSUSE Tumbleweed Reporter: Felix Miata <mrmazda>
Component: BasesystemAssignee: Thomas Renninger <trenn>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: coolo, crrodriguez, romulasry
Version: 13.2 Milestone 0   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: tail of /var/log/zypp/history

Description Felix Miata 2014-03-03 01:32:07 UTC
Created attachment 580644 [details]
tail of /var/log/zypp/history

CPU Piii 1.13GHz; RAM 512M; host gx150

mailing list thread:
http://lists.opensuse.org/opensuse-factory/2014-03/msg00006.html

When kernel rpm installation is called from zypper dup, usage message from dracut is generated instead of an initrd. When I try to generate an initrd with dracut manually, a huge initrd is generated that "Failed to mount /sysroot" instead of starting the 13.2 system normally.

Log excerpt:
# 2014-03-02 18:06:28 kernel-default-3.13.3-1.1.i586.rpm installed ok
# Additional rpm output:
# depmod: ERROR: Module 'hci_vhci' has devname (vhci) but lacks major and minor information. Ignoring.
# Creating: target|kernel|dracut args 
# 
# Unknown arguments: 3.13.3-1-default
# 
# Usage: /usr/bin/dracut [OPTION]... [<initramfs> [<kernel-version>]]
# 
# Version: 036-3.1
# 
# Creates initial ramdisk images for preloading modules
# 
#   -h, --help  Display all options
# 
# If a [LIST] has multiple arguments, then you have to put these in quotes.
# 
# For example:
# 
#     # dracut --add-drivers "module1 module2"  ...
# 
# 
2014-03-02 18:06:28|install|kernel-default|3.13.3-1.1|i586||OSS|99f57cd61fa83402724639106db8b1cb7daaaf6960ab4049619b958d64cd7e81|
Comment 1 Thomas Renninger 2014-03-03 18:32:54 UTC
Submitrequst which should fix this issue:
224517
Comment 2 Felix Miata 2014-03-10 05:17:20 UTC
On host t2240 I just adjusted repos from 13.1 to factory, then did a zypper dup while lock kernel* was set, then removed the lock and repeated zypper dup. New initrds were generated for the prior kernels, but no initrd was generated for the new kernel. Menu.lst did not get updated either. Grepping for dracut in /var/log/zypp/history produced 9 Usage lines following the install dracut-036-4.1 line.
Comment 3 Felix Miata 2014-03-15 06:57:17 UTC
Dejavu comment 2 on 64 bit host gx62b. New initrds were generated multiple times for existing kernel, but none for freshly "installed" 3.14.rc5-1.1. Only 5 dracut usage lines in tail of /var/log/zypp/history. Currently installed dracut-036-5.1 with last changelog entry 07 March for bug 866771.
Comment 4 Thomas Renninger 2014-03-17 13:14:21 UTC
There is currently a dracut submitrequest pending which might fix this.
Unfortunately the submitrequest got declined, because another one is pending why the previous one was hanging at a staging project for a while.

Adding coolo, so that he can ensure that finally a dracut package submission ends up in factory. 
It is likely that there will be quite some more dracut package submissions and if this triggers declining newer submit requests which are pending in a staging project for several days, things could stay broken for quite a while in Factory.

Coolo: Can you ensure that a dracut submission finally ends up in Factory and ping here, so that people can give it another try. Thanks.
Comment 5 Stephan Kulow 2014-03-17 13:34:04 UTC
just don't submit unimportant changes and leave them in devel prj.
Comment 6 Ryan Bach 2014-03-20 02:35:41 UTC
mkinitrd is the issue, see: 
http://lists.opensuse.org/opensuse-factory/2014-03/msg00009.html
Comment 7 Felix Miata 2014-03-20 09:13:44 UTC
I just did a zypper dup on host kt400 that installed dracut-036-6.1. A new kernel installation via a subsequent zypper dup without lock kernel* generated a working initrd.
Comment 8 Thomas Renninger 2014-03-20 11:25:57 UTC
This is a fixed duplicate.

*** This bug has been marked as a duplicate of bug 868397 ***
Comment 9 Felix Miata 2014-03-20 11:40:42 UTC
This was filed first, which makes 868397 the duplicate.