~/talk

Read-only rootfs: Theory and Practice

slides:none on file

Argues that a read-only rootfs plus separate nonvolatile user-data and tmpfs volatile areas reduces flash wear, avoids filesystem corruption and simplifies image updates and factory reset. Uses /proc/diskstats and block_dump to identify writers and shows concrete culprits: dropbear SSH keys, /dev/urandom seed, udev cache and MOTD all write on first boot. Demonstrates fixes on a Yocto/Poky image: add a data partition (/sl_data), symlink or bind-mount changing files into it, use tmpfs for /run and /tmp, or overlayfs; notes Yocto’s read-only image lacks nonvolatile placement so extra package work is required.

AI-written summary · about

  1. 0:00Introduction
  2. 0:52Readonly rootfs
  3. 2:10Why readonly
  4. 3:12Image updates
  5. 4:05Mount rootfs
  6. 4:38Memory areas
  7. 5:43Stateless
  8. 7:50Enlightenment
  9. 9:50Example
  10. 11:10Blockdump
  11. 12:11Journaling
  12. 13:13Verta
  13. 14:25Path names
  14. 15:09Problems on first boot
  15. 19:43Log files
  16. 20:59Random seed
  17. 22:12Dropout
  18. 22:59First boot
  19. 23:32Android
  20. 25:49Conclusion
  21. 26:39QA
  22. 30:22Advantages and Disadvantages
  23. 31:37symlinks
  24. 33:35mount
  25. 35:17systemd
  26. 37:37volatilepast
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.