[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Ovirt-devel] [PATCH appliance] provisioning: add empty YUM repo to F9 minimal install tree



and point anaconda to download stage2.img we already have in the appliance

Signed-off-by: Alan Pevec <apevec redhat com>
---
 gettree.sh         |    2 ++
 ovirt-appliance.ks |    3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/gettree.sh b/gettree.sh
index f6ae46a..2bd78fe 100755
--- a/gettree.sh
+++ b/gettree.sh
@@ -25,6 +25,8 @@ pushd $dest
 printf "Downloading minimal Fedora install tree from $url"
 set -e
 download $url/.treeinfo
+download $url/media.repo
+createrepo .
 mkdir -p images/pxeboot
 cd images
 download $url/images/stage2.img
diff --git a/ovirt-appliance.ks b/ovirt-appliance.ks
index b344e47..67449b1 100644
--- a/ovirt-appliance.ks
+++ b/ovirt-appliance.ks
@@ -113,8 +113,7 @@ cobbler repo add --name=f9-$arch --arch=$arch --mirror-locally=0 \
   --mirror=$url/releases/9/Everything/$arch/os
 cobbler repo add --name=f9-$arch-updates --arch=$arch --mirror-locally=0 \
   --mirror=$url/updates/9/$arch
-sed -e 's#^url .*#url --url=$url/releases/$ver/$os/$arch/os#' \
-    -e 's#^reboot.*#poweroff#' /etc/cobbler/sample_end.ks \
+sed -e 's#^reboot.*#poweroff#' /etc/cobbler/sample_end.ks \
     > /etc/cobbler/sample-$os-$ver-$arch.ks
 cobbler profile edit --name=$os-$ver-$arch \
   --repos="f9-$arch f9-$arch-updates" \
-- 
1.5.5.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]