allright, i have been banging my head against a wall for this problem (or wish) i have and i think it is time to get help.
here is what i am trying to do,
i want a nonpersistant picture of a harddrive that works and boots but resets it self at shutdown.
i would like to use manjaro as it is the distro that i am most familjar with, (except raspian)
i started out with installing manjaro on a harddrive, after a while i started to realise how much it saves, so i tried to tmpfs mount places of intrest. but i started to realise that it is like trying to patch a gaping hole with a bandaid,
so i stated to look to make an iso out of my harddrive and run it in ventoy. i tried to use dd and clonezilla, i tried to take a picture of the whole disk or just the partitions but it never seemd to work, i think if i understand right dd does not make a iso per se, and i still need the uefi boot partition. and i belive that the os still need to write stuff. managed to get clonezilla to make a picture (not iso) but i gave up here due to the need of not beeing writeprotective
next idea, overlayfs,
this seems like the best idea, freeze root and use tmpfs as a write to storage.
but i have a very hard time to get this to work
i have been using iask.ai to find me solutions of linux problems and it throws this at me
sudo pacman -S overlayroot
sudo systemctl enable overlayroot
this would have been the easiest i think, however it seems overlayroot is not there, and what i can find from the appstore (?) is a fuse something overlayfs
iask.ai gives me this command to use overlayfs
mount -t overlay overlay -o lowerdir=/lower,upperdir=/upper,workdir=/work/merged
and i should add this to fstab
overlay /merged overlay noauto,x-systemd.automount,lowerdir=/lower,upperdir=/upper,workdir=/work 0 0
but i cant seem to make the lowerdir the whole root, or rather i dont know how. nor do i know how to make the working dir a tmpfs.
so could anyone help me with this?
i cant use live usb due to there is a program that i want added and i dont want to install it every single time, i cant use archiso due to…stuff? the program is non arch standard and i dont know it how does it things that it do. i cant also not load everything into tmpfs even if that was possible in manjaro. the program in question is around 60gig in total. i just dont have that much ram.
in short, read os and program from hdd, all changes that are made goes to tmpfs (or other solution)
Thankyou in advance for help