Skip to content

Commit be96cac

Browse files
anishcgwalters
authored andcommitted
Silence cloud-init warnings
Silence cloud-init warnings about resizing rootfs. More discussion in https://gitlab.com/fedora/bootc/examples/-/merge_requests/78 Signed-off-by: Anish Bhatt <[email protected]>
1 parent eb84e37 commit be96cac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hack/provision-derived.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ mkdir -p /etc/cloud/cloud.cfg.d
5959
cat > /etc/cloud/cloud.cfg.d/80-enable-root.cfg <<'CLOUDEOF'
6060
# Enable root login for testing
6161
disable_root: false
62+
63+
# In image mode, the host root filesystem is mounted at /sysroot, not /
64+
# That is the one we should attempt to resize, not what is mounted at /
65+
growpart:
66+
mode: auto
67+
devices: ["/sysroot"]
68+
resize_rootfs: false
6269
CLOUDEOF
6370
fi
6471

0 commit comments

Comments
 (0)