[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[LORAX] Add dracut convertfs module (#787893)



From: "Brian C. Lane" <bcl redhat com>

Fedora 17 changes top level directories like /bin, /lib, etc. to
symlinks to the corresponding dirs in /usr/

dracut can convert old systems to the new layout using its convertfs
module.
---
 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 6db32dd..8ae3077 100644
--- a/src/pylorax/__init__.py
+++ b/src/pylorax/__init__.py
@@ -234,7 +234,7 @@ class Lorax(BaseLoraxClass):
                                   runtime=runtime, templatedir=templatedir)
 
         logger.info("rebuilding initramfs images")
-        dracut_args=["--xz", "--add", "livenet", "--omit", "plymouth"]
+        dracut_args=["--xz", "--add", "livenet", "--add", "convertfs", "--omit", "plymouth"]
         treebuilder.rebuild_initrds(add_args=dracut_args)
 
         logger.info("populating output tree and building boot images")
diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator
index 4a4576e..23c9b3f 100755
--- a/src/sbin/livemedia-creator
+++ b/src/sbin/livemedia-creator
@@ -50,9 +50,9 @@ from pylorax.imgutils import PartitionMount, mksparse
 from pylorax.executils import execWithRedirect, execWithCapture
 
 
-# Default parameters for rebuilding initramfs, overrice with --dracut-args
+# Default parameters for rebuilding initramfs, override with --dracut-args
 DRACUT_DEFAULT = ["--xz", "--add", "livenet", "--add", "dmsquash-live",
-                  "--omit", "plymouth"]
+                  "--add", "convertfs", "--omit", "plymouth"]
 
 
 class LogRequestHandler(SocketServer.BaseRequestHandler):
-- 
1.7.6.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]