From unknown Sat Aug 16 23:40:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27146 <27146@debbugs.gnu.org> To: bug#27146 <27146@debbugs.gnu.org> Subject: Status: system init: if /etc doesn't exist, create it Reply-To: bug#27146 <27146@debbugs.gnu.org> Date: Sun, 17 Aug 2025 06:40:42 +0000 retitle 27146 system init: if /etc doesn't exist, create it reassign 27146 guix submitter 27146 ng0 severity 27146 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue May 30 09:14:26 2017 Received: (at submit) by debbugs.gnu.org; 30 May 2017 13:14:26 +0000 Received: from localhost ([127.0.0.1]:44277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFgyg-0001w2-LM for submit@debbugs.gnu.org; Tue, 30 May 2017 09:14:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFgye-0001vp-EE for submit@debbugs.gnu.org; Tue, 30 May 2017 09:14:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFgyY-0003t5-EC for submit@debbugs.gnu.org; Tue, 30 May 2017 09:14:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56795) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dFgyY-0003t0-AR for submit@debbugs.gnu.org; Tue, 30 May 2017 09:14:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFgyX-00015j-Cq for bug-guix@gnu.org; Tue, 30 May 2017 09:14:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFgyS-0003pv-Gg for bug-guix@gnu.org; Tue, 30 May 2017 09:14:17 -0400 Received: from aibo.runbox.com ([91.220.196.211]:43872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFgyS-0003ov-9T for bug-guix@gnu.org; Tue, 30 May 2017 09:14:12 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1dFgyP-0008K3-PB for bug-guix@gnu.org; Tue, 30 May 2017 15:14:09 +0200 Received: from [195.12.190.38] (helo=localhost) by mailfront11.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1dFgxw-0004g3-1k for bug-guix@gnu.org; Tue, 30 May 2017 15:13:40 +0200 Date: Tue, 30 May 2017 13:13:29 +0000 From: ng0 To: bug-guix@gnu.org Subject: system init: if /etc doesn't exist, create it Message-ID: <20170530131329.7pmus43ig53ah7lb@abyayala> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nwfvs5itwtqlmsfv" Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --nwfvs5itwtqlmsfv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I had the unfortunate experience of remote fixing a system, and one way I tried to fix my original problem was to remove the /etc directory (this included the content of debian 8 with some alternative changes to the minimal one I did not set up myself). When I rebooted, this is still at activation of the first system generation, I get the repl because the symlink target does not exist (obviously). We should think of such situations, however uncommon they are, and check if /etc exists. If it doesn't exist create it otherwise it is assumed that it exists and for example this symlink creation will work: ssl -> /run/current-system/profile/etc/ssl --=20 ng0 OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 --nwfvs5itwtqlmsfv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlktb/gACgkQ4i+bv+40 hYjE/Q/9HUoSdsd4XM0un7hRY5b5AFUKXqzfUT+jKiL4Tz5GXY97cDB9RAkuZG3l rq4Dm6ur0b0YGsOLFs7IFZmjweSB+ea+2BUkkmtwHPOD2H48Kpimq7yNgMcHYxZQ DrBACgDubLTcynriDtYdehAcUqjt9QAebv4XtyoqfkGR6I1KNY6eWagtrYxt/Baz LLSHq/OJU039pwPhrO9MqmOVwX0Es88a/8uYlo8PneqYMj3ze0zVQAuLD4U4Q1bH xyHcncSm0YziVvJp8uCIJBKSOUkF1oTPBE4RpuaFrg3fTXN3UwiPtKOTH9/wrvGG Z4AHLu+gTW5oaMGyZ4bcmOzag+Y8m8fIB8wKHmrbgFjEziSPdGeTVl2iOq+KuxsM 4LnXud4m/QDdtPwIHumDgXTwJHwtfwxJVfPNeq3SUVqGMZzDtf2DQEcdp661jzxu qH6Xik11KXVCEVLGeQy/RjVSkdZf0Oulgr/UWDZMEO8MHO+N1fQ8QFpPCnqSaI5G ohxFKcO4qi8kJ+rjKTn4MkGw43q/HuCVHvY5lNPWf0huVzFxH9MOWZS1KaYlQa59 3qw/B+Xhis8mEGigdQoV5VgqfeYOGBZy4t87LE6SvRk+AacKzLv2nrnzx84tZPkk 9/ntlkIopun42v8rQAvbETMLK4Tjk3j2ITWpWeDrMzYiM5cO9g4= =rDrT -----END PGP SIGNATURE----- --nwfvs5itwtqlmsfv-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 02 18:37:49 2017 Received: (at 27146-done) by debbugs.gnu.org; 2 Aug 2017 22:37:49 +0000 Received: from localhost ([127.0.0.1]:39052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dd2Gz-0007Cv-C0 for submit@debbugs.gnu.org; Wed, 02 Aug 2017 18:37:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dd2Gx-0007Ci-UH for 27146-done@debbugs.gnu.org; Wed, 02 Aug 2017 18:37:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dd2Gp-00039t-Lg for 27146-done@debbugs.gnu.org; Wed, 02 Aug 2017 18:37:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dd2Gp-00039n-Hy; Wed, 02 Aug 2017 18:37:39 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:47342 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dd2Go-00036J-Ph; Wed, 02 Aug 2017 18:37:39 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: ng0 Subject: Re: bug#27146: system init: if /etc doesn't exist, create it References: <20170530131329.7pmus43ig53ah7lb@abyayala> Date: Thu, 03 Aug 2017 00:37:37 +0200 In-Reply-To: <20170530131329.7pmus43ig53ah7lb@abyayala> (ng0@pragmatique.xyz's message of "Tue, 30 May 2017 13:13:29 +0000") Message-ID: <87d18dr3ym.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27146-done Cc: 27146-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) ng0 skribis: > I had the unfortunate experience of remote fixing a system, > and one way I tried to fix my original problem was to > remove the /etc directory (this included the content of > debian 8 with some alternative changes to the minimal > one I did not set up myself). > When I rebooted, this is still at activation of the first > system generation, I get the repl because the symlink > target does not exist (obviously). > > We should think of such situations, however uncommon they are, > and check if /etc exists. If it doesn't exist create it > otherwise it is assumed that it exists and for example > this symlink creation will work: ssl -> /run/current-system/profile/etc/s= sl Indeed, fixed in 49962b15a1c4e72a55b6cf273806d203906de2ed. Thanks, Ludo=E2=80=99. From unknown Sat Aug 16 23:40:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 31 Aug 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator