[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#39551: Cannot declare an NFS mount using the <file-system> record
From: |
Maxim Cournoyer |
Subject: |
bug#39551: Cannot declare an NFS mount using the <file-system> record |
Date: |
Wed, 12 Feb 2020 14:12:32 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello Giovanni,
Giovanni Biscuolo <address@hidden> writes:
> Hello,
>
> Maxim Cournoyer <address@hidden> writes:
>
>> The attached patch fixes this issue
>
> [...]
>
>> diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
>> index b0386a1392..26a1599a93 100644
>> --- a/guix/scripts/system.scm
>> +++ b/guix/scripts/system.scm
>> @@ -566,6 +566,8 @@ any, are available. Raise an error if they're not."
>> (and (file-system-mount? fs)
>> (not (member (file-system-type fs)
>> %pseudo-file-system-types))
>> + ;; Fixes issue #39551 (see: https://bugs.gnu.org/39551).
>> + (not (string-prefix? "nfs" (file-system-type fs)))
>> (not (memq 'bind-mount (file-system-flags fs)))))
>> file-systems))
>
> Please is it possible to also add nfs4 to this fix?
>
> Thanks! Gio'
It should work already, given that I'm checking for a string *prefix* of
"nfs" :-).