mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
The removal of files in the overlay present in the lowerdir creates whiteout entries that mask the lowerdir entries. For those files that have a tmpfile rule for creation, a reboot would cause the file to be created in the upperdir, meaning this file is not updated from the lowerdir when it changes. In addition we have filtered out some tmpfile rules that caused upcopies (symlinks and directories) which meant that removing the /etc/resolv.conf symlink didn't bring it back after reboot. To make files from the lowerdir show up if they have a tmpfile rule that normally would recreate them we keep a list of whiteout entries that we clean up on boot. This also prevents freezing files because systemd-tmpfiles does not need to recreate them in the upperdir.
266 B
266 B
- Deleted files in
/etc
that have a tmpfiles rule that normally would recreate them will now show up again through the/etc
lowerdir (Flatcar#1265, bootengine#79)