[redhat-lspp] LSPP kickstart config script (work in progress)

Linda Knippers linda.knippers at hp.com
Tue Oct 10 20:13:37 UTC 2006


Hi Klaus,

Thanks for posting the kickstart based configuration RPM.  When I
first tried it I ended up with a system that wasn't bootable.  Turns
out there's an existing bugzilla for the problem I was seeing.
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=201875
I don't know if the fix will be in beta 2.

I was able to get the installation to work by using the original
lvm-based storage configuration.  Basically, I uncommented the
original LVM setup commands and commented out the new 'part' commands.
Diffs are below.

If we find that LVM works for some platforms but not for others
we may need to add a question about that at install time or
conditionalize the script based on architecture, if its an
architecture-specific thing.  Any thoughts on that?

-- ljk

--- common-pre.cfg.orig 2006-10-09 17:17:27.000000000 -0400
+++ common-pre.cfg      2006-10-09 17:24:55.000000000 -0400
@@ -85,7 +85,9 @@ gen_partitioning () {
 #
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/s1-kickstart2-options.html

 ## Wipe all partitions on the selected disk
+## ljk: is --linux from anaconda.
 clearpart --all --drives=$DISK
+
 #old### Wipe partitions - Linux only on ppc64, all partitions on others
 #old#@@ppc64@@ clearpart --linux --drives=$DISK
 #old#@@ia64@@ clearpart --all --drives=$DISK
@@ -105,29 +107,30 @@ clearpart --all --drives=$DISK
 @@i386@@ part /boot --fstype ext3 --size=100 --ondisk=$DISK
 @@i386-WS@@ part /boot --fstype ext3 --size=100 --ondisk=$DISK

+## ljk:  Klaus had commented out the LVM setup
 ### LVM setup
-#part $PVNAME --size=0 --grow --ondisk=$DISK
-#volgroup $VGNAME --pesize=32768 $PVNAME
+part $PVNAME --size=0 --grow --ondisk=$DISK
+volgroup $VGNAME --pesize=32768 $PVNAME
 #
-### Required partitions, resize as appropriate
-#logvol / --fstype ext3 --name=LvRoot --vgname=$VGNAME --size=2048
--grow --maxsize=10000
-#logvol swap --fstype swap --name=LvSwap --vgname=$VGNAME --size=256
--grow --maxsize=512
-#logvol /var/log --fstype ext3 --name=LvLogs --vgname=$VGNAME
--size=200 --grow --maxsize=2048
+## Required partitions, resize as appropriate
+logvol / --fstype ext3 --name=LvRoot --vgname=$VGNAME --size=2048
--grow --maxsize=10000
+logvol swap --fstype swap --name=LvSwap --vgname=$VGNAME --size=256
--grow --maxsize=512
+logvol /var/log --fstype ext3 --name=LvLogs --vgname=$VGNAME --size=200
--grow --maxsize=2048
 #
-### Optional partitions, (de)activate and resize as appropriate
-#logvol /home --fstype ext3 --name=LvHome --vgname=$VGNAME --size=50 --grow
-##logvol /tmp --fstype ext3 --name=LvTmp --vgname=$VGNAME --size=200
-##logvol /var/log/audit --fstype ext3 --name=LvAudit --vgname=$VGNAME
--size=1000
-##logvol /var --fstype ext3 --name=LvVar --vgname=$VGNAME --size=400
+## Optional partitions, (de)activate and resize as appropriate
+logvol /home --fstype ext3 --name=LvHome --vgname=$VGNAME --size=50 --grow
+#logvol /tmp --fstype ext3 --name=LvTmp --vgname=$VGNAME --size=200
+#logvol /var/log/audit --fstype ext3 --name=LvAudit --vgname=$VGNAME
--size=1000
+#logvol /var --fstype ext3 --name=LvVar --vgname=$VGNAME --size=400

 ### non-LVM setup
 ## Required partitions, resize as appropriate
-part / --fstype ext3 --size=2048 --grow --maxsize=10000 --ondisk=$DISK
-part swap --fstype swap --size=256 --grow --maxsize=512 --ondisk=$DISK
-part /var/log --fstype ext3 --size=200 --grow --maxsize=2048 --ondisk=$DISK
+#part / --fstype ext3 --size=2048 --grow --maxsize=10000 --ondisk=$DISK
+#part swap --fstype swap --size=256 --grow --maxsize=512 --ondisk=$DISK
+#part /var/log --fstype ext3 --size=200 --grow --maxsize=2048
--ondisk=$DISK

 ## Optional partitions, (de)activate and resize as appropriate
-part /home --fstype ext3 --size=50 --grow --ondisk=$DISK
+#part /home --fstype ext3 --size=50 --grow --ondisk=$DISK
 #part /tmp --fstype ext3 --size=200 --ondisk=$DISK
 #part /var/log/audit --fstype ext3 --size=1000 --ondisk=$DISK
 #part /var --fstype ext3 --size=400 --ondisk=$DISK




More information about the redhat-lspp mailing list