summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-12-21 13:28:09 -0500
committerChris Lumens <clumens@redhat.com>2010-02-04 15:07:55 -0500
commit37141a9a3fabaac4d7d525fa87f9c9983977016b (patch)
tree3fd73837f36749796c94ce6900f6b2dd2b94dad5 /anaconda
parent6db11661989a865a0cf59ca2be37208b498f2b71 (diff)
downloadanaconda-37141a9a3fabaac4d7d525fa87f9c9983977016b.tar.gz
anaconda-37141a9a3fabaac4d7d525fa87f9c9983977016b.tar.xz
anaconda-37141a9a3fabaac4d7d525fa87f9c9983977016b.zip
Move firstboot into the Anaconda object.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda9
1 files changed, 9 insertions, 0 deletions
diff --git a/anaconda b/anaconda
index 5e7a558e7..7a49e8af4 100755
--- a/anaconda
+++ b/anaconda
@@ -495,6 +495,15 @@ class Anaconda(object):
return self._bootloader
@property
+ def firstboot(self):
+ if self.ksdata:
+ return self.ksdata.firstboot.firstboot
+ elif iutil.isS390():
+ return FIRSTBOOT_SKIP
+ else:
+ return FIRSTBOOT_DEFAULT
+
+ @property
def instClass(self):
if not self._instClass:
from installclass import DefaultInstall