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

[PATCH] After copying live rootfs to root device, grow it to fill the device.



This fixes a bug introduced by commit bd1123738d8a6ea671f472c663ed8e1c882f93a7.

I was under the mistaken impression that resize2fs -p would minimize the
target filesystem, based on the fact that -P prints the minimum fs size.
As a result, I wrote the new resize code to minimize the new rootfs, which
makes no sense.
---
 pyanaconda/livecd.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/livecd.py b/pyanaconda/livecd.py
index 2c7c862..2ecd844 100644
--- a/pyanaconda/livecd.py
+++ b/pyanaconda/livecd.py
@@ -193,7 +193,7 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
         # resize rootfs first, since it is 100% full due to genMinInstDelta
         rootDevice = anaconda.storage.rootDevice
         rootDevice.setup()
-        rootDevice.format.targetSize = rootDevice.format.minSize
+        rootDevice.format.targetSize = rootDevice.size
         rootDevice.format.doResize(intf=anaconda.intf)
 
         # ensure we have a random UUID on the rootfs
-- 
1.7.2.3


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