Skip to content

Commit e02deee

Browse files
committed
fix: only provision Ubuntu with /opt/azure/manifest.json
It's a legacy file with .deb package data, and Flatcar needs to save space in OSProfile. Also the `MANIFEST_FILEPATH` references in the tests were unused. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
1 parent 8ef0071 commit e02deee

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

parts/linux/cloud-init/nodecustomdata.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,14 @@ write_files:
108108
content: !!binary |
109109
{{GetVariableProperty "cloudInitData" "provisionConfigs"}}
110110

111+
{{ if not (or IsMariner IsFlatcar) -}}
111112
- path: /opt/azure/manifest.json
112113
permissions: "0644"
113114
encoding: gzip
114115
owner: root
115116
content: !!binary |
116117
{{GetVariableProperty "cloudInitData" "componentManifestFile"}}
118+
{{- end }}
117119

118120
- path: {{GetInitAKSCustomCloudFilepath}}
119121
permissions: "0744"

vhdbuilder/packer/pre-install-dependencies.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ CPU_ARCH=$(getCPUArch) #amd64 or arm64
2020
VHD_LOGS_FILEPATH=/opt/azure/vhd-install.complete
2121
COMPONENTS_FILEPATH=/opt/azure/components.json
2222
PERFORMANCE_DATA_FILE=/opt/azure/vhd-build-performance-data.json
23-
MANIFEST_FILEPATH=/opt/azure/manifest.json
2423
#this is used by post build test to check whether the compoenents do indeed exist
2524
cat components.json > ${COMPONENTS_FILEPATH}
26-
cat manifest.json > ${MANIFEST_FILEPATH}
2725
echo "Starting build on " $(date) > ${VHD_LOGS_FILEPATH}
2826

2927
if isMarinerOrAzureLinux "$OS"; then

vhdbuilder/packer/test/linux-vhd-content-test.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/bash
22
COMPONENTS_FILEPATH=/opt/azure/components.json
3-
MANIFEST_FILEPATH=/opt/azure/manifest.json
43
VHD_LOGS_FILEPATH=/opt/azure/vhd-install.complete
54
UBUNTU_OS_NAME="UBUNTU"
65
MARINER_OS_NAME="MARINER"

0 commit comments

Comments
 (0)