From c143d5b72d1d2eddb2c42b03fd4c921447cc3df2 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 5 Jun 2012 09:12:50 -0700 Subject: [PATCH] Add pollcdrom module to dracut From Harald Hoyer : pollcdrom is used to poll for the install medium. A lot of CDROM drives are not polled by the kernel correctly, so we have to actively poll for the medium. --- src/pylorax/__init__.py | 2 +- src/sbin/livemedia-creator | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index 25cccb34..72a08f85 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -274,7 +274,7 @@ class Lorax(BaseLoraxClass): domacboot=domacboot, templatedir=templatedir) logger.info("rebuilding initramfs images") - dracut_args=["--xz", "--add", "anaconda", "--omit", "plymouth", + dracut_args=["--xz", "--add", "anaconda pollcdrom", "--omit", "plymouth", "--install", "/.buildstamp"] treebuilder.rebuild_initrds(add_args=dracut_args) diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator index 0aa7dfd6..453343a0 100755 --- a/src/sbin/livemedia-creator +++ b/src/sbin/livemedia-creator @@ -61,8 +61,8 @@ except ImportError: libvirt = None # Default parameters for rebuilding initramfs, override with --dracut-args -DRACUT_DEFAULT = ["--xz", "--add", "livenet", "--add", "dmsquash-live", - "--add", "convertfs", "--omit", "plymouth"] +DRACUT_DEFAULT = ["--xz", "--add", "livenet dmsquash-live convertfs pollcdrom", + "--omit", "plymouth"] class LogRequestHandler(SocketServer.BaseRequestHandler):