I came across these issues when testing iscsi/ibft. (Dave may have better ideas or have them already fixed better)
--- blivet/flags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/flags.py b/blivet/flags.py index e892b74..d7af82d 100644 --- a/blivet/flags.py +++ b/blivet/flags.py @@ -77,7 +77,7 @@ class Flags(object): if "nodmraid" in self.boot_cmdline: self.dmraid = False
- if "ibft" in self.boot_cmdline: + if self.boot_cmdline.get("ip") == "ibft": self.ibft = True
if "noiswmd" in self.boot_cmdline:
--- blivet/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/blivet/util.py b/blivet/util.py index 495dba1..d77b260 100644 --- a/blivet/util.py +++ b/blivet/util.py @@ -2,6 +2,7 @@ import os import selinux import subprocess import re +import shutil
import logging log = logging.getLogger("blivet") @@ -260,12 +261,12 @@ def makedirs(path): if not os.path.isdir(path): os.makedirs(path, 0755)
-def copy_to_system(source): +def copy_to_system(source, root_path=""): if not os.access(source, os.R_OK): log.info("copy_to_system: source '%s' does not exist." % source) return False
- target = ROOT_PATH + source + target = root_path + source target_dir = os.path.dirname(target) log.debug("copy_to_system: '%s' -> '%s'." % (source, target)) if not os.path.isdir(target_dir):
anaconda-patches@lists.fedorahosted.org