feat(provision): mask periodic rootfs-dirtying timers#2564
Conversation
Mask audit, apt-daily, motd-news, man-db, e2scrub_all, fstrim, logrotate, unattended-upgrades, accounts-daemon, udisks2 timers and services in the base provisioning script. Each periodic wake-up scribbles small files into the rootfs and dirties at least one 4 KiB block per run, all of which end up in the next snapshot diff with no value for ephemeral sandboxes. `systemctl mask` is a no-op on units that aren't installed, so this is safe across all customer base images. Trailing `|| true` keeps the script running if the systemctl invocation hits an unexpected error on a minimal base image.
PR SummaryMedium Risk Overview Reviewed by Cursor Bugbot for commit 121ca16. Bugbot is set up for automated code reviews on this repo. Configure here. |
❌ 4 Tests Failed:
View the top 1 failed test(s) by shortest run time
View the full list of 5 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
PR Reviewer Guide 🔍Warning
Here are some key observations to aid the review process:
|
|
Close for now, will reopen after measuring later. |
Mask periodic timers/daemons that scribble small files into the rootfs (audit, apt-daily, motd-news, man-db, e2scrub, fstrim, logrotate, unattended-upgrades, accounts-daemon, udisks2). Each wake-up dirties at least one 4 KiB block per run with no value for ephemeral sandboxes.
systemctl maskis a no-op on units not present, so this is safe across all customer base images.