Alright, so im making a car computer software package that hopefully I can pass onto conplete strangers for their carputers. I am using gentoo linux and I have a question about this.
Lets say the carputer suddenly turns off even if the shutdown controler didnt tell it too. There is a high possibility (at least when I do things) that something between the boot and login process will become corrupt (reiserfs) and the system wont boot correctly. So, I devise a plan: What if I put the entire base system (everything on / except the end users home dir files (mp3s and such)) on a 2nd partition in a compressed file. Then whenever chkdsk finds an error which needs root to repair it it simply invokes the backup command and read only copies the entire system to / and reboots.
Feasable? Doing this the wrong way? Where is a good place to stick this kind of script?