Bug 842934

Summary: mkinitrd fails for kernel-desktop-3.11.1-29.1.g2fa222d.x86_64
Product: [openSUSE] openSUSE Tumbleweed Reporter: patrick shanahan <paka>
Component: BasesystemAssignee: David Sterba <dsterba>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: ebreiss, gedwards, paka
Version: 13.1 Beta 1   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description patrick shanahan 2013-09-27 22:20:25 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0

tumbleweed:

installing kernel-desktop-3.11.1-29.1.g2fa222d.x86_64
gives the following error(s):

Kernel image:   /boot/vmlinuz-3.11.1-29.g2fa222d-desktop
Initrd image:   /boot/initrd-3.11.1-29.g2fa222d-desktop
cp: cannot stat '/usr/lib/udev/rules.d/80-btrfs.rules': No such file or directory
Script /lib/mkinitrd/setup/11-btrfs.sh failed!
There was an error generating the initrd (1)


Reproducible: Always

Steps to Reproduce:
1.  zypper -v in kernel-desktop-3.11.1-29.1.g2fa222d.x86_64
2.  gives error noted above
3.
Actual Results:  
mkinitrd does not complete and kernel does not appear in grub

Expected Results:  
proper kernel install
Comment 1 Ed Reiss 2013-09-27 23:45:19 UTC
The same situation occurs on Tumbleweed. The issue appears to be that /usr/lib/udev/rules.d/80-btrfs.rules is no longer included in the btrfsprogs because it is included in udev. 

See

http://lists.opensuse.org/opensuse-factory/2013-09/msg00623.html and

http://forums.opensuse.org/english/get-technical-help-here/alternative-distributions-based-opensuse/tumbleweed/490727-errors-when-upgrading-kernel-3.html#post2588010

I was unable to locate 80-btrfs.rules in the newer Factory package for udev.

USE AT YOUR OWN RISK

mkinitrd fails unless package btrfsprogs is removed. This also removes several other file system utilities, including gparted. Copying the old 80-btrfs.rules to the correct location also works and is less radical.
Comment 2 Ed Reiss 2013-09-28 00:49:39 UTC
It appears the issue is with /lib/mkinitrd/setup/11-btrfs.sh.

The contents of the file are:

#!/bin/bash
#
#%stage: filesystem

mkdir -p $tmp_mnt/etc/udev/rules.d
cp /usr/lib/udev/rules.d/80-btrfs.rules $tmp_mnt/etc/udev/rules.d

But udev contains the file 64-btrfs.rules. So the script should be changed accordingly.

64-btrfs.rules is present on my system.

Thanks to wolfi323 on the Tumbleweed forum!
Comment 3 David Sterba 2014-03-18 16:00:48 UTC
Fixed via 839960

*** This bug has been marked as a duplicate of bug 839960 ***