Bug 1285810

Summary: Dracut module 'dmsquash-live' depends on 'img-lib' in kernel scriplet
Product: Red Hat Enterprise Linux 7 Reporter: Lukas Zapletal <lzap>
Component: dracutAssignee: dracut-maint
Status: CLOSED NOTABUG QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: dracut-maint-list, harald, mbanas
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-04 07:32:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1289485, 1313485    

Description Lukas Zapletal 2015-11-26 14:09:48 UTC
Cannot build a live image using livecd-creatorr because of some dependency issues in kernel scriplet:

dracut module 'dmsquash-live' depends on 'img-lib', which can't be installed
dracut module 'dmsquash-live' cannot be found or installed.
mkinitrd failed
warning: %posttrans(kernel-3.10.0-327.el7.x86_64) scriptlet failed, exit status 1

This is regression, it was working in 7.1.

Comment 2 Harald Hoyer 2015-11-26 15:18:18 UTC
img lib needs "tar gzip dd bash"

Comment 3 Lukas Zapletal 2015-11-27 13:22:26 UTC
So do you think as a workaround I can add those in the package kickstart profile? Are you going to fix the dependencies of the package, so I can make temporary comment with link to this BZ report? Thanks!

Comment 4 Harald Hoyer 2015-11-30 10:05:37 UTC
Upstream we already have a dracut-live subpackage, which requires "tar" and "gzip".

So, yes, I can change the requirements for dracut in 7.3.

Comment 5 Lukas Zapletal 2015-11-30 14:08:43 UTC
For the record, the temporary fix implemented in

https://github.com/theforeman/foreman-discovery-image/pull/54

Comment 6 Lukas Zapletal 2015-11-30 15:01:21 UTC
Ok I have added the following new packages in the kickstart:

%packages
tar
gzip
coreutils
bash

And I am still getting:

dracut module 'dmsquash-live' depends on 'img-lib', which can't be installed
dracut module 'dmsquash-live' cannot be found or installed.
mkinitrd failed
warning: %posttrans(kernel-3.10.0-327.el7.x86_64) scriptlet failed, exit status 1

Comment 8 Lukas Zapletal 2015-11-30 15:22:26 UTC
Oooh we had "-tar" in our kickstart! Trying without this line.

Comment 9 Lukas Zapletal 2015-11-30 16:03:53 UTC
Yep, that was it, sorry for the noise. Looks similar to https://bugzilla.redhat.com/show_bug.cgi?id=1182362

Comment 10 Mike McCune 2016-03-28 22:31:02 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 11 Lukas Zapletal 2016-04-04 07:32:35 UTC
I think this one can be closed.