FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-28-2007, 10:05 PM
Jeremy Katz
 
Default Apply partitioning changes immediately after the partitioning step.

With resizing, we're going to want sooner feedback so move the applying
of partitioning changes to immediately after the partitioning step. This
lets us also remove the early swap-on logic.

Still need to put up some scarier warnings about what's going to happen for
people
---
dispatch.py | 4 ++--
partitions.py | 24 ------------------------
2 files changed, 2 insertions(+), 26 deletions(-)

diff --git a/dispatch.py b/dispatch.py
index ea0d2fb..4c991e4 100644
--- a/dispatch.py
+++ b/dispatch.py
@@ -78,8 +78,10 @@ installSteps = [
("upgradeswapsuggestion", upgradeSwapSuggestion, ),
("addswap", ),
("partitiondone", partitioningComplete, ),
+ ("enablefilesystems", turnOnFilesystems, ),
("upgrademigfind", upgradeMigrateFind, ),
("upgrademigratefs", ),
+ ("migratefilesystems", doMigrateFilesystems, ),
("upgbootloader", ),
("bootloadersetup", bootloaderSetupChoices, ),
("bootloader", ),
@@ -96,8 +98,6 @@ installSteps = [
("confirminstall", ),
("confirmupgrade", ),
("install", ),
- ("enablefilesystems", turnOnFilesystems, ),
- ("migratefilesystems", doMigrateFilesystems, ),
("setuptime", setupTimezone, ),
("preinstallconfig", doPreInstall, ),
("installpackages", doInstall, ),
diff --git a/partitions.py b/partitions.py
index 955b276..0dcb50c 100644
--- a/partitions.py
+++ b/partitions.py
@@ -101,30 +101,6 @@ def partitioningComplete(anaconda):
raise RuntimeError, ("Managed to not get an entry back from "
"request.toEntry")

- if (not flags.setupFilesystems
- or iutil.memAvailable() > isys.EARLY_SWAP_RAM):
- return
-
- if not anaconda.isKickstart:
- rc = anaconda.intf.messageWindow(_("Low Memory"),
- _("As you don't have much memory in this "
- "machine, we need to turn on swap space "
- "immediately. To do this we'll have to "
- "write your new partition table to the disk "
- "immediately. Is that OK?"), "yesno")
- else:
- rc = 1
-
- if rc:
- anaconda.id.partitions.doMetaDeletes(anaconda.id.d iskset)
- anaconda.id.fsset.setActive(anaconda.id.diskset)
- anaconda.id.diskset.savePartitions ()
- anaconda.id.fsset.createLogicalVolumes(anaconda.ro otPath)
- anaconda.id.fsset.formatSwap(anaconda.rootPath)
- anaconda.id.fsset.turnOnSwap(anaconda.rootPath)
-
- return
-

class Partitions:
"""Defines all of the partition requests and delete requests."""
--
1.5.3.4

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

Thread Tools




All times are GMT. The time now is 12:57 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org