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

Re: etc partially deleted

On Tue, Nov 07, 2006 at 02:59:32PM +0000, Steve Kemp wrote:
>   But reinstalling packages that place files in /etc would be a good
>  idea if you didn't have any other backup handy.
>   Something like the following will show you package names that need
>  to be reinstalled:
>  for i in `grep -l ^/etc/ /var/lib/dpkg/info/*.list ` ; do file=${i/.list/}; echo `basename $file`; done
>   (Probably neater solutions exist.)
The problem with that is that it will miss packages which create files
in /etc during postinst, hence they are not the package list.  Also, it
might be better to include a package in the list only if one or more if
its files is missing from /etc, but that could get a bit complicated.

>   Once you've done that check these files at least before rebooting:
>     fstab shadow group groups passwd inittab
Also, don't forget to make sure that /etc/init.d exists and is populated
and that the symlinks in /etc/rc{01,2,3,4,5,6}.d exist.



Roberto C. Sanchez

Reply to: