Bug 921914 - Lorax should disable dracut's 'hostonly' mode when generating images
Summary: Lorax should disable dracut's 'hostonly' mode when generating images
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lorax
Version: 19
Hardware: All
OS: All
unspecified
urgent
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 921422
Blocks: F19Alpha, F19AlphaBlocker
TreeView+ depends on / blocked
 
Reported: 2013-03-15 09:07 UTC by Harald Hoyer
Modified: 2013-03-20 17:40 UTC (History)
14 users (show)

Fixed In Version:
Clone Of: 921422
Environment:
Last Closed: 2013-03-20 17:40:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Harald Hoyer 2013-03-15 09:07:39 UTC
+++ This bug was initially created as a clone of Bug #921422 +++

I'm trying to build a live image from F19/Rawhide (basically the same thing ATM) for today's KDE Test Day, but it keeps failing, and I think the problem is Rawhide.

The compose usually succeeds, but right after package install, I see these errors:

E: dracut module 'dmsquash-live' cannot be found or installed.
E: dracut module 'dmsquash-live' cannot be found or installed.

then trying to boot the built image, it explodes messily very early in the boot process. There's a ton of errors, including a whole bunch of:

systemd-udevd[XXX]: worker [XXX] did not accept message -1 (Connection refused), kill it

and:

Failed to mount moving /sysroot to /: Invalid argument
Failed to switch root, ignoring: Invalid argument

Notably, the 2013-03-10 nightly live desktop compose does not show these issues. It boots (hits a GDM problem, but boots much further at least), and the compose log - http://kojipkgs.fedoraproject.org//work/tasks/4225/5104225/mock_output.log - does not show the same error messages. That image was built with dracut-026-1.fc19.x86_64 , so either a bug showed up between 026-1 and 026-15.gitblahblah, or there's some difference between my build host and Koji that's causing this.

Nominating as an Alpha blocker, but we shouldn't accept it as such until we confirm builders other than me (particularly the 'official' builders) hit it.

--- Additional comment from Harald Hoyer on 2013-03-14 07:02:38 EDT ---

Seems like the composer should set "--no-hostonly" or in their config hostonly="no"

--- Additional comment from Adam Williamson on 2013-03-14 07:28:27 EDT ---

ah, I guessed that might be it. dunno why I didn't just try it, actually. sigh.

--- Additional comment from Brian C. Lane on 2013-03-14 12:32:16 EDT ---

livecd-creator doesn't recreate the initrd. We didn't used to have to do this, what changed?

--- Additional comment from Adam Williamson on 2013-03-14 14:40:38 EDT ---

We've discussed on IRC, but the change was that upstream changed default to 'hostonly' on Fedora. 'hostonly' only includes drivers for the host system in the initramfs, which is obviously not what we want for a generic initramfs like that in the live images (or on the install images, for that matter, so we should check pungi/lorax.)

should we set this back to livecd-tools? I think we agree the fix is in python-imgcreate, don't we?

--- Additional comment from Brian C. Lane on 2013-03-14 14:56:15 EDT ---

ok, figured it out. dracut switched the default to hostonly so we now need to add this to the config file:

-        f.write('add_dracutmodules+=" dmsquash-live pollcdrom "')
+        f.write('add_dracutmodules+=" dmsquash-live pollcdrom "\n')
+        f.write('hostonly="no"\n')
+        f.write('dracut_rescue_image="no"\n')

--- Additional comment from Harald Hoyer on 2013-03-15 01:56:03 EDT ---

Created attachment 710440 [details]
Proposed patch

I would even patch lorax, so that no config file can overwrite the behaviour.

--- Additional comment from Adam Williamson on 2013-03-15 03:22:46 EDT ---

We don't use lorax for live images. The livecd-creator and lorax cases are two separate bugs, please don't reassign this one. I believe Will already wrote a patch for lorax.

--- Additional comment from Harald Hoyer on 2013-03-15 04:35:40 EDT ---

(In reply to comment #7)
> We don't use lorax for live images. The livecd-creator and lorax cases are
> two separate bugs, please don't reassign this one. I believe Will already
> wrote a patch for lorax.

ok, sorry...

Comment 1 Adam Williamson 2013-03-15 17:43:07 UTC
FWIW, I never use the 'clone' feature, because it's just hideous - you get a single giant 'description' with a bunch of irrelevant crap in it, people CCed who don't necessarily want to be CCed, it's just a misfeature for distro purposes. Anyhoo.

Fixing the summary: the bug here is that 'hostonly' mode (where only drivers needed by the host system are installed) has become the default for dracut. We do not want to use this when building generic images, like the release media. Lorax should disable it. https://bugzilla.redhat.com/attachment.cgi?id=710440&action=diff is harald's patch, but I think wwoods wrote one already.

Comment 2 Adam Williamson 2013-03-20 17:40:25 UTC
This is fixed in recent lorax/systemd/dracut changes, per bcl.


Note You need to log in before you can comment on or make changes to this bug.