Skip to content

Commit f86fb39

Browse files
awesomenixCopilot
andcommitted
Move containerd disable to post-install
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2b7cf9c commit f86fb39

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

vhdbuilder/packer/cleanup-vhd.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash -eux
22

3+
systemctl daemon-reload
4+
systemctl disable --now containerd || exit 1
5+
36
# Cleanup packer SSH key and machine ID generated for this boot
47
rm -f /root/.ssh/authorized_keys
58
rm -f /home/packer/.ssh/authorized_keys

vhdbuilder/packer/install-dependencies.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ tee "${CONTAINERD_SERVICE_DIR}/exec_start.conf" > /dev/null <<EOF
149149
ExecStartPost=/sbin/iptables -P FORWARD ACCEPT
150150
EOF
151151

152-
systemctl disable --now containerd
153-
154152
tee "/etc/sysctl.d/99-force-bridge-forward.conf" > /dev/null <<EOF
155153
net.ipv4.ip_forward = 1
156154
net.ipv4.conf.all.forwarding = 1

vhdbuilder/packer/post-install-dependencies.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ if [ $OS = $UBUNTU_OS_NAME ]; then
106106
fi
107107
fi
108108
capture_benchmark "${SCRIPT_NAME}_resolve_conf"
109+
109110
echo "post-install-dependencies step completed successfully"
110111
capture_benchmark "${SCRIPT_NAME}_overall" true
111112
process_benchmarks

0 commit comments

Comments
 (0)