From dd05c92699e657990c77af311b85fbef30472c11 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Fri, 27 Jul 2007 13:34:01 -0400 Subject: Added a SNIPPET::foo feature which can do the equivalent of %include in kickstart without the need for a wget and http hosting. Snippets live in /var/lib/cobbler/snippets -- Cobbler ships with only one snippet now (as a demo), though users can create as many as they want. --- kickstarts/kickstart_fc5.ks | 15 ++------------- kickstarts/kickstart_fc6.ks | 15 ++------------- 2 files changed, 4 insertions(+), 26 deletions(-) (limited to 'kickstarts') diff --git a/kickstarts/kickstart_fc5.ks b/kickstarts/kickstart_fc5.ks index a7d6cdc..84bd1e2 100644 --- a/kickstarts/kickstart_fc5.ks +++ b/kickstarts/kickstart_fc5.ks @@ -34,20 +34,9 @@ timezone America/New_York install # Clear the Master Boot Record zerombr -# Magically figure out how to partition this thing -%include /tmp/partinfo - -%pre -# Determine how many drives we have -set \$(list-harddrives) -let numd=\$#/2 -d1=\$1 -d2=\$3 -cat << EOF >> /tmp/partinfo -part / --fstype ext3 --size=1024 --grow --ondisk=\$d1 --asprimary -part swap --size=1024 --ondisk=\$d1 --asprimary -EOF +# Magically figure out how to partition this thing +SNIPPET::partition_select %packages diff --git a/kickstarts/kickstart_fc6.ks b/kickstarts/kickstart_fc6.ks index c9ab925..5208ed7 100644 --- a/kickstarts/kickstart_fc6.ks +++ b/kickstarts/kickstart_fc6.ks @@ -36,20 +36,9 @@ timezone America/New_York install # Clear the Master Boot Record zerombr -# Magically figure out how to partition this thing -%include /tmp/partinfo - -%pre -# Determine how many drives we have -set \$(list-harddrives) -let numd=\$#/2 -d1=\$1 -d2=\$3 -cat << EOF >> /tmp/partinfo -part / --fstype ext3 --size=1024 --grow --ondisk=\$d1 --asprimary -part swap --size=1024 --ondisk=\$d1 --asprimary -EOF +# Magically figure out how to partition this thing +SNIPPET::partition_select %packages -- cgit