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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux