Re: Value in adding Shepherd requirements to file-systems entries?

2024-07-19 Thread Development of GNU Guix and the GNU System distribution.
-only)) ;; (options "proto=tcp6,timeo=300,nolock") (check? #f) (mount-may-fail? #t) (create-mount-point? #t)) --8<---cut here---end--->8--- I can use the the /etc/fstab manually with mount /acct > You could try invoking mount-file

Re: Value in adding Shepherd requirements to file-systems entries?

2024-06-07 Thread Richard Sent
Felix Lechner writes: > > You could try invoking mount-file-system from (gnu build file-systems) > > directly to try and narrow down what exactly is breaking. > How would I go about doing that, please? 1. $ guix repl 2. Import the module with ,use (gnu build file-systems) 3. C

Re: Value in adding Shepherd requirements to file-systems entries?

2024-06-07 Thread Development of GNU Guix and the GNU System distribution.
Hi Richard, On Fri, Jun 07 2024, Richard Sent wrote: > I did have to reboot So did I. In fact, my issue is now that the file system fails to mount on boot. > You could try invoking mount-file-system from (gnu build file-systems) > directly to try and narrow down what exactly is break

Re: Value in adding Shepherd requirements to file-systems entries?

2024-06-07 Thread Richard Sent
l work with my CIFS/SMB share, so I suspect this is an NFS-specific problem. Curiously I did have to reboot after adding the file-system entry, but it works after that. You could try invoking mount-file-system from (gnu build file-systems) directly to try and narrow down what exactly is breaki

Re: Value in adding Shepherd requirements to file-systems entries?

2024-06-07 Thread Development of GNU Guix and the GNU System distribution.
Hi Richard, On Tue, Apr 23 2024, Richard Sent wrote: > I submitted a patch for what I'm thinking at > https://issues.guix.gnu.org/70542. I believe this stopped working for my NFS setup. Kind regards Felix

Re: Value in adding Shepherd requirements to file-systems entries?

2024-05-02 Thread Richard Sent
Dependencies adjusts the order of mounting file-systems /before/ provisioning 'file-systems, while requirements actually delays mounting a file system until Shepherd services have started (by removing it as a requirement for provisioning 'file-systems). I think this distinction in behavior s

Re: Value in adding Shepherd requirements to file-systems entries?

2024-05-02 Thread Ludovic Courtès
Hi! Richard Sent skribis: > Before hacking away at this myself, I'd like to get other people's > thoughts on the best way to proceed. Do others agree that (file-system) > entries should support networked devices? Should this be transparent > depending on the type, or require explicit configurati

Re: Value in adding Shepherd requirements to file-systems entries?

2024-04-26 Thread Attila Lendvai
> P.S. The code above should read (requirements ...) in the plural. inside shepherd there's a bit of anomaly, but it's called requirement in the public API, and also in the guix side of the config; i.e. it's not plural. -- • attila lendvai • PGP: 963F 5D5F 45C7 DFCD 0A39 -- “Moderation in temp

Re: Value in adding Shepherd requirements to file-systems entries?

2024-04-26 Thread Development of GNU Guix and the GNU System distribution.
Hi Richard, On Tue, Apr 23 2024, Richard Sent wrote: > I submitted a patch [..] at https://issues.guix.gnu.org/70542. If this > winds up merged I believe your code could be rewritten [as] > > --8<---cut here---start->8--- > (file-system >(device "wallace-se

Re: Value in adding Shepherd requirements to file-systems entries?

2024-04-23 Thread Richard Sent
n operating-system file-systems field and reusing the existing code of file-system-shepherd-service in (gnu services base) and mount-file-system in (gnu build file-system). My comment on NFS support is more about how mount-file-system supports mounting NFS file-system records, but the existin

Re: Value in adding Shepherd requirements to file-systems entries?

