/mnt/servo/*: fix for curl 8.9.0

see: <https://github.com/curl/curl/discussions/14299>
This commit is contained in:
2024-08-20 09:53:37 +00:00
parent 17dcf566f7
commit 9c9b237e69
2 changed files with 7 additions and 3 deletions

View File

@@ -183,6 +183,7 @@ let
# drop_privileges: after `mount.fuse3` opens /dev/fuse, it will drop all capabilities before invoking sshfs
"drop_privileges"
"auto_unmount" #< ensures that when the fs exits, it releases its mountpoint. then systemd can recognize it as failed.
"interface=0.0.0.0" #< see: <https://github.com/curl/curl/discussions/14299>
];
# fsType = "nfs";
# options = fsOpts.nfs ++ fsOpts.lazyMount;
@@ -240,7 +241,10 @@ let
"ftp://servo-hn:/${subdir}"
"/dev/null"
"-o"
(lib.concatStringsSep "," ([ "exit_after_connect" ] ++ config.fileSystems."${localPath}".options))
(lib.concatStringsSep "," ([
"exit_after_connect"
"interface=0.0.0.0" #< see: <https://github.com/curl/curl/discussions/14299>
] ++ config.fileSystems."${localPath}".options))
];
serviceConfig.RemainAfterExit = true;
serviceConfig.Type = "oneshot";

View File

@@ -16,8 +16,8 @@
domain = "git.uninsane.org";
owner = "colin";
repo = "curlftpfs";
rev = "fuse3";
hash = "sha256-QwGbQuriNwnZscnYBEVp3Td6/ifiA8rtQcvtvmTnpbU=";
rev = "master";
hash = "sha256-bqkRHV4d1y349yIHAtXPMlfWciVCH/geW73id8aJwUs=";
};
# `mount` clears PATH before calling the mount helper (see util-linux/lib/env.c),
# so the traditional /etc/fstab approach of fstype=fuse and device = curlftpfs#URI doesn't work.