PDA

View Full Version : 2.5.2 update question


DaKillaWilla
07-01-2002, 05:30 PM
Could such a file exist??

A file that runs in the background and senses a major change to your system such as a new version update. Then see's that bash is gone, and in return restores bash on your system without having to go through pulling the hard drive out to adjust the rc.sysinit.

My main questions are:

Can this be done???

Has it been done???

Is it even possible???

el jefe
07-01-2002, 05:52 PM
Well, since when upgrades occur they are done on the other root partition, it'd be hard to do. It downloads the code and then is pending restart, at which time it unpacks and installs everything.
It may be possible to edit the files that it is going to install (they are loaded into MFS after they are downloaded) before it reboots and then it will install with your modifications, although I don't know how to do this.

AlphaWolf
07-02-2002, 05:30 PM
The best I think you could do is write a script that detects high profile changes to /SwSystem/ACTIVE, but killing the initrd upon reboot wouldn't exactly be easy. Especialy if tivo did a prom update, it would just md5sum the kernel and see that its been modified.

BubbleLamp
07-02-2002, 05:48 PM
I repeat my question, what if there was no alternate partition? What does the Tivo software do in that case? If you selectively hose the partition table, or just change the type of file system on the inactive partition, what will it do? Inquiring minds want to know!