Help! Programs0 disappears after installing preinit

Posted by: tfabris

Help! Programs0 disappears after installing preinit - 15/01/2003 22:23

I thought that the point of preinit, and of creating the /programs0 partition, was so that you could put stuff on /programs0 and then it would still be there after an upgrade (assuming you also reinstalled preinit after the upgrade).

Well, I did that. I upgraded the software (no whining that it's RC1, please ), reinstalled Hijack, installed preinit, everything went smoothly as expected. However, I can't see the /programs0 partition any more after this. Did it somehow get erased? Is there more I have to do to make it reappear after installing preinint?
Posted by: Daria

Re: Help! Programs0 disappears after installing pr - 15/01/2003 22:28

no whining that it's RC1, please

Ok, instead I'll say "I can investigate if you send me the upgrade"

What's in /etc/fstab on the player?
Posted by: genixia

Re: Help! Programs0 disappears after installing pr - 15/01/2003 22:40

Hmm... I could tell you the answers for a sneak preview

Seriously though...
That was the theory, although I've never tested to see whether /dev/hda2 and /dev/hdc2 get wiped during an upgrade.

However, even assuming that they don't, certain other things will;
/bin/rop
/bin/rwp
The entries in /etc/fstab.
The mountpoints /programs0/ and /programs1/

(The mountpoints are what you 'see', and live on the root parition, that will have be wiped)

The easiest way to recreate these is to use the mkprgpt.sh script. If there is still data on /dev/hda2 (the partition formerly known as /programs0) then it won't touch it.
If not, then it'll at least get us started in the right direction, although the resulting /programs0/preinit.d/ startup script entries will need looking at to suit your set up.

Posted by: tfabris

Re: Help! Programs0 disappears after installing pr - 15/01/2003 22:54

Hmm... I could tell you the answers for a sneak preview

Thanks, running that shell script (after copying it to the player and marking it as executable) solved the problem. Programs0 is back with all its data intact. Any chance that could be added to the script that installs Preinit in the first place?

And in return, my sneak preview of RC1 is: It's pretty much all bug fixes. No mind-blowing new features, no new visuals, nothing of that sort. Just good, solid bug fixes.
Posted by: image

Re: Help! Programs0 disappears after installing pr - 15/01/2003 23:48

this is the script that i use to install preinit.


quote site rw
cd /
quote mkd programs0
quote mkd programs1
cd /bin
bin
put empeg-preinit hijack
quote site chmod 755 hijack
quote site ro
quote site reboot
quit


in programs0, i have the rest of the installation script in the preinit.d, which won't run if it sees a certain file that gets installed.

turned out to be a good method for quick and easy software changes.
Posted by: wfaulk

Re: Help! Programs0 disappears after installing pr - 16/01/2003 07:39

    Programs0 is back with all its data intact. Any chance that could be added to the script that installs Preinit in the first place?
I could, but proper results rely on doing a lot more than just creating that directory, and the way I check to see which directory to use (/etc/preinit.d vs. /programs0/preinit.d) ... wait.

Yes. I can do that. If you don't see it later today, remind me.
Posted by: genixia

Re: Help! Programs0 disappears after installing pr - 16/01/2003 07:44

Bitt - feel free to pull that script and use it as a basis for a a preinit install script. It is /programs0/preinit.d/ aware, and will migrate from /etc/preinit.d/ if necessary.
It would make sense for both to be under a common maintainer...
Posted by: wfaulk

Re: Help! Programs0 disappears after installing pr - 16/01/2003 08:05

I hesitate to go that far, but we'll see.