• [gentoo-user] Can some config files be automatically protected from etc

    From Walter Dnes@21:1/5 to All on Mon Apr 17 20:30:01 2023
    Now that the (no)multilib problem in my latest update has been solved,
    I have a somewhat minor complaint. Can I get etc-update to skip certain
    files? My latest emerge world wanted to "update"...

    1) /etc/hosts (1)
    2) /etc/inittab (1)
    3) /etc/mtab (1)
    4) /etc/conf.d/consolefont (1)
    5) /etc/conf.d/hwclock (1)
    6) /etc/default/grub (1)
    7) /etc/ssh/sshd_config (1)

    ...hosts is critical for networking. consolefont allows me tp use the
    true text console with a readable font, etc, etc. I have my reasons
    for making certain settings, and keeping them that way.

    --
    I've seen things, you people wouldn't believe; Gopher, Netscape with
    frames, the first Browser Wars. Searching for pages with AltaVista,
    pop-up windows self-replicating, trying to uninstall RealPlayer. All
    those moments, will be lost in time like tears in rain... time to die.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to waltdnes@waltdnes.org on Mon Apr 17 21:30:01 2023
    On Mon, Apr 17, 2023 at 11:26 AM Walter Dnes <waltdnes@waltdnes.org> wrote:

    Now that the (no)multilib problem in my latest update has been solved,
    I have a somewhat minor complaint. Can I get etc-update to skip certain files? My latest emerge world wanted to "update"...

    1) /etc/hosts (1)
    2) /etc/inittab (1)
    3) /etc/mtab (1)
    4) /etc/conf.d/consolefont (1)
    5) /etc/conf.d/hwclock (1)
    6) /etc/default/grub (1)
    7) /etc/ssh/sshd_config (1)

    ...hosts is critical for networking. consolefont allows me tp use the
    true text console with a readable font, etc, etc. I have my reasons
    for making certain settings, and keeping them that way.

    In my experience with all distros I go outside the distro for this
    sort of issue. Put a copy somewhere, white a little script that
    does a diff on the files you feel are important enough and run
    a cron job hourly that looks for any differences.

    HTH,
    Mark

    <div dir="ltr"><br><br>On Mon, Apr 17, 2023 at 11:26 AM Walter Dnes &lt;<a href="mailto:waltdnes@waltdnes.org">waltdnes@waltdnes.org</a>&gt; wrote:<br>&gt;<br>&gt;   Now that the (no)multilib problem in my latest update has been solved,<br>&gt; I have
    a somewhat minor complaint.  Can I get etc-update to skip certain<br>&gt; files?  My latest emerge world wanted to &quot;update&quot;...<br>&gt;<br>&gt; 1) /etc/hosts (1)<br>&gt; 2) /etc/inittab (1)<br>&gt; 3) /etc/mtab (1)<br>&gt; 4) /etc/conf.d/
    consolefont (1)<br>&gt; 5) /etc/conf.d/hwclock (1)<br>&gt; 6) /etc/default/grub (1)<br>&gt; 7) /etc/ssh/sshd_config (1)<br>&gt;<br>&gt; ...hosts is critical for networking.  consolefont allows me tp use the<br>&gt; true text console with a readable font,
    etc, etc.  I have my reasons<br>&gt; for making certain settings, and keeping them that way.<br>&gt;<br><div>In my experience with all distros I go outside the distro for this </div><div>sort of issue. Put a copy somewhere, white a little script that 
    </div><div>does a diff on the files you feel are important enough and run</div><div>a cron job hourly that looks for any differences.</div><div><br></div><div>HTH,</div><div>Mark</div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anna@21:1/5 to Walter Dnes on Mon Apr 17 21:50:02 2023
    On Mon, Apr 17, 2023 at 02:26:40PM -0400, Walter Dnes wrote:
    Can I get etc-update to skip certain files?

    I'm not sure about etc-update, but whenever an update triggers a config
    file conflict, I just `dispatch-conf` to see the changes, and then
    either merge, or 'zap new' (aka, delete the new version and use the old
    one). This works pretty well to keep my changes to /etc.

    Another thing that can help is keeping /etc under a vcs like git. You
    can do that manually or using a helper tool like `etckeeper`, which
    automates a lot of the git upkeeping for you.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lee@21:1/5 to markknecht@gmail.com on Mon Apr 17 21:40:01 2023
    Really, etc update has a facility for skipping whatever files you want.

    Lee 😎

    On Mon, Apr 17, 2023, 12:28 PM Mark Knecht <markknecht@gmail.com> wrote:



    On Mon, Apr 17, 2023 at 11:26 AM Walter Dnes <waltdnes@waltdnes.org>
    wrote:

    Now that the (no)multilib problem in my latest update has been solved,
    I have a somewhat minor complaint. Can I get etc-update to skip certain files? My latest emerge world wanted to "update"...

    1) /etc/hosts (1)
    2) /etc/inittab (1)
    3) /etc/mtab (1)
    4) /etc/conf.d/consolefont (1)
    5) /etc/conf.d/hwclock (1)
    6) /etc/default/grub (1)
    7) /etc/ssh/sshd_config (1)

    ...hosts is critical for networking. consolefont allows me tp use the
    true text console with a readable font, etc, etc. I have my reasons
    for making certain settings, and keeping them that way.

    In my experience with all distros I go outside the distro for this
    sort of issue. Put a copy somewhere, white a little script that
    does a diff on the files you feel are important enough and run
    a cron job hourly that looks for any differences.

    HTH,
    Mark


    <div dir="auto">Really, etc update has a facility for skipping whatever files you want. <br><br><div data-smartmail="gmail_signature">Lee 😎</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 17, 2023, 12:28 PM Mark
    Knecht &lt;<a href="mailto:markknecht@gmail.com">markknecht@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><br>On Mon, Apr 17, 2023 at 11:26 AM
    Walter Dnes &lt;<a href="mailto:waltdnes@waltdnes.org" target="_blank" rel="noreferrer">waltdnes@waltdnes.org</a>&gt; wrote:<br>&gt;<br>&gt;   Now that the (no)multilib problem in my latest update has been solved,<br>&gt; I have a somewhat minor
    complaint.  Can I get etc-update to skip certain<br>&gt; files?  My latest emerge world wanted to &quot;update&quot;...<br>&gt;<br>&gt; 1) /etc/hosts (1)<br>&gt; 2) /etc/inittab (1)<br>&gt; 3) /etc/mtab (1)<br>&gt; 4) /etc/conf.d/consolefont (1)<br>&gt;
    5) /etc/conf.d/hwclock (1)<br>&gt; 6) /etc/default/grub (1)<br>&gt; 7) /etc/ssh/sshd_config (1)<br>&gt;<br>&gt; ...hosts is critical for networking.  consolefont allows me tp use the<br>&gt; true text console with a readable font, etc, etc.  I have my
    reasons<br>&gt; for making certain settings, and keeping them that way.<br>&gt;<br><div>In my experience with all distros I go outside the distro for this </div><div>sort of issue. Put a copy somewhere, white a little script that </div><div>does a diff
    on the files you feel are important enough and run</div><div>a cron job hourly that looks for any differences.</div><div><br></div><div>HTH,</div><div>Mark</div></div>
    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael@21:1/5 to All on Mon Apr 17 21:50:02 2023
    On Monday, 17 April 2023 20:28:01 BST Mark Knecht wrote:
    On Mon, Apr 17, 2023 at 11:26 AM Walter Dnes <waltdnes@waltdnes.org> wrote:
    Now that the (no)multilib problem in my latest update has been solved,

    I have a somewhat minor complaint. Can I get etc-update to skip certain files? My latest emerge world wanted to "update"...

    1) /etc/hosts (1)
    2) /etc/inittab (1)
    3) /etc/mtab (1)
    4) /etc/conf.d/consolefont (1)
    5) /etc/conf.d/hwclock (1)
    6) /etc/default/grub (1)
    7) /etc/ssh/sshd_config (1)

    ...hosts is critical for networking. consolefont allows me tp use the
    true text console with a readable font, etc, etc. I have my reasons
    for making certain settings, and keeping them that way.

    In my experience with all distros I go outside the distro for this
    sort of issue. Put a copy somewhere, white a little script that
    does a diff on the files you feel are important enough and run
    a cron job hourly that looks for any differences.

    HTH,
    Mark

    The emerge specific solution is to set the list in your CONFIG_PROTECT variable in /etc/make.conf, as per the example provided here:

    https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/EnvVar

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anna@21:1/5 to All on Mon Apr 17 22:00:01 2023
    The emerge specific solution is to set the list in your CONFIG_PROTECT variable in /etc/make.conf

    Afaik CONFIG_PROTECT includes the whole of /etc by default (Unless you
    poke holes in it with CONFIG_PROTECT_MASK, or overriting CONFIG_PROTECT).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to ny6p01@gmail.com on Mon Apr 17 22:40:01 2023
    On Mon, Apr 17, 2023 at 12:40 PM Lee <ny6p01@gmail.com> wrote:

    Really, etc update has a facility for skipping whatever files you want.

    Lee
    <SNIP>
    In my experience with all distros I go outside the distro for this
    sort of issue. Put a copy somewhere, white a little script that
    does a diff on the files you feel are important enough and run
    a cron job hourly that looks for any differences.

    HTH,
    Mark


    Absolutely really. It's not only about whether that option works today
    but whether it keeps working in the future, assuming it really works
    at all.

    There's also the case of the machine going down, a disk corrupting,
    etc. and how long it takes to find the notebook where supposedly
    we had the notes about how we set things up.

    And what about other machines using other distros?

    I'm only offering what I do. I personally wouldn't run the cron job
    but for all my machines part of my backups is a big list of config
    files kept elsewhere on the network so that I don't have to
    reconstruct that sort of config stuff. Add to Walter's list other
    things like NFS exports and for old people like me it's just
    easier to be prepared.

    Just my POV.

    <div dir="ltr"><br><br>On Mon, Apr 17, 2023 at 12:40 PM Lee &lt;<a href="mailto:ny6p01@gmail.com">ny6p01@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Really, etc update has a facility for skipping whatever files you want. <br>&gt;<br>&gt; Lee<br>&lt;SNIP&
    gt;<br>&gt;&gt; In my experience with all distros I go outside the distro for this <br>&gt;&gt; sort of issue. Put a copy somewhere, white a little script that <br>&gt;&gt; does a diff on the files you feel are important enough and run<br>&gt;&gt; a cron
    job hourly that looks for any differences.<br>&gt;&gt;<br>&gt;&gt; HTH,<br>&gt;&gt; Mark<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_
    quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
    </blockquote></div>
    </blockquote></div><div><br></div><div>Absolutely really. It&#39;s not only about whether that option works today </div><div>but whether it keeps working in the future, assuming it really works</div><div>at all. </div><div><br></div><div>There&#39;s
    also the case of the machine going down, a disk corrupting, </div><div>etc. and how long it takes to find the notebook where supposedly </div><div>we had the notes about how we set things up. </div><div><br></div><div>And what about other machines
    using other distros? </div><div><br></div><div>I&#39;m only offering what I do. I personally wouldn&#39;t run the cron job</div><div>but for all my machines part of my backups is a big list of config</div><div>files kept elsewhere on the network so that
    I don&#39;t have to </div><div>reconstruct that sort of config stuff. Add to Walter&#39;s list other</div><div>things like NFS exports and for old people like me it&#39;s just</div><div>easier to be prepared.</div><div><br></div><div>Just my POV. </div>
    </div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Frank Steinmetzger@21:1/5 to All on Mon Apr 17 23:10:01 2023
    Am Mon, Apr 17, 2023 at 12:28:01PM -0700 schrieb Mark Knecht:
    On Mon, Apr 17, 2023 at 11:26 AM Walter Dnes <waltdnes@waltdnes.org> wrote:

    Now that the (no)multilib problem in my latest update has been solved,
    I have a somewhat minor complaint. Can I get etc-update to skip certain files? My latest emerge world wanted to "update"...

    1) /etc/hosts (1)
    2) /etc/inittab (1)
    3) /etc/mtab (1)
    4) /etc/conf.d/consolefont (1)
    5) /etc/conf.d/hwclock (1)
    6) /etc/default/grub (1)
    7) /etc/ssh/sshd_config (1)

    ...hosts is critical for networking. consolefont allows me tp use the
    true text console with a readable font, etc, etc. I have my reasons
    for making certain settings, and keeping them that way.

    In my experience with all distros I go outside the distro for this
    sort of issue. Put a copy somewhere, white a little script that
    does a diff on the files you feel are important enough and run
    a cron job hourly that looks for any differences.

    Isn’t that exactly what etc-update does? IIRC (my last Gentoo update was a few months ago), I select one of the files, and it lets me view a diff in
    vim (configurable) of my old version and the new one from the update. Then I can either merge the two files right in vim, or elect to keep the new or old file entirely.

    --
    Grüße | Greetings | Qapla’
    Please do not share anything from, with or about me on any social network.

    “I want to be free!” said the string puppet and cut its strings.

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmQ9tTYACgkQizG+tUDU MMo5Ng/+NqUi/NJmsZ3aOnPfpUv8f7ChbjmUrcqX5hs5eFC1HUqy/1TfmU7KTFzm vgF2b7A1EIFp0WLdb3isGeh4CVj88Kf/KVKZmDkclWuHvmImiOiKfBtsTom/G/38 2/rJLN153tnU6XGtnuVkebVIA3SqRf1n4oeDNozAsGOlaadEoTKzoQuyCzgvFtDF 1lCRdTMeObjylHdsvJ5GJWWB0HBScOnDDK/o8yxirbHJ2IpQrS3o7ZT2IRLeQTM7 /kX5TZnrYdezJthll5rHGulzKhUbPP8d0odIbHua6bqcpEdgXAgmq6NwD9kbKGIF Oz9QxtaGbomiAzYogvSDrbOFHJe92acLU3UjDFM4DX52LMb/j9Z8z67L6YZOrTiT m4f8LJQ7BP2rKL7vwcATfhgjYE1NLBkgNvgtVEelwOQOFINU9y9k3jnja4poBpA4 2OPZiu4nqXI2ADo9Pbo7Gw9jkUVhTVSbeWRh7MopVCR1LDRq7yZ2pREHdeBlhr3A fRbzAJizhh8qTg8hjLnU2AydX1zxeDxhdSLNcR1TViNedUlJJi6drKTwL4q1l1aD ybq3laUItfk6IePw9zdX/XCpcDG1jMBANOml5PGhcpWvL+2EkAX6y42XytvmLvtZ j9gPOmuV4aZolrlaYGkQlKNXQ7j09/s1ImYENPQSuTvILzNyOW8=
    =mWFz
    -----END PGP SIGN
  • From Jude DaShiell@21:1/5 to Frank Steinmetzger on Mon Apr 17 23:40:01 2023
    If that works and I were to use chattr +i it might be useful to make a
    list of what's now immuteable so later adjustments could be made when appropriate.


    -- Jude <jdashiel at panix dot com> "There are four boxes to be used in
    defense of liberty: soap, ballot, jury, and ammo. Please use in that
    order." Ed Howdershelt 1940.

    On Mon, 17 Apr 2023, Frank Steinmetzger wrote:

    Am Mon, Apr 17, 2023 at 12:28:01PM -0700 schrieb Mark Knecht:
    On Mon, Apr 17, 2023 at 11:26 AM Walter Dnes <waltdnes@waltdnes.org> wrote:

    Now that the (no)multilib problem in my latest update has been solved, I have a somewhat minor complaint. Can I get etc-update to skip certain files? My latest emerge world wanted to "update"...

    1) /etc/hosts (1)
    2) /etc/inittab (1)
    3) /etc/mtab (1)
    4) /etc/conf.d/consolefont (1)
    5) /etc/conf.d/hwclock (1)
    6) /etc/default/grub (1)
    7) /etc/ssh/sshd_config (1)

    ...hosts is critical for networking. consolefont allows me tp use the true text console with a readable font, etc, etc. I have my reasons
    for making certain settings, and keeping them that way.

    In my experience with all distros I go outside the distro for this
    sort of issue. Put a copy somewhere, white a little script that
    does a diff on the files you feel are important enough and run
    a cron job hourly that looks for any differences.

    Isn’t that exactly what etc-update does? IIRC (my last Gentoo update was a few months ago), I select one of the files, and it lets me view a diff in
    vim (configurable) of my old version and the new one from the update. Then I can either merge the two files right in vim, or elect to keep the new or old file entirely.



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to Warp_7@gmx.de on Mon Apr 17 23:30:02 2023
    On Mon, Apr 17, 2023 at 2:08 PM Frank Steinmetzger <Warp_7@gmx.de> wrote:

    Am Mon, Apr 17, 2023 at 12:28:01PM -0700 schrieb Mark Knecht:
    <SNIP>
    In my experience with all distros I go outside the distro for this
    sort of issue. Put a copy somewhere, white a little script that
    does a diff on the files you feel are important enough and run
    a cron job hourly that looks for any differences.

    Isn’t that exactly what etc-update does? IIRC (my last Gentoo update was a few months ago), I select one of the files, and it lets me view a diff in
    vim (configurable) of my old version and the new one from the update.
    Then I
    can either merge the two files right in vim, or elect to keep the new or
    old
    file entirely.


    It might do most of that, if it's working. If no bugs have been introduced since the last time you used it, if the user has their eyes open and
    doesn't make a mistake.

    I do not know if it has an option to keep a copy somewhere safe, and
    again, I run multiple distros and like a solution that, for me, works on
    all distros.

    To each his own.

    ;-) (And shame on you for being 'a few months' behind on your updates) ;-)

    <div dir="ltr"><br><br>On Mon, Apr 17, 2023 at 2:08 PM Frank Steinmetzger &lt;<a href="mailto:Warp_7@gmx.de">Warp_7@gmx.de</a>&gt; wrote:<br>&gt;<br>&gt; Am Mon, Apr 17, 2023 at 12:28:01PM -0700 schrieb Mark Knecht:<br>&gt; &lt;SNIP&gt;<br>&gt; &gt; In
    my experience with all distros I go outside the distro for this<br>&gt; &gt; sort of issue. Put a copy somewhere, white a little script that<br>&gt; &gt; does a diff on the files you feel are important enough and run<br>&gt; &gt; a cron job hourly that
    looks for any differences.<br>&gt;<br>&gt; Isn’t that exactly what etc-update does? IIRC (my last Gentoo update was a<br>&gt; few months ago), I select one of the files, and it lets me view a diff in<br>&gt; vim (configurable) of my old version and the
    new one from the update. Then I<br>&gt; can either merge the two files right in vim, or elect to keep the new or old<br>&gt; file entirely.<br>&gt;<div><br><div>It might do most of that, if it&#39;s working. If no bugs have been introduced</div><div>
    since the last time you used it, if the user has their eyes open and </div><div>doesn&#39;t make a mistake.  </div><div><br></div><div>I do not know if it has an option to keep a copy somewhere safe, and </div><div>again, I run multiple distros and
    like a solution that, for me, works on</div><div>all distros. </div><div><br></div><div>To each his own. </div><div><br></div><div>;-) (And shame on you for being &#39;a few months&#39; behind on your updates) ;-)</div><div><br></div></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Frank Steinmetzger@21:1/5 to All on Tue Apr 18 00:40:01 2023
    Am Mon, Apr 17, 2023 at 02:27:53PM -0700 schrieb Mark Knecht:

    ;-) (And shame on you for being 'a few months' behind on your updates) ;-)

    It’s my NAS (basically my media library), which only runs every few months due to its server hardware’s high power draw.

    --
    Grüße | Greetings | Qapla’
    Please do not share anything from, with or about me on any social network.

    My computer waits faster!

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmQ9ykEACgkQizG+tUDU MMogSw//cp3XLmZy+V/rtfaUmT8lkqq8407VIKrRcGamrJJxlZ61Aqf7H/XWw0dX M4zbHbW74G8nB0K6XcpWbKkxx2XbML/Gay9o2zwtPkJpxj6EpWzepjNj5bsj6UuM arMSteveCEChCSOb+SBGYVh6wuTbHnF+NdfvLjdGjsiKJmyLesFtpdC5oU6eurD+ iHo86SDRP6q4OEWiADPgxM0GQylr1YK1xh/EmvuclTN62qEBoFHasfL7N0eWibey CHA9VISeFqdtJeoiI7tFdzxJZVtmFDS/ic9Mp2tghe6K7WNGzoOkcDsSB5RTba+H DFGw1F4fRI2e96eDo/k8FYS17c/O5rCHuu/oAtC5YL8mTGC64aLQEd2sGVA4oacn AI6VcWVBlzfgZOQiEy5xS8ppGObSsgBTWqz5Cp/NAS6FeKPC2mm8MCjYuzlE+4x4 nojmTWqRc6MrOde9f2QzV6My6984GkoIn5qerUMXqy7upd8NysJ4tmUaahWgeo5i gam+zOa25XbQv3EtOsLymwwVP/qZLHAWmdU9/9OouSTlUz688Si9egA4k0zisw57 OlV1CckX9n88qlr+1rKqL9DfBHQjByAUYz/vqDPf61oQfoHI7CRBW9mjHgWDoWwZ FAhCEdqAMFbZlnQQ7W3gUBLopjkqki8ufVIy1W/K9wieo+VEMnI=
    =kXmh
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    *
  • From Wols Lists@21:1/5 to Walter Dnes on Tue Apr 18 07:00:01 2023
    On 17/04/2023 19:26, Walter Dnes wrote:
    Now that the (no)multilib problem in my latest update has been solved,
    I have a somewhat minor complaint. Can I get etc-update to skip certain files? My latest emerge world wanted to "update"...

    1) /etc/hosts (1)
    2) /etc/inittab (1)
    3) /etc/mtab (1)
    4) /etc/conf.d/consolefont (1)
    5) /etc/conf.d/hwclock (1)
    6) /etc/default/grub (1)
    7) /etc/ssh/sshd_config (1)

    ...hosts is critical for networking. consolefont allows me tp use the
    true text console with a readable font, etc, etc. I have my reasons
    for making certain settings, and keeping them that way.

    I had it want to update grub. Which would have utterly borked my system
    the moment I updated my kernel.

    Okay, the problem is where you mix user and system config in the same
    file, but this would have deleted lvm and mdadm from my boot config,
    rendering any kernel unbootable. :-(

    Like it tried to update postfix many moons ago and would have destroued
    my mail config ...

    Surely there's some way of fixing this ...

    Cheers,
    Wol

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Neil Bothwick@21:1/5 to Wols Lists on Tue Apr 18 09:50:01 2023
    On Tue, 18 Apr 2023 05:55:49 +0100, Wols Lists wrote:

    On 17/04/2023 19:26, Walter Dnes wrote:
    Now that the (no)multilib problem in my latest update has been
    solved, I have a somewhat minor complaint. Can I get etc-update to
    skip certain files? My latest emerge world wanted to "update"...

    1) /etc/hosts (1)
    2) /etc/inittab (1)
    3) /etc/mtab (1)
    4) /etc/conf.d/consolefont (1)
    5) /etc/conf.d/hwclock (1)
    6) /etc/default/grub (1)
    7) /etc/ssh/sshd_config (1)

    ...hosts is critical for networking. consolefont allows me tp use the
    true text console with a readable font, etc, etc. I have my reasons
    for making certain settings, and keeping them that way.

    I had it want to update grub. Which would have utterly borked my system
    the moment I updated my kernel.

    Okay, the problem is where you mix user and system config in the same
    file, but this would have deleted lvm and mdadm from my boot config, rendering any kernel unbootable. :-(

    Like it tried to update postfix many moons ago and would have destroued
    my mail config ...

    Surely there's some way of fixing this ...

    You could have a post-install hook in /etc/portage/env/$CAT/$PKG for each
    of the affected files, something like

    post_pkg_postinst() {
    rm -f /etc/._cfg0000_hosts
    }

    You'll need to check the syntax as it's a while since I've used this.


    --
    Neil Bothwick

    Life's a cache, and then you flush...

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEEGfLZTV7dXdQXh/dDdCdyyQfftocFAmQ+SoEACgkQdCdyyQff todjkxAArid3lLz8c8/WI0taZeTufanauLyruyl6D7of9l43VPJnF91ADvs41A1p fo38FYrmX3VDVEYr4qaCqJ4d4KWiFuNepJxklPkBto1WUWe4xp6jomBa6JXpxrQi vyI9ewErKBNAVJ8sawMwfDqyU9xTLHA45m69f/7eTj7jFH0lYW+j6qyt11dkBcHl pe9pNejsQKQiE5OLcZpbLCSpfW8Lj6/yuFe2CrHXejdUk/rlLf2ysJZCYcWa2BsB XFFjzEwSG1Q85+jhta+/bugdXSax2JSnCQ2NrRsv8lCIo19qrd4QH6XnzTyEpoKZ zbKDBDGJ7n4VFbfF9z4tkuzEz0LqDZQuw3hpOnp3fkyIsw0R3ikifqc/tFZ/Lr2a RjiPz3HLtwNQkcdV9fnjShwG9gsYNqYYKCDkjIuJgIpNSmlj0cFC4HseoZpiOJpc 3F4qipH/LDtw/5RjbujyWasmuIjwXCFcfhIZA3Qwa+4nFOjsAn5MFt3h3NT84vUS HTnhr8bg2u1xZR2BQYP2AlwEz6Rs50ZUSkXMf+fuy8LChC5dYPdmBPg/QAfXLuob upLeG4AqPkYtrc4ECIVBJP7MS8fOIkg54QZcIocCu3VyTy4E3D3qFcK+hvYY2WxS PKb/r+K/iSGLZCN4RsxQ2DIP1g+BDzLIqr1uBT7gOuKD6qXIThQ=
    =vUaS
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)