I've been letting that boot into void (chroot into 'merged' running Void kernel/installation) and then exit-chroot out of that to make or restore a tar of the upper-changes folder content (changes).wiak wrote:As you should realise there are three different useful build_firstrib_initramfs script models now:
Model 01: which used chroot inside humongous initramfs to access the embedded firstrib_rootfs, which all runs in RAM. The last that model was worked on was Revision 008pre (I think). I will update that with the new stuff in model 04 (for changes location selection: readonly, RAM, or some other partition/dir than bootpartition) - I will similarly update model 02. @rufwoof: good to hear that runit can also work inside chroot-model-01 arrangements (sv didn't work for me when I tried it and though the PID of runit was the issue, but I didn't investigate further since was busy on switch_root implementation. In this model 01 testing I was also exiting out of the chroot back to a cttyhack-type shell in the initramfs and then restarting the chroot when required).
cd /
tar cf uc.tar /CHR/upper-changes
or
cd /
tar xf uc.tar
A form of save/restore. And chroot /CHR/merged /bin/bash .. back into void. I'm storing uc.tar on hdd which I mount within Void mkdir /mnt/hdd;mount /dev/sda1 /mnt/hdd ... and then access that within initrd once I've exit-chroot
cp /CHR/merged/mnt/hdd/uc.tar /.
Would be better however to just directly use the tar file
cd /
tar xf /CHR/merged/mnt/hdd/uc.tar
Note that /CHR is just my own choice of folder within initrd where lower/upper_changes/merged ...etc. are created/mounted/used.
My changes are generally little, so the tar file is small and quick to create/restore. Instead of hdd the saves could be stored elsewhere, on usb, even remote (retrieve/store using scp or whatever).
That's storing/restoring from/to a live running system. i.e. when I chroot back into void the changes immediately are visible. So far I've not encountered any problems from that, in some cases even having exit-chroot from within X with chrome running and after restoring and chroot back into Void the browser is still running OK on its prior content. If the browser isn't running then when started it usually prompts for 'restore session' to get back to where it was at the time of making the 'save'.
Desktop environment is pretty light installation wise, but highly functional. I like tilda (terminal) as I set that to F1 to show/hide and have it full screen when showing (i.e. I'm inclined to <F1> mtp <tab> <enter> ... to launch mtpaint than I am to use the touchpad to locate/click on mtpaint). mc as file manager and text editor (alongside busybox vi), alsa/pulseaudio/pavucontrol for sound, chromium browser (that I use to listen/watch multi-media, office docs (googledocs), pdf viewer ...etc.), xcalc for calculator (requires xbitmaps to be installed otherwise xcalc crashes and also crashes xorg!), jwm window manager, ccrypt for encrypting my ssh keys, mtpaint for image editing, and gcc/make/squashfs so I can run wiak's scripts and compile kernels if I so desire. void base also includes ssh so I can ssh into the server I use for email, irc, bbs's ...etc.
xbps-install -y linux4.19 base-system squashfs-tools xorg xinit xbitmaps alsa-utils pulseaudio pavucontrol jwm chromium tilda mc gcc make mtpaint ccrypt
Not bothering to compile my own kernel versions now, just using what Void provide (quicker/easier updates), and with the above the initrd weighs in at around 560MB (using xz high compression). Nice to be able to have the kernel and entire system fresh/new to the latest version in around a 20 minute script run time. I'm tending to kick that off in the background on a daily basis so it builds whilst doing other things. I'm also pulling down Steven Blacks host list as part of start up (as good as ad-block). Haven't bothered setting up auto suspend on closing the laptop lid, instead I run that manually by running echo -n mem >/sys/power/state ... inside a suspend.sh script. As that way I can have the system suspended (low power consumption) when the lid is up, or more typically not having it suspend when the lid is closed and I have something running such that I don't want that suspending just because the lid is closed.
The AMD/Radoen 4GB Acer Aspire ES 15 that I'm using does encounter slow HDD spin-up delays, that pretty much make it useless for the likes of Windows. However for booting from usb, running in ram with usb disconnected once booted and only using the HDD for storage its a great little system. I could even disconnect/remove the HDD and just store data/saves on my ssh server. I don't think that the extra battery charge/life doing that would add would be that much different however and having some laptop storage space can at times be handy, or even setting it up as swap.