From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: create a symlink Date: Wed, 03 Apr 2019 00:12:17 -0700 Message-ID: <87mul736lq.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:54746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBa4R-0001mQ-PC for guix-devel@gnu.org; Wed, 03 Apr 2019 03:12:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBa4Q-0002B2-HF for guix-devel@gnu.org; Wed, 03 Apr 2019 03:12:27 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:34393) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBa4Q-0002A1-3b for guix-devel@gnu.org; Wed, 03 Apr 2019 03:12:26 -0400 Received: by mail-pf1-x431.google.com with SMTP id b3so7691746pfd.1 for ; Wed, 03 Apr 2019 00:12:25 -0700 (PDT) In-Reply-To: (Rene's message of "Wed, 27 Mar 2019 19:54:37 -0600") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Rene Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Rene, Rene writes: > On the other hand, in linux there is `--system` argument, how does this > argument work?, Is there a script that uses it?. To test `--system`, I > removed it from my linux system and when loging in with my user it does n= ot > detect any command. > > BOOT_IMAGE=3D/gnu/store/fiqgyafknihbvmz4j62ddb67p79kfcbk-linux-libre-4.19= .13/bzImage --root=3Dmy-root --system=3D/var/guix/profiles/system-87-link -= -load=3D/var/guix/profiles/system-87-link/boot To see how the Linux kernel argument "--system" is used, check out the "boot-time-system" procedure in gnu/build/activation.scm. Ultimately this is used by the activation-service-type, defined in gnu/services.scm. In short, when the system boots, the activation service will atomically flip the "/run/current-system" symlink. and then run all the activation scripts defined by services that extend the activation service. The value of "--system" can be overridden by setting the GUIX_NEW_SYSTEM environment variable; in fact, we do that in the switch-to-system procedure in guix/scripts/system.scm, which is used when running commands like "guix system reconfigure", "guix system roll-back," and "guix system switch-generation". Hopefully that helps! =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlykXNEACgkQ3UCaFdgi Rp0LaA//WuAsemSbuOXncvPjFOTgqfe6TT9R7nyhp3TXhlKHk2wJ+scGfmjTBfgQ 8kxucN6nugFwBBgFrIh0OU3YmlG986G/8fSC+Sd+ZHIqI2E01QiorPzrtsCSjzhN iHkYWan18dXtBUVA/GrWtOjHDnCYZN+Dc7NWwmzjIHMAMAgbzX4vVviEb+wpbxgN qjetDD0W9fDBin1+6AyatSXXOyQoWK0Yf7LCffxT6e5OpoYIXE9g28uQbUO1XpYH KAo8KVNAFFbNa7Y410RydwTqkZIofA5MD13I7Jlup7aPZLSe7wVzySsJkr87T4oC xZ5wzKw9VameC4v7OZAcJIuRfNScHBip18idqe2QcdPs5oRwNZRESAcFL7n8OcEW eAqs7vMcD/MuQVzqWVCdJBFoZI+NTNL7XHCrDoSyTBBE0j+mCfC+LhQ+ySjx6rKp Ojho8r32Dew/lEKSsm0SJ1QV2lAb56EJPALK9Vr1tRbDZxB4VLgKH9GZL18jALGZ 1RI+6seEU4Yea+cZyaFU53SpnMFHsOGx3/ASoCQhIiO4wBJPtPi81NJlkv55eXuV HW37M8o0ArN8nJRsDiZd0+eLzF8tcIpbmjWDymxJ/zoEOKTSntZcJi9jNLTr6ues +idNKgogBo9O3utEIAvYEI+17AhN1A+5g0VzI37MHs5M2D9slKg= =rgjH -----END PGP SIGNATURE----- --=-=-=--