armbian/extensions/cloud-init
Igor Pecovnik c7ce4f4076 cloud-init: stop persisting zram swap into /etc/fstab (slow boot)
cloud-init's `mounts` module sees the running zram swap that
armbian-zram-config sets up and writes a "/dev/zram0 ... swap ... cloudconfig"
line into /etc/fstab. On the next boot systemd turns that into a dev-zram0.swap
unit that blocks ~90s waiting for /dev/zram0 (created later by
armbian-zram-config) before swap.target recovers — a very slow boot every time,
seen on the arm64 cloud images.

Ship a cloud.cfg.d drop-in that sets the `swap` mount to null, removing
cloud-init's default swap mount so it leaves zram/swap to Armbian. Verified
against cc_mounts (config is sanitized before de-dup, so the default swap entry
is suppressed too).

Signed-off-by: Igor Pecovnik <igor@armbian.com>
2026-09-19 08:06:28 +02:00
..
config cloud-init: stop persisting zram swap into /etc/fstab (slow boot) 2026-09-19 08:06:28 +02:00
defaults fixed indentation on cloud-init extension (#6231) 2024-02-01 20:01:17 +01:00
cloud-init.sh extensions: add @description headers and a list generator (#10534) 2026-08-26 19:14:35 +02:00