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 > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 05-08-2012, 10:35 AM
Vratislav Podzimek
 
Default Change spaw option --same-as-ram to --hibernation

See also: https://home.corp.redhat.com/wiki/swap-size-recommendations

Resolves: rhbz#744129
Related: rhbz#815557
---
pykickstart/commands/partition.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/pykickstart/commands/partition.py b/pykickstart/commands/partition.py
index 804ab10..8124e9f 100644
--- a/pykickstart/commands/partition.py
+++ b/pykickstart/commands/partition.py
@@ -187,13 +187,13 @@ class RHEL6_PartData(F12_PartData):
def __init__(self, *args, **kwargs):
F12_PartData.__init__(self, *args, **kwargs)

- self.sameAsRam = kwargs.get("sameAsRam", False)
+ self.hibernation = kwargs.get("hibernation", False)

def _getArgsAsStr(self):
retval = F11_PartData._getArgsAsStr(self)

- if self.sameAsRam:
- retval += "--same-as-ram"
+ if self.hibernation:
+ retval += "--hibernation"

return retval

@@ -357,16 +357,16 @@ class RHEL6_Partition(F12_Partition):

def _getParser(self):
op = F12_Partition._getParser(self)
- op.add_option("--same-as-ram", dest="sameAsRam", action="store_true",
+ op.add_option("--hibernation", dest="hibernation", action="store_true",
default=False)
return op

def parse(self, args):
pd = F12_Partition.parse(self, args)

- if pd.recommended and pd.sameAsRam:
+ if pd.recommended and pd.hibernation:
raise KickstartValueError(formatErrorMsg(self.lineno,
- msg=_("Options --recommended and --same-as-ram are mutually exclusive.")))
+ msg=_("Options --recommended and --hibernation are mutually exclusive.")))

return pd

--
1.7.4.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 03:26 AM.

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