Updating Gentoo config files


Recommended Posts

I am installing Gentoo and it's going pretty good. Emerge System was great and I hope fstab is correct(it says the boot is /dev/Boot Good?). It says though 8 config files need updating in the /etc/ directory. How does one update these?

Link to comment
https://www.neowin.net/forum/topic/305226-updating-gentoo-config-files/
Share on other sites

etc-update

to update your configs

man etc-update

gives you documentation.

/dev/Boot should be replaced with the partition where your kernel is going, most likely that'll be the same partition as the rest of your system, so just comment the whole line ("#").

Edited by [idkfa]

I guess you are trying to edit your fstab file.

where it says

/dev/BOOT you change it to

/dev/hdb1 an so on...

EDIT: i was late :p

I don't have to do the whole kernel config thing again right after I edit the file since I already compiled the kernel?

No, you don't have to recompile the kernel

Thanks,

I don't have to do the whole kernel config thing again right after I edit the file since I already compiled the kernel?

585729477[/snapback]

No, just make sure bzImage and System.map are where they are supposed to be, e.g. /boot (make sure it is mounted before copying the files there)

Better than etc-update would be dispatch-conf, as it stores backups of your changes to make it easier to revert if you run into problems. To use dispatch-conf, emerge rcs and edit /etc/dispatch-conf.conf to your liking. This is my config:

--- snip ---

#

# dispatch-conf.conf

#

# Directory to archive replaced configs

archive-dir=/etc/config-archive

# Use rcs for storing files in the archive directory?

# (yes or no)

use-rcs=yes

# Diff for display

diff="diff -Nu %s %s"

# Pager for diff display

pager="less --no-init --QUIT-AT-EOF"

# Automerge files comprising only CVS interpolations (e.g. Header or Id)

# (yes or no)

replace-cvs=yes

# Automerge files comprising only whitespace and/or comments

# (yes or no)

replace-wscomments=yes

# Automerge files that the user hasn't modified

# (yes or no)

replace-unmodified=yes

--- snap ---

Better than etc-update would be dispatch-conf, as it stores backups of your changes to make it easier to revert if you run into problems. To use dispatch-conf, emerge rcs and edit /etc/dispatch-conf.conf to your liking. This is my config:

--- snip ---

#

# dispatch-conf.conf

#

# Directory to archive replaced configs

archive-dir=/etc/config-archive

# Use rcs for storing files in the archive directory?

# (yes or no)

use-rcs=yes

# Diff for display

diff="diff -Nu %s %s"

# Pager for diff display

pager="less --no-init --QUIT-AT-EOF"

# Automerge files comprising only CVS interpolations (e.g. Header or Id)

# (yes or no)

replace-cvs=yes

# Automerge files comprising only whitespace and/or comments

# (yes or no)

replace-wscomments=yes

# Automerge files that the user hasn't modified

# (yes or no)

replace-unmodified=yes

--- snap ---

585729791[/snapback]

Thanks for that, pretty useful :)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

  • Recent Achievements

    • Reacting Well
      BizSAR earned a badge
      Reacting Well
    • First Post
      AndreaB earned a badge
      First Post
    • Week One Done
      Huge Trailer earned a badge
      Week One Done
    • Week One Done
      Classifyskilleducation earned a badge
      Week One Done
    • One Month Later
      eurospharma62 earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      579
    2. 2
      +Edouard
      184
    3. 3
      PsYcHoKiLLa
      75
    4. 4
      Michael Scrip
      73
    5. 5
      neufuse
      64
  • Tell a friend

    Love Neowin? Tell a friend!