summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-01-30 15:43:22 +0100
committerJoel Andres Granados <jgranado@redhat.com>2008-01-30 15:43:22 +0100
commit6b8ef69abd2f581f9f0a64af5998a6e2abe42b33 (patch)
treecba2efb4e9f1fd2964c246573fb0b22106e7b26b /fsset.py
parent3335f2e37cf3c969ae7e3d68283f144459973441 (diff)
downloadanaconda-6b8ef69abd2f581f9f0a64af5998a6e2abe42b33.tar.gz
anaconda-6b8ef69abd2f581f9f0a64af5998a6e2abe42b33.tar.xz
anaconda-6b8ef69abd2f581f9f0a64af5998a6e2abe42b33.zip
(#186439) handle lv names with "-" when doing kickstart.
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsset.py b/fsset.py
index e07894df2..1038074eb 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1964,7 +1964,7 @@ MAILADDR root
if not os.path.isdir(rootdir):
os.makedirs(rootdir)
- dmdev = "/dev/mapper/" + root.device.getDevice().replace("/", "-")
+ dmdev = "/dev/mapper/" + root.device.getDevice().replace("-","--").replace("/", "-")
if os.path.exists(instPath + dmdev):
os.unlink(instPath + dmdev)
if not os.path.isdir(os.path.dirname(instPath + dmdev)):