2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-12 10:49:17 +00:00

Keep yum repo away from RHV

It must not think it has a yum repo to consider
This commit is contained in:
Jarrod Johnson 2020-06-18 15:33:38 -04:00
parent 5b605aa9d7
commit 889b6a9930
2 changed files with 6 additions and 9 deletions

View File

@ -58,7 +58,9 @@ if [ $textconsole = "true" ] && ! grep console= /proc/cmdline > /dev/null; then
fi
fi
echo inst.repo=$proto://$mgr/confluent-public/os/$profilename/distribution >> /etc/cmdline.d/01-confluent.conf
# RHV must not have a repo
#echo inst.repo=$proto://$mgr/confluent-public/os/$profilename/distribution >> /etc/cmdline.d/01-confluent.conf
echo liveimg --url=$proto://$mgr/confluent-public/os/$profilename/distribution/LiveOS/squashfs.img >> /etc/confluent/rhv.path
echo inst.ks=$proto://$mgr/confluent-public/os/$profilename/kickstart >> /etc/cmdline.d/01-confluent.conf
kickstart=$proto://$mgr/confluent-public/os/$profilename/kickstart
root=anaconda-net:$proto://$mgr/confluent-public/os/$profilename/distribution

View File

@ -30,15 +30,9 @@
# instead
%include /tmp/partitioning
reboot
%include /etc/confluent/rhv.path
%packages
@^minimal-environment
clevis-dracut
chrony
rsync
python3
%end
reboot
%pre
profile=$(grep ^profile: /etc/confluent.deploycfg |awk '{print $2}')
@ -48,6 +42,7 @@ curl -f https://$mgr/confluent-public/os/$profile/scripts/pre.sh > /tmp/preinst.
%end
%post --nochroot
nodectl init
mkdir -p /mnt/sysimage/etc/confluent
profile=$(grep ^profile: /etc/confluent.deploycfg |awk '{print $2}')
mgr=$(grep deploy_server /etc/confluent.deploycfg |awk '{print $2}')