*** Sfs-Load 'on-the-fly' continued ***
Continue from here: viewtopic.php?p=11354#p11354
Did some more exploring the possibilities loading sfs module using symlinks.
I wasn't really satisfied with the way it's loading: symlinking from a read-only source. (.squashfs module mounted RO)
It would be much better IMO if the symlinking is done from a writable source, so then e.g. a program or the user can modify files that are included in the SFS module. For example config files or update files/binaries.
So after mounting the .squashfs (RO), make (by using overlay) extra mountpoint <module-mnt-RW> read-write, being the source to symlink from: (and make upperdir= <modified-files-write>)
Something like:
mount -t overlay -o lowerdir=<module-mnt-RO>,upperdir=<modified-files-write>,workdir=work overl <module-mnt-RW>
For Info; the mountpoints should be in a tmpfs location, it will fail if on e.g. /, /mnt or /media.
Where <module-mnt-RO> is the read-only mountpoint from the .squashfs, <module-mnt-RW> is read-write.
In <modified-files-write> come only the files that are (possibly) modified, to be moved to the system at de-activating the module.
De-activating may be a bit slower, depending on the amount of files in <modified-files-write>
As I see it, this way it's more close to the situation when the module is already activated at boot (by placing it in the "live" folder)
(and more close to previous method using "aufs" in e.g. Stretch and Buster)
Probably later I will update sfsload to v2.0.0 in the repository, now for testing sfsload_2.0.0_all.deb including this change in "NoRepo" (for Bullseye and Sid):
https://github.com/doglinux/bulldog/raw ... .0_all.deb
EDIT: Added now sfsload_2.0.0 to the repositories for Bullseye and Sid, along with updated versions of the packages "porteusbootscripts" and "quick-remaster".
Fred