diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-07-27 13:34:01 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-07-27 13:34:01 -0400 |
commit | dd05c92699e657990c77af311b85fbef30472c11 (patch) | |
tree | 25eed399bd27ddcb867c19c1db3724e0e0a92a42 /kickstarts | |
parent | 31a8dfef9c42b77a17ba09d92651cf222b525a00 (diff) | |
download | third_party-cobbler-dd05c92699e657990c77af311b85fbef30472c11.tar.gz third_party-cobbler-dd05c92699e657990c77af311b85fbef30472c11.tar.xz third_party-cobbler-dd05c92699e657990c77af311b85fbef30472c11.zip |
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.
Diffstat (limited to 'kickstarts')
-rw-r--r-- | kickstarts/kickstart_fc5.ks | 15 | ||||
-rw-r--r-- | kickstarts/kickstart_fc6.ks | 15 |
2 files changed, 4 insertions, 26 deletions
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 |