summaryrefslogtreecommitdiffstats
path: root/installclasses/custom.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-12-08 19:24:20 +0000
committerErik Troan <ewt@redhat.com>2000-12-08 19:24:20 +0000
commitcda1d7b473fd9afd6243acf1ef7f0a0e52dbde9c (patch)
tree283bf0f6b4f964119c27d4130f5eedfbef1756e6 /installclasses/custom.py
parent11becb60bc2b392141a409ebb4e450560edd67aa (diff)
downloadanaconda-cda1d7b473fd9afd6243acf1ef7f0a0e52dbde9c.tar.gz
anaconda-cda1d7b473fd9afd6243acf1ef7f0a0e52dbde9c.tar.xz
anaconda-cda1d7b473fd9afd6243acf1ef7f0a0e52dbde9c.zip
try automatic partitioning
Diffstat (limited to 'installclasses/custom.py')
-rw-r--r--installclasses/custom.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/installclasses/custom.py b/installclasses/custom.py
index 5d01b0329..aa47c1300 100644
--- a/installclasses/custom.py
+++ b/installclasses/custom.py
@@ -1,5 +1,7 @@
from installclass import BaseInstallClass
+from installclass import FSEDIT_CLEAR_LINUX
from translate import N_
+import os
# custom installs are easy :-)
class InstallClass(BaseInstallClass):
@@ -12,4 +14,12 @@ class InstallClass(BaseInstallClass):
def __init__(self, expert):
BaseInstallClass.__init__(self)
+ if os.uname ()[4] != 'sparc64':
+ self.addNewPartition('/boot', (16, -1, 0), (None,-1,0), (0,0))
+ self.addNewPartition('/', (700, -1, 1), (None, -1, 0), (0,0))
+ self.addNewPartition('swap', (64, -1, 0), (None, -1, 0), (0,0))
+
+ self.setClearParts(FSEDIT_CLEAR_LINUX,
+ warningText = N_("You are about to erase any preexisting Linux "
+ "installations on your system."))