So, I moved from Zorin lite to Linux Mint XFCE for our business Linux system. All good, including setting up tigervncserver/clients via ssh tunnels to each others machines.
I actually prefer full install for such purposes (and running as non-root desktop) since makes upgrading trivially easy. However I do miss save on demand functionality since I like to experiment and don't always want to save.
Previously I have simply temporarily moved the full install into its own directory and then used FR initrd capability to load that as the 07layer to create a frugal install with save on demand and easy/quick to get back to full install simply by moving that directory contents up one level (back to /).
However, since overlayfs has that big advantage over aufs of being able to 're-use' layers that were already used in other overlay stack, I decided to try a frugal install using FR initrd inside / (i.e. not bothering to move the full install Mint into a subdirectory). I've done much the same a few years ago when I showed how to use a sfs with a full installed distro via overlayfs layer with first layer being / (wiak Aug2019): https://oldforum.puppylinux.com/viewtopic.php?t=115915)
But... I did realise the potential problem that if this worked as a straight frugal boot then upper_changes and work would be written into /, and I indeed wondered how that would effect matters since they would not just be part of the first layer, but also used for the top read-write layer... Well, to try this, all I needed to do was put the initrd (modified to include Mint boot modules) into / along with copy of vmlinuz of Mint along with external w_init. Then all I needed to do was quick one line tweak-addition to that external w_init (i.e customised it to use that bootfromdir as lower overlay layer, and booted. It worked...
All I added to w_init was one line (EDITED to include colon at front so sfs addons work too):
Code: Select all
bottom=":${bootfromdir}" #wiak full install to frugal experiment
placed just before the main mount of the overlays. No other change was needed - all relevant mounting was already correctly handled by current FRinitrd anyway. So the directory being booted from instantly becomes the lowest layer of the overlay as a result, which happens to be the root directory of the full install of my Linux Mint in this arrangement. I'm not currently using any numbered sfs files or directories at all, though these should work per normal as overlay layers in this arrangement too (I'll try including 10gtkdialog___.sfs and will report back here - should work fine - CHECKED OK with above colon fix in bottom=...).
So at boot time I now have menu choice to either go into Linux Mint as its normal full install (how it was installed), or, via FR initrd as a frugal install. But... the weirdness is that thunar will not let me look at Filesystem / directory because of that upper_changes/work situation that results in 'too many symlinks' somehow as far as overlayfs is concerned. But whole thing works fine otherwise. Interesting test was:
In that frugal install mode, I used apt upgrade && apt install geany (geany not in Linux Mint by default). That worked fine. Then I rebooted into normal full install mode and geany was no longer seen on the system or in apt/dpkg databases at all; why? well because that was all in upper_changes of course... So rebooting back to frugal (which is simply a grub config menu entry and needs no moving of the Linux Mint full install at all), geany is back again and fine. But pity about the weird upper_changes symlinks situation, when in that particular frugal install arrangement, though I can actually still open thunar at any directory on the system other than /, /upper_changes, or /work. So for example, I can use thunar to view /mnt/home or whatever... Also I can still get to / in a terminal, but not into /upper_changes which is simply not directly readable (but being used fine).
I believe I know how to fix this to work completely though. I just need to use the FR initrd facility (grub options) of being able to store upper_changes and work on different partition - then all should be fine (except needs use of that extra partition... and fine as it is anyway if I ignore the /, /upper_dir, /work visibility restriction...). That will be perfect for my needs since when experimenting I'll just use an external usb stick with upper_changes on it... But even without RAM2 mode use I'm now able to experiment without polluting my actual full install so I can just delete upper_changes thereafter...
Later I will document this mechanism more completely (probably with simply script so just a matter of running that script to install the FR components); might well be useful to many others who do have some mainstream distro full installed but would like save on demand FRinit frugal install capability.
I'm actually not yet using RAM2 mode save-on-demand (I'd have to add the scripts to main system). So geany was being written directly to upper_changes, and of course I could rsync that upper_changes back to the full install once in an other distro or back booted into the full install probably.
EDIT: Interestingly enough, when in FR frugal Linux Mint boot, if I install pcmanfm, that can be used to go to / directory without issues. It doesn't allow me into /upper_changes but just writes a big ? over its icon since obviously not usable from there. I can however get into upper_changes via /mnt/... directory. Once again, pcmanfm proves to not be installed once I boot back into full install Linux Mint (again that since it is in the upper_changes directory, which is only loaded in frugal mode). All in all, this is perfectly usable as is it seems and very handy mechanism for not being destructive to the actual full install for the dev experiments I habitually do. Only end result of using frugal boot sometimes is all kept inside that upper_changes directory which full install doesn't use anyway - I'll also try out save2flash with that too in case I stay in frugal boot and also want save on demand to that upper_changes too. But more generally I can just delete that upper_changes anytime so as back to whatever the full install situation is.
I'm actually posting from that FRinitrd frugal install boot of my Linux Mint full install right now. I'll keep using it like that tonight to see if any issues, but I am confident it will work fine as is. Resource usage (RAM/CPU) remains good as usual.