You are not logged in.

#1 2010-02-23 02:07:27

mikecore
Member
Registered: 2007-07-02
Posts: 5

Protecting your configuration files ( grub menu.lst or /etc/fstab )

Understanding that you can "protect" config files from being over written or updated by updating your system. I have a few questions. one I'll assume that for instance /boot/grub/menu.lst is updated every time a kernel update is done or am I wrong and you have to manually edit this file to reflect new kernels? Which would lead to my next point/question unless I was running some crazy dual/triple boot system my menu.lst file should be updated with a system update so no need to protect it. I ran a Gentoo box for a while so I understand protecting config files, What are some common files that get protected ? maybe

Offline

#2 2010-02-23 02:22:29

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Protecting your configuration files ( grub menu.lst or /etc/fstab )

Welcome to the forums.

Arch doesn't overwrite the menu.lst file between upgrades. In fact, Arch doesn't overwrite configuration files as a rule. If you watch pacman's output, you'll notice it saying that it's going to save files with the .pacnew suffix. It's then up to you to compare and merge these files with your configs.

http://wiki.archlinux.org/index.php/Pac … save_Files

Offline

#3 2010-02-23 02:47:36

mikecore
Member
Registered: 2007-07-02
Posts: 5

Re: Protecting your configuration files ( grub menu.lst or /etc/fstab )

Ok, I see its just like the old Gentoo days good to know thank you for the reply

Offline

#4 2010-02-23 03:38:13

joaca_rj
Member
From: Rio de Janeiro, Brazil
Registered: 2009-04-12
Posts: 76

Re: Protecting your configuration files ( grub menu.lst or /etc/fstab )

If you see, the kernel is always vmlinuz26, the most up-to-date. If you keep different kernels, than each one will have a different name...

Offline

#5 2010-02-23 20:45:20

PirateJonno
Forum Fellow
From: New Zealand
Registered: 2009-04-13
Posts: 372

Re: Protecting your configuration files ( grub menu.lst or /etc/fstab )

if you want to protect something manually there's a NoUpgrade option in /etc/pacman.conf. but most packages have built-in support for their config files

Last edited by PirateJonno (2010-02-23 20:45:39)


"You can watch for your administrator to install the latest kernel with watch uname -r" - From the watch man page

Offline

#6 2010-02-23 20:54:03

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Protecting your configuration files ( grub menu.lst or /etc/fstab )

every package has a backup array in its PKGBUILD which lists out the files that pacman will not overwrite (he will instead do the .pacnew thing).  these arrays are very sane and comprehensive but they don't cover every file on your system.

you can verify exactly which files are not to be overwritten by looking at the package's PKGBUILD via ABS (check the wiki for details).  any additional files you'd like to protect should be placed in NoUpgrade as mentioned by PirateJonno.

Offline

Board footer

Powered by FluxBB