add ConfigDrive to datasource_list in SharedfsVM (#11726)

This commit is contained in:
Abhisar Sinha 2025-10-01 18:00:44 +05:30 committed by GitHub
parent 2a802a3143
commit 7dd0d6e937
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,6 +49,12 @@ setup_sharedfsvm() {
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"
if [ -f /home/cloud/success ]; then
systemctl stop cloud-init cloud-config cloud-final