mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Use the image rpm for install
The image must be extracted from an rpm, for some reason or another.
This commit is contained in:
parent
17ec74dcf8
commit
03e3497d20
@ -60,7 +60,6 @@ fi
|
||||
|
||||
# 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
|
||||
|
@ -4,4 +4,5 @@ ln -s $1/images/pxeboot/vmlinuz $2/boot/kernel && \
|
||||
ln -s $1/images/pxeboot/initrd.img $2/boot/initramfs/distribution
|
||||
mkdir -p $2/boot/efi/boot && \
|
||||
ln -s $1/EFI/BOOT/BOOTX64.EFI $1/EFI/BOOT/grubx64.efi $2/boot/efi/boot/
|
||||
ln -s $(find $1 -name '*host-image*rpm') $2/image.rpm
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
# instead
|
||||
%include /tmp/partitioning
|
||||
|
||||
%include /etc/confluent/rhv.path
|
||||
liveimg --url=file:///tmp/install.img
|
||||
|
||||
reboot
|
||||
|
||||
|
@ -58,3 +58,8 @@ if [ -e /tmp/installdisk ]; then
|
||||
echo ignoredisk --only-use $(cat /tmp/installdisk) >> /tmp/partitioning
|
||||
echo autopart --type=thinp --nohome $LUKSPARTY >> /tmp/partitioning
|
||||
fi
|
||||
cd $(mktemp -d)
|
||||
/etc/confluent/apiclient /confluent-public/os/$profile/image.rpm -o image.rpm
|
||||
rpm2cpio image.rpm | cpio -dumi
|
||||
ln -s $(find . -name *img) /tmp/install.img
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user