unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / Atom feed
* mounting a directory in a system container
@ 2020-09-03 11:35 Efraim Flashner
  2020-09-03 11:44 ` Efraim Flashner
  0 siblings, 1 reply; 2+ messages in thread
From: Efraim Flashner @ 2020-09-03 11:35 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 865 bytes --]

I really like the --expose and --share options from guix system vm but I
really would prefer to use a system container (mostly for the shared
resources). I tried adding the directory in the file-systems section of
my OS-config but it just failed to mount. Any suggestions?

(file-systems (cons
               (file-system
                (device "/data")
                (mount-point "/data")
                (type "none")
                (flags '(read-only bind-mount))
                (check? #f)
                (create-mount-point? #t))
               %base-file-systems)

I also added (service udev-service-type) to my services.


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mounting a directory in a system container
  2020-09-03 11:35 mounting a directory in a system container Efraim Flashner
@ 2020-09-03 11:44 ` Efraim Flashner
  0 siblings, 0 replies; 2+ messages in thread
From: Efraim Flashner @ 2020-09-03 11:44 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]

On Thu, Sep 03, 2020 at 02:35:10PM +0300, Efraim Flashner wrote:
> I really like the --expose and --share options from guix system vm but I
> really would prefer to use a system container (mostly for the shared
> resources). I tried adding the directory in the file-systems section of
> my OS-config but it just failed to mount. Any suggestions?
> 
> (file-systems (cons
>                (file-system
>                 (device "/data")
>                 (mount-point "/data")
>                 (type "none")
>                 (flags '(read-only bind-mount))
>                 (check? #f)
>                 (create-mount-point? #t))
>                %base-file-systems)
> 
> I also added (service udev-service-type) to my services.
> 

Thanks everyone for being my rubber ducky! On a whim I checked the
manual and it mentioned --share and --expose for containers also and it
worked for me. It would appear that the 'guix system --help' text isn't
complete.


-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-03 11:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-03 11:35 mounting a directory in a system container Efraim Flashner
2020-09-03 11:44 ` Efraim Flashner

unofficial mirror of guix-devel@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-devel/0 guix-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-devel guix-devel/ https://yhetil.org/guix-devel \
		guix-devel@gnu.org
	public-inbox-index guix-devel

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.devel
	nntp://news.gmane.io/gmane.comp.gnu.guix.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git