From ea31f4f23ba1c7f6a0f2aff7bd375a7d1c9fc319 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Mon, 29 Aug 2011 13:23:20 -0400 Subject: [PATCH] add --noprefix to dracut invocation --noprefix is the default, but fedora ships an /etc/dracut.conf that changes the prefix. Set --noprefix to override this. Discussed here: https://www.redhat.com/archives/anaconda-devel-list/2011-August/msg00234.html --- src/pylorax/treebuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index 11491d0a..b66e1043 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -159,7 +159,7 @@ class TreeBuilder(object): '''Rebuild all the initrds in the tree. If backup is specified, each initrd will be renamed with backup as a suffix before rebuilding. If backup is empty, the existing initrd files will be overwritten.''' - dracut = ["/sbin/dracut", "--nomdadmconf", "--nolvmconf"] + add_args + dracut = ["/sbin/dracut", "--noprefix", "--nomdadmconf", "--nolvmconf"] + add_args if not backup: dracut.append("--force") # Hush some dracut warnings. TODO: bind-mount proc in place?