From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-user+bounces-200889-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3851D15ACFB for <garchives@archives.gentoo.org>; Tue, 18 Apr 2023 04:55:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 873CDE0918; Tue, 18 Apr 2023 04:55:51 +0000 (UTC) Received: from smtp.hosts.co.uk (smtp.hosts.co.uk [85.233.160.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 33673E08C3 for <gentoo-user@lists.gentoo.org>; Tue, 18 Apr 2023 04:55:50 +0000 (UTC) Received: from host86-156-145-149.range86-156.btcentralplus.com ([86.156.145.149] helo=[192.168.1.99]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from <antlists@youngman.org.uk>) id 1podNd-0001hw-Aa for gentoo-user@lists.gentoo.org; Tue, 18 Apr 2023 05:55:49 +0100 Message-ID: <8df87cd6-76f3-d133-6439-8c84d2c43dd0@youngman.org.uk> Date: Tue, 18 Apr 2023 05:55:49 +0100 Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [gentoo-user] Can some config files be automatically protected from etc-update? Content-Language: en-GB To: gentoo-user@lists.gentoo.org References: <ZD2PYHDcNxMrIdxz@waltdnes.org> From: Wols Lists <antlists@youngman.org.uk> In-Reply-To: <ZD2PYHDcNxMrIdxz@waltdnes.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 36a1025c-6465-432e-8027-fb1543e2b3a7 X-Archives-Hash: 00713dea67b928d9a03a547948dec86e 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