Skip to content

Commit 41f07c5

Browse files
committed
Make NM cloud-init config not care about whitespace
1 parent e9f19c4 commit 41f07c5

File tree

1 file changed

+8
-1
lines changed
  • elements/rocky-container-stackhpc/containerfiles

1 file changed

+8
-1
lines changed

elements/rocky-container-stackhpc/containerfiles/9-stackhpc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ FROM docker.io/rockylinux/rockylinux:9
55
RUN dnf group install -y 'Minimal Install' --allowerasing && \
66
dnf install -y findutils util-linux cloud-init
77

8-
RUN sed -i "s/renderers:.*/renderers: ['network-manager']\n activators: ['network-manager']/" /etc/cloud/cloud.cfg
8+
COPY <<EOF /etc/cloud/cloud.cfg.d/10-NetworkManager.cfg
9+
---
10+
system_info:
11+
activators:
12+
- "network-manager"
13+
14+
merge_type: 'dict(recurse_array)'
15+
EOF
916

1017
RUN systemctl unmask console-getty.service dev-hugepages.mount \
1118
getty.target sys-fs-fuse-connections.mount systemd-logind.service \

0 commit comments

Comments
 (0)