summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-10-17 22:03:55 +0000
committerJeremy Katz <katzj@redhat.com>2003-10-17 22:03:55 +0000
commitf18b341b39a6cf684c0f886fc48f27269b86e485 (patch)
tree17a27a552232183c01c00ab6fb5e49ea9bd04fda /packages.py
parent05cd9363a4ff45e8377dc2390a4f960c7000aa38 (diff)
downloadanaconda-f18b341b39a6cf684c0f886fc48f27269b86e485.tar.gz
anaconda-f18b341b39a6cf684c0f886fc48f27269b86e485.tar.xz
anaconda-f18b341b39a6cf684c0f886fc48f27269b86e485.zip
keep track of if we've created logical volumes so that we can handle
early swap on lvm (#103190)
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/packages.py b/packages.py
index 5aa2da7cb..68a0bbe5d 100644
--- a/packages.py
+++ b/packages.py
@@ -523,12 +523,22 @@ def turnOnFilesystems(dir, thefsset, diskset, partitions, upgrade, instPath):
if not upgrade.get():
partitions.doMetaDeletes(diskset)
thefsset.setActive(diskset)
+ log("going to save")
if not thefsset.isActive():
diskset.savePartitions ()
+ log("bad blocks")
thefsset.checkBadblocks(instPath)
- thefsset.createLogicalVolumes(instPath)
+ log("create lvm")
+ if not thefsset.volumesCreated:
+ log("creating")
+ thefsset.createLogicalVolumes(instPath)
+ else:
+ log("already made")
+ log("swap")
thefsset.formatSwap(instPath)
+ log("turn on")
thefsset.turnOnSwap(instPath)
+ log("mkfs")
thefsset.makeFilesystems (instPath)
log("mounting filesystems")
thefsset.mountFilesystems (instPath)