Skip to content

Commit 7a704d1

Browse files
committed
Make cloud-init NM config care less about whitespace
1 parent 0f2628d commit 7a704d1

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
@@ -15,7 +15,14 @@ RUN if [[ ${ROCKY_USE_MIRRORS} = "true" ]]; then \
1515
RUN dnf group install -y 'Minimal Install' --allowerasing && \
1616
dnf install -y findutils util-linux cloud-init
1717

18-
RUN sed -i "s/renderers:.*/renderers: ['network-manager']\n activators: ['network-manager']/" /etc/cloud/cloud.cfg
18+
COPY <<EOF /etc/cloud/cloud.cfg.d/10-NetworkManager.cfg
19+
---
20+
system_info:
21+
activators:
22+
- "network-manager"
23+
24+
merge_type: 'dict(recurse_array)'
25+
EOF
1926

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

0 commit comments

Comments
 (0)