From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: bug#27146: system init: if /etc doesn't exist, create it Date: Tue, 30 May 2017 13:13:29 +0000 Message-ID: <20170530131329.7pmus43ig53ah7lb@abyayala> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nwfvs5itwtqlmsfv" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFgzL-0001US-UB for bug-guix@gnu.org; Tue, 30 May 2017 09:15:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFgzG-00042v-W9 for bug-guix@gnu.org; Tue, 30 May 2017 09:15:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:41600) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFgzG-00042p-SV for bug-guix@gnu.org; Tue, 30 May 2017 09:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dFgzG-0001x9-Nh for bug-guix@gnu.org; Tue, 30 May 2017 09:15:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: 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 Content-Disposition: inline List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 27146@debbugs.gnu.org --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--