From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rene Subject: Re: create a symlink Date: Wed, 27 Mar 2019 19:54:37 -0600 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:57625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9Qsm-0004ZD-VP for guix-devel@gnu.org; Thu, 28 Mar 2019 04:59:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9Qkl-0001gq-62 for guix-devel@gnu.org; Thu, 28 Mar 2019 04:51:19 -0400 In-Reply-To: Danny Milosavljevic's message of "Tue\, 26 Mar 2019 00\:06\:16 +0100 \(2 days\, 2 hours\, 6 minutes ago\)" 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: Danny Milosavljevic Cc: guix-devel@gnu.org Hello Danny, Danny Milosavljevic writes: > > In that case, /hurd could be handled like we handle /run/booted-system . > As I understand Guix, /run/booted-system is created during the boot(activation) process; however, I think that to perform the activation there should already be /hurd (binaries like ext2fs.static,exec..). > Rene could use service extension like > > (service-extension boot-service-type hurd-boot-gexp) > > in order to create the "/hurd" symlink (in hurd-boot-gexp). > > That is, if the Hurd can boot that far (until the root filesystem is mounted). > > In fact, as a hack, we could create a dummy service that does the service > extension and use it for the Hurd. > For now, I did the following: --8<---------------cut here---------------start------------->8--- lrwxr-xr-x 1 root root 37 Mar 28 00:19 bin -> /var/guix/profiles/system/profile/bin drwxr-xr-x 3 root root 4096 Mar 28 00:19 boot drwxr-xr-x 4 root root 4096 Mar 27 17:31 dev drwxr-xr-x 3 root root 4096 Mar 27 18:05 etc drwxr-xr-x 3 root root 4096 Mar 28 00:15 gnu drwxr-xr-x 3 root root 4096 Mar 27 17:31 home lrwxr-xr-x 1 root root 38 Mar 28 00:19 hurd -> /var/guix/profiles/system/profile/hurd drwxr-xr-x 2 root root 4096 Mar 28 00:19 lib lrwxr-xr-x 1 root root 41 Mar 28 00:19 libexec -> /var/guix/profiles/system/profile/libexec drwx------ 2 root root 16384 Mar 28 00:10 lost+found drwxr-xr-x 2 root root 4096 Mar 28 00:19 mnt dr-xr-xr-x 0 root root 0 Dec 31 1969 proc drwxr-xr-x 3 root root 4096 Mar 27 17:35 root drwxr-xr-x 3 root root 4096 Mar 27 17:31 run lrwxr-xr-x 1 root root 38 Mar 28 00:19 sbin -> /var/guix/profiles/system/profile/sbin drwxr-xr-x 3 root root 4096 Mar 28 00:19 servers drwxrwxrwt 2 root root 4096 Mar 27 18:01 tmp drwxr-xr-x 10 root root 4096 Mar 27 17:31 var --8<---------------cut here---------------end--------------->8--- In this way the gnumach kernel can find /hurd and the binaries needed to start the whole system. 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 not detect any command. --8<---------------cut here---------------start------------->8--- BOOT_IMAGE=/gnu/store/fiqgyafknihbvmz4j62ddb67p79kfcbk-linux-libre-4.19.13/bzImage --root=my-root --system=/var/guix/profiles/system-87-link --load=/var/guix/profiles/system-87-link/boot --8<---------------cut here---------------end--------------->8--- Thank you -- Rene