NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Poor man's solution to /etc when upgrading system?



On Mon, Nov 02, 2015 at 06:40:29PM +0000, Ottavio Caruso wrote:
> following up from the multiple recent thread regarding best way to
> upgrade the system and etcmanage, I wonder if a quicker and better
> solution could be the following:
> 
> 1) Insert installation cd/usb and boot
> 2) mount the installed system and mv /etc to /etc.old
> 3) Upgrade all sets, including etc
> 4) Copy/restore individual files from /etc.old if/when needed
> 
> Alternatively, I remember (but memory may fail) that old Slackware
> versions came with a script to rename all copies of /etc files with a
> .new suffix.
> 
> Maybe one could write a script to detect if a file exists, and if so,
> install a new file with a .new extension.
> 
> I am not sure if etcmanage already does that.

I skip etc set when upgrading and later on update using "etcupdate".
Worked for me so far.

(What is etcmanage? Different from etcupdate?)

Mayuresh



Home | Main Index | Thread Index | Old Index