nothing like an honest answerLaughing No...

I keep a users point of view as otherwise they would batter me with a sharp cucumber.....
Just avoid the shutdown process by renaming rc.shutdown...or switch off the computer's power-button.mikeb wrote:So you have a system that is akin to a save folder then but outside of the union...well that at least avoids dirty shutdowns though not something the family would be setting up.
mike
Outside of Puppy space. I wouldn't want one part of a web of spreadsheets to be contained within the savefile of one Puppy, but rather accessible by other systems/Pup's according to whatever might be being used at the time.So you have a system that is akin to a save folder then but outside of the union
I tried this at some stage but it didn't work for me. Can recall that the sfs created from the previous "saved session" didn't change icons (I changed the icons set during the previous session as a test) when the contents were copied to pup_rw ... Also, it was difficult to get rid of something that was saved somewhere in / instead of in root....but I'll play with it again.mikeb wrote:Ok ... boot resembles PUPMODE=5
tmpfs made for pup_rw as is for mode 5
save sfs is mounted and contents copied to /pup_rw
unmount and carry on in normal fashion
thats it..so runs like mode 5 but top layer is populated from last session so effectively a save.
I did use .tar but tar in initrd ..embutils version..was flaky..probably improved or build a tiny libc version. uncompressed sfs does the same job apart from whiteout files need specifically handling when copying.
Shutdown just makes sfs of /tmpfs minus unneeded folders...easy to not make so giving a 'no save' option ..also easy to keep a backup of the previous session by renaming before creation.
Only caveats really is a suitable amount of ram + swap and saving during session could be done as otherwise say a power loss makes for an error free boot but only from the previous session. Never seems to need that as anything i want to keep in that way i save to a hard drive, memory stick or internet anyway...
mike
1) I tell the family to save their data externally or else it will be lost. Howls of protest initially, then they started to understand that taking responsibility for their data makes much more sense than trusting your operating system to do it. (of course it would also be great to have an auto backup script capturing and archiving the session activity as a backup mechanism for forgetful users...)mikeb wrote:Not having some form of save option would be a pain in the neck for general use...
Pupmode 5 - that I use all the time, provides all of thosegreengeek wrote:Shutdown procedures always need to offer the following choices:
- save current session totally.
- discard current session totally
- archive current session and let me choose at next boot whether i want to continue from previous session or use pristine boot.
But what if there was an option to merge various sfs instead of remastering? Remastering is such a final and permanent way of moving forwards without the ability to go backwards if you find a problem.rufwoof wrote:Remaster at a opportune time to merge in any savefile (make permanent) and delete the savefile.
Okay, tried again. Same problem booting the edited base file (desktop icons not changing). This what I did: made an SFS of the contents of initrd/pup_rw (just as is) at the end of the session. Put the copy script in /etc/rc.d/init.d (editing the base sfs). Did I miss something?mikeb wrote:was it done during the initrd phase? The pinboard is rewitten around the time x it launched.
whiteout handling is needed for sfs....would affect deletion of existing files but not added ones.
mike
rc.local I have as a text file. Do I just copy the contents of my script there and keep it as a text file or should it be an executable script file? Also checked rc.sysinit which calls rc.local and the rc.local section is at the end of that script so I don't think this is going to work. The part with regards to the pinboard is the second last section maybe I should try to change them around?mikeb wrote:well unless its loaded by the initrd the behaviour will be unpredictable as it will conflict with main system boot processes. eg it loads the pinboard while its being checked for icon position so you end up with the original rather than the new version. You have to load pup_rw before the main system starts like other save methods.
init.d is for system daemon and startup scripts.. Scripts in there might still be being processed when X is loading since from what I have seen its loaded by delayedrun which does its stuff after X has started...bad bad system design but thats another matter.
You might , but only might fare better using /etc/rc.d/rc.local .. again you could still conflict with an altered system file in say /etc .
mike