2.0.2 Upgrade - handling of modded scripts? (Solved)
Posted: Sun 30 Jul 2006, 14:12
I was looking at Barry's note on how 2.0.2 handles modded scripts:
I still don't get it. Perhaps someone can elaborate?
I'm very example-oriented, so let's take a particular file, rc.local. We have the original rc.local in 2.0.1, which has been made invisible by unionfs as my own rc.local in pup-save.3fs is newer. Now I upgrade to 2.0.2. Does the rc.local in that version have an earlier or later date than my modified one?
I'm guessing from Barry's comments that it will have a later date (since an earlier date would cause no problem) - maybe it's the date the CD is burned, or the 2.0.2 build date, who knows - therefore his script /initrd/sbin/init must notice this and move the 2.0.2 version over to /tmp, thus telling unionfs that the version in pup_save.3fs is now the latest one in /etc/rc.d.
OK, I guess that much is clear (assuming I got that right ) but now what happens if rc.local from 2.0.2 has a change in it that actually needs to be there? Does that cause the init script to merge the 2.0.2 version with mine? I can't imagine how to do that reliably in any automated way.
Also I'm wondering how to upgrade. I am currently booting off a 2.0.1 CD with the pup_save on the hard drive. Do I just slap the 2.0.2 CD in there and boot?
I still don't get it. Perhaps someone can elaborate?
I'm very example-oriented, so let's take a particular file, rc.local. We have the original rc.local in 2.0.1, which has been made invisible by unionfs as my own rc.local in pup-save.3fs is newer. Now I upgrade to 2.0.2. Does the rc.local in that version have an earlier or later date than my modified one?
I'm guessing from Barry's comments that it will have a later date (since an earlier date would cause no problem) - maybe it's the date the CD is burned, or the 2.0.2 build date, who knows - therefore his script /initrd/sbin/init must notice this and move the 2.0.2 version over to /tmp, thus telling unionfs that the version in pup_save.3fs is now the latest one in /etc/rc.d.
OK, I guess that much is clear (assuming I got that right ) but now what happens if rc.local from 2.0.2 has a change in it that actually needs to be there? Does that cause the init script to merge the 2.0.2 version with mine? I can't imagine how to do that reliably in any automated way.
Also I'm wondering how to upgrade. I am currently booting off a 2.0.1 CD with the pup_save on the hard drive. Do I just slap the 2.0.2 CD in there and boot?