2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Disable cloud-init and remove double-console line

This commit is contained in:
Jarrod Johnson 2020-05-02 11:55:37 -04:00
parent 530be7a508
commit 14192a6c21
3 changed files with 3 additions and 3 deletions

View File

@ -7,3 +7,5 @@ if [ ! -z "$rootpw" -a "$rootpw" != "null" ]; then
echo root:$rootpw | chpasswd -e
fi
hostnamectl set-hostname $(grep ^NODENAME: /etc/confluent/confluent.info | awk '{print $2}')
touch /etc/cloud/cloud-init.disabled
rm -rf /etc/confluent/

View File

@ -45,8 +45,6 @@ fi
if [ ! -z "$cons" ]; then
echo "Installation will proceed on graphics console, autoconsole cannot work during install for Ubuntu" > ${cons%,*}
#fcmdline="$fcmdline console=${cons#/dev/}"
elif grep console= /proc/cmdline; then
fcmdline=$fcmdline" "$(sed -e s/.*console=/console=/ -e 's/ .*//' /proc/cmdline)
fi
echo $fcmdline > /custom-installation/confluent/fakecmdline
/scripts/casper-bottom/58server_network

View File

@ -22,7 +22,7 @@ echo $osprofile > /custom-installation/confluent/osprofile
echo URL=http://${MGR}/confluent-public/os/$osprofile/distribution/live.iso >> /conf/param.conf
fcmdline="$(cat /custom-installation/confluent/cmdline.orig) url=http://${MGR}/confluent-public/os/$osprofile/distribution/live.iso"
if [ ! -z "$cons" ]; then
fcmdline="$fcmdline console=${console#/dev/}"
fcmdline="$fcmdline console=${cons#/dev/}"
fi
echo $fcmdline > /custom-installation/confluent/fakecmdline
mount -o bind /custom-installation/confluent/fakecmdline /proc/cmdline