guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: create a symlink


From: Rene
Subject: Re: create a symlink
Date: Wed, 27 Mar 2019 19:54:37 -0600

Hello Danny,

Danny Milosavljevic <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]