mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CKS: add ConfigDrive to cloud-init datasource_list in systemvm template (#7650)
* CKS: add ConfigDrive to cloud-init datasource_list in systemvm template * systemvm template: update debian 11.7.0 iso url * CKS: get K8S iso by LABEL=CDROM if config drive ISO is attached * Revert "CKS: add ConfigDrive to cloud-init datasource_list in systemvm template" This reverts commit b6863a5ce1b9757d7c5bbf3ba9720e2b61410c7d. * CKS: patch cloud-init in opt/cloud/bin/setup/cksnode.sh * PR7650: move ConfigDrive before CloudStack in datasource list * Revert "CKS: patch cloud-init in opt/cloud/bin/setup/cksnode.sh" This reverts commit 75be03c6aaf58e3939f59c657d84c6495538d3c2. * CKS: fix ConfigDrive
This commit is contained in:
parent
bf2cedea79
commit
04c428cb2f
@ -66,7 +66,7 @@ write_files:
|
||||
break
|
||||
fi
|
||||
set +e
|
||||
output=`blkid -o device -t TYPE=iso9660`
|
||||
output=`blkid -o device -t LABEL=CDROM`
|
||||
set -e
|
||||
if [ "$output" != "" ]; then
|
||||
while read -r line; do
|
||||
|
||||
@ -86,7 +86,7 @@ write_files:
|
||||
break
|
||||
fi
|
||||
set +e
|
||||
output=`blkid -o device -t TYPE=iso9660`
|
||||
output=`blkid -o device -t LABEL=CDROM`
|
||||
set -e
|
||||
if [ "$output" != "" ]; then
|
||||
while read -r line; do
|
||||
|
||||
@ -66,7 +66,7 @@ write_files:
|
||||
break
|
||||
fi
|
||||
set +e
|
||||
output=`blkid -o device -t TYPE=iso9660`
|
||||
output=`blkid -o device -t LABEL=CDROM`
|
||||
set -e
|
||||
if [ "$output" != "" ]; then
|
||||
while read -r line; do
|
||||
|
||||
@ -54,7 +54,7 @@ while true; do
|
||||
break
|
||||
fi
|
||||
set +e
|
||||
output=`blkid -o device -t TYPE=iso9660`
|
||||
output=`blkid -o device -t LABEL=CDROM`
|
||||
set -e
|
||||
if [ "$output" != "" ]; then
|
||||
while read -r line; do
|
||||
|
||||
@ -59,6 +59,12 @@ setup_k8s_node() {
|
||||
|
||||
rm -f /etc/logrotate.d/cloud
|
||||
|
||||
# Enable cloud-init without any aid from ds-identify
|
||||
echo "policy: enabled" > /etc/cloud/ds-identify.cfg
|
||||
|
||||
# Add ConfigDrive to datasource_list
|
||||
sed -i "s/datasource_list: .*/datasource_list: ['ConfigDrive', 'CloudStack']/g" /etc/cloud/cloud.cfg.d/cloudstack.cfg
|
||||
|
||||
log_it "Starting cloud-init services"
|
||||
systemctl enable --now --no-block containerd
|
||||
if [ -f /home/cloud/success ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user