I created live usb using a live image of debian stretch on
kernel 4.9.0-3-adm64, and then installed persistence image file on root of data partition which contains
Now grub is able to boot debian in persistence mode by following kernel commands:
linux /live/vmlinux-4.9.0-3-amd64 boot=live components persistence initrd /live/initrd.img-4.9.0-3-amd64
Persistence storage setup works as expected, but I'm looking to boot the filesystem in read-only mode while using persistence storage,
live-boot man page (here) introduces
Filesystem changes are not saved back to persistence media. In particular, overlays and netboot NFS mounts are mounted read-only.
Live Systems Manual doesn't say too much about this.
I tied following kernel options, none of them work:
# it not even load persistence image! also tried with "persistence-label=persistence" linux /live/vmlinux-4.9.0-3-amd64 boot=live components persistence persistence-read-only initrd /live/initrd.img-4.9.0-3-amd64 # loads persistence image, but it's not ro linux /live/vmlinux-4.9.0-3-amd64 boot=live components ro persistence initrd /live/initrd.img-4.9.0-3-amd64
When searching boot logs for
persistent keywords, I cannot find anything more than the above
kernel command lines.
I also read this brilliant post at Debian forums, but even his/her command line doesn't work for me.
Question in short:
How can I boot Debian live image 4.9.0-3, loading persistence image, but not writing back changes to it?!