Re: [PATCH] Force swap formatting if (kickstart or cmdline) and autopart (#526549).

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 21 Oct 2009, David Lehman wrote:

On Wed, 2009-10-21 at 10:57 -1000, David Cantrell wrote:
If the user is doing a kickstart or cmdline install and autopart is
selected for installation, force recreating the swap device for
OldSwapError, SuspendError, or UnknownSwapError.

I think this patch is pasting over a problem. The real problem is that
mkswap is refusing to create the swap space on this newly created lv. We
need to figure out why this is happening IMO.

Even better, I did an install using today's tree but without including this
patch and the rats_install thing worked fine.  Marked as CLOSED WORKSFORME.


Dave

---
 storage/__init__.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 0a9dad0..6a86f7b 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1638,6 +1638,11 @@ class FSSet(object):

     def turnOnSwap(self, anaconda, upgrading=None):
         def swapErrorDialog(msg, device):
+            if (anaconda.isKickstart or flags.cmdline.has_key("cmdline")) and \
+               anaconda.id.storage.doAutoPart:
+                device.format.create(force=True)
+                return True
+
             if not anaconda.intf:
                 sys.exit(0)


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


- -- David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkrfuS8ACgkQ5hsjjIy1Vkla+ACfSnlbttnBbIAJ017yvRqtXmPf
AJIAoJgHkzn5IZA3bfYqEPREMJylqH6l
=rxmP
-----END PGP SIGNATURE-----

_______________________________________________
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