summaryrefslogtreecommitdiffstats
path: root/installclasses/server.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-03 18:00:24 +0000
committerErik Troan <ewt@redhat.com>2000-05-03 18:00:24 +0000
commit949528f9e703c7373d9e30510b76f8944b001138 (patch)
tree8e8bb24addb91de7bee9265049f366c504754aa1 /installclasses/server.py
parenta7a3e6f337f0ce72c8feb603a05f287915da3866 (diff)
downloadanaconda-949528f9e703c7373d9e30510b76f8944b001138.tar.gz
anaconda-949528f9e703c7373d9e30510b76f8944b001138.tar.xz
anaconda-949528f9e703c7373d9e30510b76f8944b001138.zip
first pass at new install class placement -- works in text mode
Diffstat (limited to 'installclasses/server.py')
-rw-r--r--installclasses/server.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/installclasses/server.py b/installclasses/server.py
new file mode 100644
index 000000000..bd3d95015
--- /dev/null
+++ b/installclasses/server.py
@@ -0,0 +1,30 @@
+from installclass import BaseInstallClass
+from translate import *
+from installclass import FSEDIT_CLEAR_ALL
+import os
+
+class InstallClass(BaseInstallClass):
+
+ name = N_('Install Server System')
+ sortPriority = 10
+
+ def __init__(self, expert):
+ BaseInstallClass.__init__(self)
+ self.setGroups(["Server"])
+ self.setHostname("localhost.localdomain")
+ if not expert:
+ self.addToSkipList("lilo")
+ self.addToSkipList("package-selection")
+ self.addToSkipList("authentication")
+ self.setMakeBootdisk(1)
+
+ if os.uname ()[4] != 'sparc64':
+ self.addNewPartition('/boot', 16, -1, 0, None)
+ self.addNewPartition('/', 256, -1, 0, None)
+ self.addNewPartition('/usr', 512, -1, 1, None)
+ self.addNewPartition('/var', 256, -1, 0, None)
+ self.addNewPartition('/home', 512, -1, 1, None)
+ self.addNewPartition('swap', 64, 256, 1, None)
+ self.setClearParts(FSEDIT_CLEAR_ALL,
+ warningText = N_("You are about to erase ALL DATA on your hard "
+ "drive to make room for your Linux installation."))