Re: [gentoo-user] etc-update and fstab...
On Sunday 03 August 2003 05:36 pm, Ian Tindale wrote: > I'd like some sort of flag system which says to etc-update: > "I've chosen to alter this file myself before, at some point in time" > or > "I've never touched this file in my life before, in fact, I didn't > know it even existed." > > Of course, it's not a foolproof system - it wouldn't catch files that > I have indirectly altered using Webmin, for example, but it would go > some way. chattr +i is your friend. I started doing this awhile back when etc-update decided that one of the 'trvial changes' it was going to make before asking me for input overwrote /usr/lib/sasl2/smtpd.conf on my mail server. Dave -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] etc-update and fstab...
I don't know how feasible it'd be, but I think if the files that are getting updated could be contextually grouped that that could help quite a bit. So instead of having the list of 25 config files, there are sections A B and C where A is something like "system files, be very careful here", B is "startup files, you can safely update all of these", and C "application files, depending on your configuration you may want to be careful here". The trick would be being able to select -5 for group B, then -3 for group C, and then hand walk group A, or some such combination. Anyway, just a thought. If this isn't doable with the current structure, feel free to toss it aside. Sean signature.asc Description: This is a digitally signed message part
Re: [gentoo-user] etc-update and fstab...
I'd like some sort of flag system which says to etc-update: "I've chosen to alter this file myself before, at some point in time" or "I've never touched this file in my life before, in fact, I didn't know it even existed." Of course, it's not a foolproof system - it wouldn't catch files that I have indirectly altered using Webmin, for example, but it would go some way. -- Ian Tindale -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] etc-update and fstab...
On Sunday 03 August 2003 00:15, Jason Stubbs wrote: > Albeit this is only a > minor change, but major changes could take place. If those changes are > made available through portage then there is no need for any user to be > subscribed to a mailing list, scan forums, etc. to be notified of the > change. What are some of the major changes to /etc/fstab that could occur? The only thing I can think of is the renaming of fs types in the kernel (unlikely) but sed would be better suited to do this instead of replacing or actively merging differences. No matter which way you do it through etc-update you'll still have to edit the file manually. Actually, the other thing is the device paths could change, but here again you would have to use sed or edit the file manually because you cannot count on the user's system having the same mount / dump options or mount points. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] etc-update and fstab...
On Sunday 03 August 2003 14:03, Steven Elling wrote: > On Saturday 02 August 2003 15:23, Stephane Brossier wrote: > > Hi, > > > > I emerge some ebuilds yesterday, and then i got a warning that I > > should run etc-update to merge some files. > > > > I used the "-5" option which automaticall merge the files, > > and it seems it deleted some of my config files such > > as /etc/fstab. > > One of my questions about etc-update and portage is, why etc-update / > portage even consider critical files like /etc/fstab for a update? > > It seems to me that files like this should never be considered for upgrades > because they are static in nature, only need to be set up once, and if > changes do need to be made it is because the admin of the box has changed > the hardware configuration. This is not entirely correct. There was an update to /etc/fstab recently which included a minor change. The change was to the /dev/shm line and changed the first section from "tmpfs" to "none". Albeit this is only a minor change, but major changes could take place. If those changes are made available through portage then there is no need for any user to be subscribed to a mailing list, scan forums, etc. to be notified of the change. Regards, Jason -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] etc-update and fstab...
On Saturday 02 August 2003 15:23, Stephane Brossier wrote: > Hi, > > I emerge some ebuilds yesterday, and then i got a warning that I > should run etc-update to merge some files. > > I used the "-5" option which automaticall merge the files, > and it seems it deleted some of my config files such > as /etc/fstab. One of my questions about etc-update and portage is, why etc-update / portage even consider critical files like /etc/fstab for a update? It seems to me that files like this should never be considered for upgrades because they are static in nature, only need to be set up once, and if changes do need to be made it is because the admin of the box has changed the hardware configuration. Reminds me of the saying "To error is human. To really F*** Up you need a computer." -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] etc-update and fstab...
* Mark Knecht <[EMAIL PROTECTED]> [2003-08-02 15:39]: > * On Sat, 2003-08-02 at 13:51, Kees Bergwerf wrote: > > * Op zaterdag 2 augustus 2003 22:23, schreef Stephane Brossier: > > > I used the "-5" option which automaticall merge the files, > > > and it seems it deleted some of my config files such > > > as /etc/fstab. A few points: (*) emerge says "I didn't overwrite your config files in case it would change any important settings - I've left it so you can see whether the changes are good or not" (*) you told etc-update "just blindly overwrite the config files - I don't care" (*) you complain that things don't work any more Think on that for a moment... > This is IMO the most very frustrating part of the way Gentoo works. You mean that it doesn't tie your hands behind your back to stop you shooting yourself in the foot? I've always found it more than satisfactory. etc-update automatically merges any trivial changes and then I use the interactive merge option (3, I think) to make sure my settings don't get overridden. > > I could not find any merge option in env-update :-(. It would be nice if there > > is one, that merges the old config with the new one. Anybody? (*) Select the number of the file (*) Select "3) Interactively merge original with update" (*) Update diff-by-diff how you like Admittedly this bit is the most unintuitive at first as it doesn't tell you what the options are. But if you type "?" it gives you the list: ed: Edit then use both versions, each decorated with a header. eb: Edit then use both versions. el: Edit then use the left version. er: Edit then use the right version. e: Edit a new version. l: Use the left version. r: Use the right version. s: Silently include common lines. v: Verbosely include common lines. q: Quit. Usually a mix of "r" and "l" is all that's needed. (*) Select "1) Replace /etc/fstab with merged file" > > Or you can start with the gentoo life cd, mount the partition and edit fstab. That's how I've got myself out of similar sticky situations. :-) David -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] etc-update and fstab...
On Sat, 2003-08-02 at 13:51, Kees Bergwerf wrote: > Op zaterdag 2 augustus 2003 22:23, schreef Stephane Brossier: > > > I used the "-5" option which automaticall merge the files, > > and it seems it deleted some of my config files such > > as /etc/fstab. > > The result is that I cannot boot gentoo anymore. Pretty bad... This is IMO the most very frustrating part of the way Gentoo works. > > I always use the -3 option. Lots of configfiles I have never touched, so they > can be replaces safely (I think :-) ). I think so also. > When neccesary I go to another console > (ctrl-alt-F2) to make a copy of the file that will be replaced. Yep, same here, but usually I just exit etc-update, do the copy right there, and then start etc-update again. > I could not find any merge option in env-update :-(. It would be nice if there > is one, that merges the old config with the new one. Anybody? The -3 option does have an 'interactive merge' of the old and new files. I think the language is a bit strange, but if you look carefully, it's there. Choose -3 and then look. I think there are 4 choices... > > > Hopefully i can boot a different version of linux and access > > to my config file for gentoo by mounting the partitions. Actually, I would have thought that you could still boot, log in as root and do the mounts by hand, presuming you can find or remember your partition numbers. > > Or you can start with the gentoo life cd, mount the partition and edit fstab. > Make a bootable cd with lilo in case it happens again :-) -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] etc-update and fstab...
On Saturday 02 August 2003 23:51, Kees Bergwerf wrote: > Op zaterdag 2 augustus 2003 22:23, schreef Stephane Brossier: > > I used the "-5" option which automaticall merge the files, > > and it seems it deleted some of my config files such > > as /etc/fstab. > > The result is that I cannot boot gentoo anymore. Pretty bad... > > I always use the -3 option. Lots of configfiles I have never touched, > so they can be replaces safely (I think :-) ). When neccesary I go to > another console (ctrl-alt-F2) to make a copy of the file that will be > replaced. I could not find any merge option in env-update :-(. It > would be nice if there is one, that merges the old config with the > new one. Anybody? I pick the files that I know I have modified ie giving the number of that file instead of the -#. Then etc-update gives me choices of either replace or delete the update or interactive merging of the two files, which i mostly use. After I have done the files I have modified I simply use the -5 to replace the resto of those files. Nowadays those -5 handles files are quite few, becuase portage is automerging so much of the stuff. PS. I do use ~x86 keyword to get the testing stuff in my system. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] etc-update and fstab...
Op zaterdag 2 augustus 2003 22:23, schreef Stephane Brossier: > I used the "-5" option which automaticall merge the files, > and it seems it deleted some of my config files such > as /etc/fstab. > The result is that I cannot boot gentoo anymore. Pretty bad... I always use the -3 option. Lots of configfiles I have never touched, so they can be replaces safely (I think :-) ). When neccesary I go to another console (ctrl-alt-F2) to make a copy of the file that will be replaced. I could not find any merge option in env-update :-(. It would be nice if there is one, that merges the old config with the new one. Anybody? > Hopefully i can boot a different version of linux and access > to my config file for gentoo by mounting the partitions. Or you can start with the gentoo life cd, mount the partition and edit fstab. Make a bootable cd with lilo in case it happens again :-) --Kees -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] etc-update and fstab...
On Saturday 02 August 2003 21:40, Heschi Kreinick wrote: > > forget the space between "noauto, noatime" and all will be well, do this > > on > > > every line. > > [snip] > > > > none/dev/sh tmpfs defaults0 0 > > Also, this should be /dev/shm, not /dev/sh, I believe. Not sure if this > will be a problem, but things could get wierd if you don't fix it. > -Heschi well spotted ;-) -- Tom Wesley -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] etc-update and fstab...
> forget the space between "noauto, noatime" and all will be well, do this on > every line. [snip] > > none/dev/sh tmpfs defaults0 0 Also, this should be /dev/shm, not /dev/sh, I believe. Not sure if this will be a problem, but things could get wierd if you don't fix it. -Heschi -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] etc-update and fstab...
Very carefully. Like any other tool that can affect how you machine runs you should make sure you understand WHAT the tool will do before actually do it. In the case of the -5 option, I would ignore it if I were you. My $.02 worth, =C= * * Cal Evans * http://www.christianperformer.com * Stay plugged in to your audience! * Svein Harald Soleim said: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Saturday 02 August 2003 22:23, Stephane Brossier wrote: >> Hi, >> >> I emerge some ebuilds yesterday, and then i got a warning that I >> should run etc-update to merge some files. >> >> I used the "-5" option which automaticall merge the files, >> and it seems it deleted some of my config files such >> as /etc/fstab. >> I guess i missed something with the use of etc-update. >> How should we use that tool? > -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] etc-update and fstab...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 02 August 2003 22:23, Stephane Brossier wrote: > Hi, > > I emerge some ebuilds yesterday, and then i got a warning that I > should run etc-update to merge some files. > > I used the "-5" option which automaticall merge the files, > and it seems it deleted some of my config files such > as /etc/fstab. > The result is that I cannot boot gentoo anymore. Pretty bad... Hehe I got the same problem. > I guess i missed something with the use of etc-update. > How should we use that tool? can't help you there > Hopefully i can boot a different version of linux and access > to my config file for gentoo by mounting the partitions. > I tried to recreate my /etc/fstab but my system cannot boot. > It complains with the something like: just use the gentoo cd > Mount proc at /proc > The "mount' command failed > line 14 in /etc/fstab is bad > [mnent] line 15 in /etc/fstab is bad > > > Note 1. I commented the line /dev/hda1 but if i uncomment it > i get the same problem. > Note 2. My gentoo is installed on my disk /dev/hdb, but lilo > is on hda1-- hda is the disk where i have my other version > of linux. it worked welll before I got this problem with etc-update. here is my fstab: proc/proc procdefaults0 0 /dev/hdb1 noneswapsw 0 0 /dev/hdb2 bootext3noauto, noatime1 2 /dev/hdb3 / reiserfsnoatime 0 1 /dev/hdb4 /home eiserfs defaults0 0 hope it helps > # > # noatime turns of atimes for increased performance (atimes normally aren't > # needed; notail increases performance of ReiserFS (at the expense of > storage > # efficiency). It's safe to drop the noatime options if you want and to > # switch between notail and tail freely. > > # > > # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. > #/dev/hda1 /boot ext2noauto, noatime 1 2 > /dev/hdb2 noneswapsw 0 0 > /dev/hdb3 / reiserfsnoatime, notail 1 0<- This > is line 14 > /dev/hdb5 /usrreiserfsnoatime, notail 1 0 > /dev/hdb6 /varreiserfsnoatime, notail 1 0 > /dev/hdb7 /home reiserfsnoatime, notail 1 0 > /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0 > > # NOTE: The next line is critical for boot! > none/proc procdefaults0 0 > > # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for > # POSIX shared memory (shm_open, shm_unlink). > # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will > # use almost no memory if not populated with files) > # Adding the following line to /etc/fstab should take care of this: > > none/dev/sh tmpfs defaults0 0 > --- > > > Can the problem be somewhere else-- maybe another config file > has been replaced after I ran etc-update? > > Any ideas? > > Thanks, > > S. > > _ > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. > http://join.msn.com/?page=features/virus > > > -- > [EMAIL PROTECTED] mailing list - -- gnuPG key: ID 915B0745 at http://pgp.mit.edu/ http://www.fribyte.uib.no/~svein/PublicKey.asc Key fingerprint = 0123 B179 0994 F5C7 12D3 F253 E0AA 6A67 915B 0745 Registered Linux User #319622 'The maths is easy,' said Chaos. 'AH? WELL, MATHS', said Death, dismissively. 'GENERALLY I NEVER GET MUCH FURTHER THAN SUBTRACTION.' Svein Harald Soleim -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/LB/g4KpqZ5FbB0URAtCfAJ4sK4XURPi19ouZqV+RIZmCPGTq6ACeNkiq VqxNTw0e9R8HHiQpKrxyR5M= =zsk+ -END PGP SIGNATURE- -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] etc-update and fstab...
On Saturday 02 August 2003 21:23, Stephane Brossier wrote: > # > # noatime turns of atimes for increased performance (atimes normally aren't > # needed; notail increases performance of ReiserFS (at the expense of > storage > # efficiency). It's safe to drop the noatime options if you want and to > # switch between notail and tail freely. > > # > > # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. > #/dev/hda1 /boot ext2noauto, noatime 1 2 forget the space between "noauto, noatime" and all will be well, do this on every line. > /dev/hdb2 noneswapsw 0 0 > /dev/hdb3 / reiserfsnoatime, notail 1 0<- This > is line 14 > /dev/hdb5 /usrreiserfsnoatime, notail 1 0 > /dev/hdb6 /varreiserfsnoatime, notail 1 0 > /dev/hdb7 /home reiserfsnoatime, notail 1 0 > /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0 > > # NOTE: The next line is critical for boot! > none/proc procdefaults0 0 > > # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for > # POSIX shared memory (shm_open, shm_unlink). > # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will > # use almost no memory if not populated with files) > # Adding the following line to /etc/fstab should take care of this: > > none/dev/sh tmpfs defaults0 0 > --- > > > Can the problem be somewhere else-- maybe another config file > has been replaced after I ran etc-update? > > Any ideas? > > Thanks, > > S. -- Tom Wesley -- [EMAIL PROTECTED] mailing list
[gentoo-user] etc-update and fstab...
Hi, I emerge some ebuilds yesterday, and then i got a warning that I should run etc-update to merge some files. I used the "-5" option which automaticall merge the files, and it seems it deleted some of my config files such as /etc/fstab. The result is that I cannot boot gentoo anymore. Pretty bad... I guess i missed something with the use of etc-update. How should we use that tool? Hopefully i can boot a different version of linux and access to my config file for gentoo by mounting the partitions. I tried to recreate my /etc/fstab but my system cannot boot. It complains with the something like: Mount proc at /proc The "mount' command failed line 14 in /etc/fstab is bad [mnent] line 15 in /etc/fstab is bad Note 1. I commented the line /dev/hda1 but if i uncomment it i get the same problem. Note 2. My gentoo is installed on my disk /dev/hdb, but lilo is on hda1-- hda is the disk where i have my other version of linux. it worked welll before I got this problem with etc-update. My /etc/fstab seems OK to me: - :53 azarah Exp $ # # noatime turns of atimes for increased performance (atimes normally aren't # needed; notail increases performance of ReiserFS (at the expense of storage # efficiency). It's safe to drop the noatime options if you want and to # switch between notail and tail freely. # # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. #/dev/hda1 /boot ext2noauto, noatime 1 2 /dev/hdb2 noneswapsw 0 0 /dev/hdb3 / reiserfsnoatime, notail 1 0<- This is line 14 /dev/hdb5 /usrreiserfsnoatime, notail 1 0 /dev/hdb6 /varreiserfsnoatime, notail 1 0 /dev/hdb7 /home reiserfsnoatime, notail 1 0 /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0 # NOTE: The next line is critical for boot! none/proc procdefaults0 0 # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for # POSIX shared memory (shm_open, shm_unlink). # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will # use almost no memory if not populated with files) # Adding the following line to /etc/fstab should take care of this: none/dev/sh tmpfs defaults0 0 --- Can the problem be somewhere else-- maybe another config file has been replaced after I ran etc-update? Any ideas? Thanks, S. _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- [EMAIL PROTECTED] mailing list