2024-04-22 Thread Development of GNU Guix and the GNU System distribution.
Hi Richard, On Mon, Apr 22 2024, Richard Sent wrote: > NFS is allegedly supported Someone once gave me this service [1] to mount a file-system declared with (mount? #f). [2] It's been working ever since. Kind regards Felix [1] https://codeberg.org/lechner/system-config/src/commit/0131082ff0eb

Value in adding Shepherd requirements to file-systems entries?

2024-04-22 Thread Richard Sent
Hi Guix! I wanted to ask the Guix community for their thoughts on improving the support for adding networked file systems to an operating-system declaration. For some context, I started tackling adding CIFS support to file-system declarations, but I've hit a snag. CIFS is a networked file s

Re: Plan for NFS (was: Herding file-systems)

2023-09-26 Thread Liliana Marie Prikler
s well. Sure, why not? > This can be done by having the `dependency->shepherd-service-name' > in (gnu services base) also accept matching against a symbol object. > >   2. Allow excluding some file-system objects from being dependencies > of the `file-systems' shepherd

Plan for NFS (was: Herding file-systems)

2023-09-26 Thread Bruno Victal
t matching against a symbol object. 2. Allow excluding some file-system objects from being dependencies of the `file-systems' shepherd service. This is to avoid a cycle scenario where a (NFS) mount requires 'networking (that depends on 'file-systems) which in turn requires a

Re: Herding file-systems

2023-03-25 Thread Liliana Marie Prikler
le-system record type > = > > Guix currently envisions file systems to depend only on other file > systems, but that restriction should perhaps be relaxed. In some > cases, it may make sense to wait for any (shepherd) service,

Re: Herding file-systems

2023-03-10 Thread Maxim Cournoyer
of file-system record type > === > > Guix currently envisions file systems to depend only on other file > systems, but that restriction should perhaps be relaxed. In some > cases, it may make sense to wait for any (shepherd) service, > i.e. not just for one

Herding file-systems

2023-03-08 Thread Bruno Victal
envisions file systems to depend only on other file systems, but that restriction should perhaps be relaxed. In some cases, it may make sense to wait for any (shepherd) service, i.e. not just for ones that mount directories. These could be used to place a dependency on kerberos, etc. A prominent

Re: 01/03: build: file-systems: Add luks to %partition-uuid-readers.

2018-12-08 Thread Ludovic Courtès
Hello Mathieu! Mathieu Othacehe skribis: >> Thus I think it’s probably best to keep LUKS UUID lookup separate from >> file system lookup. >> >> WDYT? Are there use cases in the installer where this is problematic? > > It makes sense and there are no particular need, so I reverted this > commit

Re: 01/03: build: file-systems: Add luks to %partition-uuid-readers.

2018-12-08 Thread Mathieu Othacehe
Hey Ludo! > Thus I think it’s probably best to keep LUKS UUID lookup separate from > file system lookup. > > WDYT? Are there use cases in the installer where this is problematic? It makes sense and there are no particular need, so I reverted this commit and replaced it by 488a0a8d6120ead3499ba

Re: 01/03: build: file-systems: Add luks to %partition-uuid-readers.

2018-12-08 Thread Ludovic Courtès
Hello! guix-comm...@gnu.org skribis: > commit fa358c557f130f393d8c7400ffa954f75112d09e > Author: Mathieu Othacehe > Date: Fri Dec 7 14:03:06 2018 +0900 > > build: file-systems: Add luks to %partition-uuid-readers. > > * gnu/build/file-systems.scm (%partiti

Re: [PATCH 1/8] file-systems: Add FAT32 support.

2017-03-01 Thread Danny Milosavljevic
Applied as b0377e58c30c399f9844a1607d677e525bb1d05f to master.

[PATCH 1/8] file-systems: Add FAT32 support.

2017-02-14 Thread David Craven
#f (list->string (map integer->char bytes) +(define null-terminated-latin1->string + (cut latin1->string <> zero?)) + ;;; ;;; Ext2 file systems. @@ -194,6 +196,51 @@ if DEVICE does not contain a btrfs file system." ;;; +;;; FAT32 file systems. +;;;

Re: [PATCH 1/4] file-systems: Refactor check-file-system.

2017-01-10 Thread Ludovic Courtès
David Craven skribis: >> What’s wrong with using “fsck.extN” like we did before? > > fsck.extN is exactly the same binary as e2fsck when compiled > statically. This reduces the e2fsck/static package to a third of it's > previous size. Oh I see. I fixed the crux of the problem (hard links) in co

Re: [PATCH 1/4] file-systems: Refactor check-file-system.

2017-01-10 Thread David Craven
> What’s wrong with using “fsck.extN” like we did before? fsck.extN is exactly the same binary as e2fsck when compiled statically. This reduces the e2fsck/static package to a third of it's previous size. David

Re: [PATCH 2/4] file-systems: Refactor file-system predicates.

2017-01-09 Thread Ludovic Courtès
David Craven skribis: > Updated patch, these patches now pass the basic, installed-os, > btrfs-root-os and encrypted-root-os tests. > > [PATCH] file-systems: Refactor file-system predicates. > > * gnu/build/file-systems.scm (partition-field-reader, > read-partition-fi

Re: [PATCH 1/4] file-systems: Refactor check-file-system.

2017-01-09 Thread Ludovic Courtès
David Craven skribis: > Also requires this patch: > > [PATCH] gnu: e2fsck/static: Only copy e2fsck. > > * gnu/packages/linux.scm (e2fsck/static)[arguments]: Only copy e2fsck. > [synopsis, description]: Adjust accordingly. Same question as in my other message, but otherwise no objections. :-)

Re: [PATCH 1/4] file-systems: Refactor check-file-system.

2017-01-09 Thread Ludovic Courtès
Hi! David Craven skribis: > * gnu/build/file-systems.scm (check-file-system): Use file-system type > specific checker. > (check-ext2-file-system): New variable. [...] > +(define (check-ext2-file-system device) > + "Return the health of an ext2 file system on DEVICE." > + (match (status:e

Re: [PATCH 2/4] file-systems: Refactor file-system predicates.

2017-01-08 Thread David Craven
Updated patch, these patches now pass the basic, installed-os, btrfs-root-os and encrypted-root-os tests. [PATCH] file-systems: Refactor file-system predicates. * gnu/build/file-systems.scm (partition-field-reader, read-partition-field, %partition-label-readers, %partition-uuid-readers, read

Re: [PATCH 1/4] file-systems: Refactor check-file-system.

2017-01-08 Thread David Craven
Also requires this patch: [PATCH] gnu: e2fsck/static: Only copy e2fsck. * gnu/packages/linux.scm (e2fsck/static)[arguments]: Only copy e2fsck. [synopsis, description]: Adjust accordingly. --- gnu/packages/linux.scm | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-)

Re: 01/01: file-systems: Refactor file system detection logic.

2017-01-08 Thread David Craven
Nope, everything seems good - the bug report is definitely due to not updating guix since 4. Dez.

Re: 01/01: file-systems: Refactor file system detection logic.

2017-01-08 Thread David Craven
the basic test does not exercise the file-system detection logic

[PATCH 1/4] file-systems: Refactor check-file-system.

2017-01-08 Thread David Craven
* gnu/build/file-systems.scm (check-file-system): Use file-system type specific checker. (check-ext2-file-system): New variable. --- gnu/build/file-systems.scm | 55 +- 1 file changed, 35 insertions(+), 20 deletions(-) diff --git a/gnu/build/file-sy

[PATCH 2/4] file-systems: Refactor file-system predicates.

2017-01-08 Thread David Craven
* gnu/build/file-systems.scm (partition-field-reader, read-partition-field, %partition-label-readers, %partition-uuid-readers, read-partition-label, read-partition-uuid): New variables. (partition-predicate, partition-label-predicate, partition-uuid-predicate, luks-partition-uuid-predicat

Re: [PATCH 3/6] file-systems: Suppress fsck status completion bar.

2016-12-18 Thread Ludovic Courtès
Marius Bakke skribis: > Danny Milosavljevic writes: > >> Hi, >> >> why not just use "fsck -t xxx" instead? It will filter out "-C" for >> fscks which don't support it. > > I think pending a proper solution for handling fsck commands, offloading > it to util-linux is a decent compromise. Ludo, WD

Re: [PATCH 3/6] file-systems: Suppress fsck status completion bar.

2016-12-17 Thread Marius Bakke
Danny Milosavljevic writes: > Hi, > > why not just use "fsck -t xxx" instead? It will filter out "-C" for > fscks which don't support it. I think pending a proper solution for handling fsck commands, offloading it to util-linux is a decent compromise. Ludo, WDYT? signature.asc Description: PGP

[PATCH] file-systems: Refactor to include check-procedure.

2016-12-03 Thread David Craven
root-file-system (canonicalize-device-spec root) - root-fs-type + root-fs-type root-fs-check-procedure #:volatile-root? volatile-root?) (mount "none" "/root" "tm

Re: [PATCH] gnu: Allow nfs file systems to be automatically mounted.

2016-11-29 Thread Ludovic Courtès
John Darrington skribis: > On Mon, Nov 28, 2016 at 10:05:15PM +0100, Ludovic Court??s wrote: > John Darrington skribis: > > > On Mon, Nov 28, 2016 at 02:59:09PM +0100, Ludovic Court??s wrote: > > > ???match???, > > > > > > Have another look: +

Re: [PATCH] gnu: Allow nfs file systems to be automatically mounted.

2016-11-28 Thread John Darrington
On Mon, Nov 28, 2016 at 10:05:15PM +0100, Ludovic Court??s wrote: John Darrington skribis: > On Mon, Nov 28, 2016 at 02:59:09PM +0100, Ludovic Court??s wrote: > > ???match???, > > > > Have another look: +(let* ((host (match (string-split sour

Re: [PATCH] gnu: Allow nfs file systems to be automatically mounted.

2016-11-28 Thread Ludovic Courtès
John Darrington skribis: > On Mon, Nov 28, 2016 at 02:59:09PM +0100, Ludovic Court??s wrote: > > ???match???, > > > > Have another look: +(let* ((host (match (string-split source #\:) > ((h _) h))) > > Right, but there are other occurrences of ???car??? for >

Re: [PATCH] gnu: Allow nfs file systems to be automatically mounted.

2016-11-28 Thread John Darrington
On Mon, Nov 28, 2016 at 02:59:09PM +0100, Ludovic Court??s wrote: > ???match???, > > Have another look: +(let* ((host (match (string-split source #\:) ((h _) h))) Right, but there are other occurrences of ???car??? for ???getaddrinfo???. :-) But that occuranc

Re: [PATCH] gnu: Allow nfs file systems to be automatically mounted.

2016-11-28 Thread Ludovic Courtès
John Darrington skribis: > On Sat, Nov 26, 2016 at 07:37:15PM +0100, Ludovic Court??s wrote: > John Darrington skribis: > > > * gnu/build/file-systems.scm (mount-file-system): Append target addr= > when > > mounting nfs filesystems. > > Looks like you forgot to a

Re: [PATCH] gnu: Allow nfs file systems to be automatically mounted.

2016-11-26 Thread John Darrington
On Sat, Nov 26, 2016 at 07:37:15PM +0100, Ludovic Court??s wrote: John Darrington skribis: > * gnu/build/file-systems.scm (mount-file-system): Append target addr= when > mounting nfs filesystems. Looks like you forgot to address some of suggestions I made (???

Re: [PATCH] gnu: Allow nfs file systems to be automatically mounted.

2016-11-26 Thread Ludovic Courtès
John Darrington skribis: > * gnu/build/file-systems.scm (mount-file-system): Append target addr= when > mounting nfs filesystems. Looks like you forgot to address some of suggestions I made (‘string-prefix?’, ‘match’, etc.) and left a question unanswered (port number?): https://lists.gnu.org/

[PATCH] gnu: Allow nfs file systems to be automatically mounted.

2016-11-26 Thread John Darrington
* gnu/build/file-systems.scm (mount-file-system): Append target addr= when mounting nfs filesystems. --- gnu/build/file-systems.scm | 36 +--- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm ind

Re: [PATCH] tests: Don't check file-systems in container tests.

2016-11-14 Thread Ludovic Courtès
f3a398d4ab739ec2b48477502 Mon Sep 17 00:00:00 2001 >>> From: Andy Patterson >>> Date: Sat, 12 Nov 2016 22:10:01 -0500 >>> Subject: [PATCH] tests: Don't check file-systems in container tests. >>> >>> * tests/containers.scm ("call-with-container, mnt

Re: [PATCH] tests: Don't check file-systems in container tests.

2016-11-14 Thread Marius Bakke
son >> Date: Sat, 12 Nov 2016 22:10:01 -0500 >> Subject: [PATCH] tests: Don't check file-systems in container tests. >> >> * tests/containers.scm ("call-with-container, mnt namespace"): Don't >> check file-system in 'call-with-container&#

Re: [PATCH] tests: Don't check file-systems in container tests.

2016-11-13 Thread Andy Patterson
77502 Mon Sep 17 00:00:00 > > 2001 From: Andy Patterson > > Date: Sat, 12 Nov 2016 22:10:01 -0500 > > Subject: [PATCH] tests: Don't check file-systems in container tests. > > > > * tests/containers.scm ("call-with-container, mnt namespace"): Don't &

Re: [PATCH] tests: Don't check file-systems in container tests.

2016-11-13 Thread Ludovic Courtès
Hi, Andy Patterson skribis: > The containers test was hanging for me, and this patch fixed the > problem. [...] > From 945ad44acf489b7f3a398d4ab739ec2b48477502 Mon Sep 17 00:00:00 2001 > From: Andy Patterson > Date: Sat, 12 Nov 2016 22:10:01 -0500 > Subject: [PATCH] tests

[PATCH] tests: Don't check file-systems in container tests.

2016-11-12 Thread Andy Patterson
Hello, The containers test was hanging for me, and this patch fixed the problem. -- Andy From 945ad44acf489b7f3a398d4ab739ec2b48477502 Mon Sep 17 00:00:00 2001 From: Andy Patterson Date: Sat, 12 Nov 2016 22:10:01 -0500 Subject: [PATCH] tests: Don't check file-systems in container

Re: [PATCH 3/6] file-systems: Suppress fsck status completion bar.

2016-11-07 Thread Danny Milosavljevic
Hi, why not just use "fsck -t xxx" instead? It will filter out "-C" for fscks which don't support it.

Re: [PATCH 3/6] file-systems: Suppress fsck status completion bar.

2016-11-07 Thread Marius Bakke
Ludovic Courtès writes: > Hey! > > Marius Bakke skribis: > >> Ludovic Courtès writes: >> >>> Marius Bakke skribis: >>> * gnu/build/file-systems.scm (check-file-system): Drop "-C" argument from fsck for compatibility with other fscks. >>> >>> Oh so fsck.ext2 would no longer show any k

Re: [PATCH 3/6] file-systems: Suppress fsck status completion bar.

2016-11-07 Thread Ludovic Courtès
Hey! Marius Bakke skribis: > Ludovic Courtès writes: > >> Marius Bakke skribis: >> >>> * gnu/build/file-systems.scm (check-file-system): Drop "-C" argument >>> from fsck for compatibility with other fscks. >> >> Oh so fsck.ext2 would no longer show any kind of progress report? >> That’s annoyi

Re: [PATCH 3/6] file-systems: Suppress fsck status completion bar.

2016-11-06 Thread Marius Bakke
Ludovic Courtès writes: > Marius Bakke skribis: > >> * gnu/build/file-systems.scm (check-file-system): Drop "-C" argument >> from fsck for compatibility with other fscks. > > Oh so fsck.ext2 would no longer show any kind of progress report? > That’s annoying. > > Could we address it differently?

Re: [PATCH 3/6] file-systems: Suppress fsck status completion bar.

2016-11-06 Thread Ludovic Courtès
Marius Bakke skribis: > * gnu/build/file-systems.scm (check-file-system): Drop "-C" argument > from fsck for compatibility with other fscks. Oh so fsck.ext2 would no longer show any kind of progress report? That’s annoying. Could we address it differently? Not sure how, though. Thanks, Ludo’.

[PATCH 3/6] file-systems: Suppress fsck status completion bar.

2016-11-05 Thread Marius Bakke
* gnu/build/file-systems.scm (check-file-system): Drop "-C" argument from fsck for compatibility with other fscks. --- gnu/build/file-systems.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm index bfc353a..30abe94 10064

Re: [v2 2/2] doc: Be more explicit in example of file-systems configuration.

2015-12-21 Thread Leo Famulari
On Mon, Dec 21, 2015 at 04:36:55PM +0100, Ludovic Courtès wrote: > Leo Famulari skribis: > > > * gnu/system/examples/bare-bones.tmpl (file-systems): Change device > > label. > > * gnu/system/examples/desktop.tmpl (file-systems): Likewise. > > [...] > > >

Re: [v2 2/2] doc: Be more explicit in example of file-systems configuration.

2015-12-21 Thread Ludovic Courtès
Leo Famulari skribis: > * gnu/system/examples/bare-bones.tmpl (file-systems): Change device > label. > * gnu/system/examples/desktop.tmpl (file-systems): Likewise. [...] > + ;; Assuming /dev/sdX is the target hard disk, and "my-root-partition" is [...] > + ;;

[v2 2/2] doc: Be more explicit in example of file-systems configuration.

2015-12-20 Thread Leo Famulari
* gnu/system/examples/bare-bones.tmpl (file-systems): Change device label. * gnu/system/examples/desktop.tmpl (file-systems): Likewise. --- gnu/system/examples/bare-bones.tmpl | 4 ++-- gnu/system/examples/desktop.tmpl| 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a

Re: [PATCH] build: file-systems: Allow for bind mounting regular files.

2015-08-18 Thread Thompson, David
On Tue, Aug 18, 2015 at 11:52 AM, Ludovic Courtès wrote: > "Thompson, David" skribis: > >> +(define (regular-file? file-name) >> + "Return #t if FILE-NAME is a regular file." >> + (eq? (stat:type (stat file-name)) 'regular)) > > I see you

Re: [PATCH] build: file-systems: Allow for bind mounting regular files.

2015-08-18 Thread Ludovic Courtès
"Thompson, David" skribis: > +(define (regular-file? file-name) > + "Return #t if FILE-NAME is a regular file." > + (eq? (stat:type (stat file-name)) 'regular)) I see you moved this procedure to (gnu build file-systems), which is reasonable. I wonder if it s

Re: [PATCH] build: file-systems: Allow for bind mounting regular files.

2015-08-08 Thread Thompson, David
On Sat, Aug 1, 2015 at 3:17 PM, David Thompson wrote: > As I was working on my container implementation I noticed that > 'mount-file-system' doesn't support bind mounting regular files because > it assumes that all mount points are directories. This patch fixes > that. I pushed this. - Dave

Re: [PATCH] build: file-systems: Allow for bind mounting regular files.

2015-08-07 Thread Alex Kost
Thompson, David (2015-08-06 15:22 +0300) wrote: > On Mon, Aug 3, 2015 at 8:47 AM, Alex Kost wrote: >> Thompson, David (2015-08-02 15:51 +0300) wrote: >> >>> Ah, of course, I forgot about something: This patch triggers a >>> rebuild of *everything* now! I guess it should be applied to >>> core-u

Re: [PATCH] build: file-systems: Allow for bind mounting regular files.

2015-08-06 Thread Thompson, David
On Mon, Aug 3, 2015 at 8:47 AM, Alex Kost wrote: > Thompson, David (2015-08-02 15:51 +0300) wrote: > >> Ah, of course, I forgot about something: This patch triggers a >> rebuild of *everything* now! I guess it should be applied to >> core-updates. Or, the first patch I submitted can be applied

Re: [PATCH] build: file-systems: Allow for bind mounting regular files.

2015-08-03 Thread Alex Kost
Thompson, David (2015-08-02 15:51 +0300) wrote: > On Sun, Aug 2, 2015 at 8:43 AM, Thompson, David > wrote: >> On Sun, Aug 2, 2015 at 8:10 AM, Alex Kost wrote: >>> David Thompson (2015-08-01 22:17 +0300) wrote: >>> diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm ind

Re: [PATCH] build: file-systems: Allow for bind mounting regular files.

2015-08-02 Thread Andreas Enge
On Sun, Aug 02, 2015 at 08:51:46AM -0400, Thompson, David wrote: > Ah, of course, I forgot about something: This patch triggers a > rebuild of *everything* now! I guess it should be applied to > core-updates. I think it would be better to wait until hydra is done building the security updates Ma

Re: [PATCH] build: file-systems: Allow for bind mounting regular files.

2015-08-02 Thread Thompson, David
On Sun, Aug 2, 2015 at 8:43 AM, Thompson, David wrote: > On Sun, Aug 2, 2015 at 8:10 AM, Alex Kost wrote: >> David Thompson (2015-08-01 22:17 +0300) wrote: >> >>> diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm >>> index c58d23c..f0d6f70 100644 >>> --- a/gnu/build/file-system

Re: [PATCH] build: file-systems: Allow for bind mounting regular files.

2015-08-02 Thread Thompson, David
b2413bd06b1e769edfbe4d170de41398015a67d Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 1 Aug 2015 13:43:33 -0400 Subject: [PATCH] build: file-systems: Allow for bind mounting regular files. * guix/build/utils.scm (regular-file?): New procedure. * gnu/build/file-systems.scm (mount-file-system

Re: [PATCH] build: file-systems: Allow for bind mounting regular files.

2015-08-02 Thread Alex Kost
David Thompson (2015-08-01 22:17 +0300) wrote: > diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm > index c58d23c..f0d6f70 100644 > --- a/gnu/build/file-systems.scm > +++ b/gnu/build/file-systems.scm > @@ -305,6 +305,10 @@ the following: > fsck code device) >

[PATCH] build: file-systems: Allow for bind mounting regular files.

2015-08-01 Thread David Thompson
0 2001 From: David Thompson Date: Sat, 1 Aug 2015 13:43:33 -0400 Subject: [PATCH] build: file-systems: Allow for bind mounting regular files. * gnu/build/file-systems.scm (regular-file?): New procedure. (mount-file-system): Create a regular file instead of a directory when bind mounting a regu

Re: [PATCH 12/15] gnu: system: Add Linux container file systems.

2015-07-09 Thread Thompson, David
On Tue, Jul 7, 2015 at 9:56 AM, Ludovic Courtès wrote: > David Thompson skribis: > >> * gnu/system/file-systems.scm (%container-file-systems): New variable. > > [...] > >> +(define %container-file-systems > > Could you add a comment explaining how they differ fro

Re: [PATCH 10/15] gnu: system: Move file-system->spec to (gnu system file-systems).

2015-07-07 Thread Thompson, David
On Tue, Jul 7, 2015 at 9:51 AM, Ludovic Courtès wrote: > David Thompson skribis: > >> * gnu/system/linux-initrd.scm (file-system->spec): Move this... >> * gnu/system/file-systems.scm: ... to here. > > OK Pushed.

Re: [PATCH 09/15] gnu: system: Move into (gnu system file-systems).

2015-07-07 Thread Thompson, David
On Tue, Jul 7, 2015 at 9:51 AM, Ludovic Courtès wrote: > David Thompson skribis: > >> * gnu/system/vm.scm (, %store-mapping): Move from >> here... >> * gnu/system/file-systems.scm: ...to here. >> * guix/scripts/system.scm: Import (gnu system file-systems). > > OK Pushed.

Re: [PATCH 12/15] gnu: system: Add Linux container file systems.

2015-07-07 Thread Ludovic Courtès
David Thompson skribis: > * gnu/system/file-systems.scm (%container-file-systems): New variable. [...] > +(define %container-file-systems Could you add a comment explaining how they differ from %base-file-systems and why it must be done this way? Otherwise OK. Ludo’.

Re: [PATCH 10/15] gnu: system: Move file-system->spec to (gnu system file-systems).

2015-07-07 Thread Ludovic Courtès
David Thompson skribis: > * gnu/system/linux-initrd.scm (file-system->spec): Move this... > * gnu/system/file-systems.scm: ... to here. OK

Re: [PATCH 09/15] gnu: system: Move into (gnu system file-systems).

2015-07-07 Thread Ludovic Courtès
David Thompson skribis: > * gnu/system/vm.scm (, %store-mapping): Move from here... > * gnu/system/file-systems.scm: ...to here. > * guix/scripts/system.scm: Import (gnu system file-systems). OK

[PATCH 12/15] gnu: system: Add Linux container file systems.

2015-07-06 Thread David Thompson
From: David Thompson * gnu/system/file-systems.scm (%container-file-systems): New variable. --- gnu/system/file-systems.scm | 30 ++ 1 file changed, 30 insertions(+) diff --git a/gnu/system/file-systems.scm b/gnu/system/file-systems.scm index b33f826..23998dd 100644

[PATCH 10/15] gnu: system: Move file-system->spec to (gnu system file-systems).

2015-07-06 Thread David Thompson
tem/file-systems.scm b/gnu/system/file-systems.scm index cbaca88..b33f826 100644 --- a/gnu/system/file-systems.scm +++ b/gnu/system/file-systems.scm @@ -17,6 +17,7 @@ ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. (define-module (gnu system file-systems) + #:use-modu

[PATCH 09/15] gnu: system: Move into (gnu system file-systems).

2015-07-06 Thread David Thompson
From: David Thompson * gnu/system/vm.scm (, %store-mapping): Move from here... * gnu/system/file-systems.scm: ...to here. * guix/scripts/system.scm: Import (gnu system file-systems). --- gnu/system/file-systems.scm | 32 +++- gnu/system/vm.scm | 22

Re: [PATCH 2/2] gnu: Add control group file systems.

2015-06-19 Thread Thompson, David
On Fri, Jun 19, 2015 at 7:43 AM, Ludovic Courtès wrote: > David Thompson skribis: > >> From 339bc3a744ad07f8513fbbf4b1cfd7955fdf7f1d Mon Sep 17 00:00:00 2001 >> From: David Thompson >> Date: Thu, 18 Jun 2015 20:40:57 -0400 >> Subject: [PATCH 2/2] gnu: Add control g

Re: [PATCH 2/2] gnu: Add control group file systems.

2015-06-19 Thread Ludovic Courtès
David Thompson skribis: > From 339bc3a744ad07f8513fbbf4b1cfd7955fdf7f1d Mon Sep 17 00:00:00 2001 > From: David Thompson > Date: Thu, 18 Jun 2015 20:40:57 -0400 > Subject: [PATCH 2/2] gnu: Add control group file systems. > > * gnu/system/file-systems.scm (%control-gro

[PATCH 2/2] gnu: Add control group file systems.

2015-06-18 Thread David Thompson
>From 339bc3a744ad07f8513fbbf4b1cfd7955fdf7f1d Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 18 Jun 2015 20:40:57 -0400 Subject: [PATCH 2/2] gnu: Add control group file systems. * gnu/system/file-systems.scm (%control-groups): New variable. (%base-file-system): Include control gr

Re: Sharing host file systems with a VM

2014-11-20 Thread David Thompson
Ludovic Courtès writes: > ‘guix system vm’ can now be told to share more file systems with the > host, in addition to /gnu/store: Awesome! > Thanks David for giving me an incentive to work on this. ;-) Thanks for doing the work! I will figure out how to take advantage of this

Sharing host file systems with a VM

2014-11-20 Thread Ludovic Courtès
‘guix system vm’ can now be told to share more file systems with the host, in addition to /gnu/store: Additional file systems can be shared between the host and the VM using the ‘--share’ and ‘--expose’ command-line options: the former specifies a directory to be shared with write

Re: File systems

2014-05-14 Thread Ludovic Courtès
l...@gnu.org (Ludovic Courtès) skribis: > To support clean unmounting of file systems upon shutdown, special dmd > services are added to the graph (see (gnu services base)): > > • ‘root-file-system’, whose stop action is to remount / read-only; > this is the last service

File systems

2014-05-10 Thread Ludovic Courtès
Hello, It’s now possible to declare file systems to be mounted in ‘operating-system’ declarations, like this: (operating-system (file-systems (list (file-system (device "/dev/sda1") (mount-point "/")