Re: git: 6b1ce0429253 - main - sysutils/restic: Add pkg-message about FUSE mount

From: Nuno Teixeira <eduardo_at_freebsd.org>
Date: Wed, 03 Apr 2024 21:12:06 UTC
Hello all,

Thanks for corrections.
What about changing it to:

- To load the module at boot time, add
+To load the module at boot time, add fusefs module

- fusefs_load="YES"
+to /etc/rc.conf by running:

-to /boot/loader.conf by running:
-sysrc fusefs_load="YES"
+# sysrc kld_list+=fusefs

---

In order to mount locally a remote archive or an entire repository as a FUSE
filesystem, it is required to load fusefs module:

# kldload fusefs

To load the module at boot time, add fusefs module

to /etc/rc.conf by running:

# sysrc kld_list+=fusefs

Also, if you plan to mount restic repositories as non root user, you need
to run

# sysctl vfs.usermount=1

and add the line

vfs.usermount=1

to /etc/sysctl.conf to ensure the setting is loaded at boot time.

Emmanuel Vadot <manu@bidouilliste.com> escreveu (quarta, 3/04/2024 à(s)
19:36):

> On Wed, 3 Apr 2024 17:22:41 +0000
> Alexey Dokuchaev <danfe@freebsd.org> wrote:
>
> > On Wed, Apr 03, 2024 at 05:27:26PM +0200, Emmanuel Vadot wrote:
> > > On Wed, 3 Apr 2024 18:13:56 +0300 Gleb Popov wrote:
> > > > On Wed, Apr 3, 2024 at 5:32?PM Nuno Teixeira <eduardo@freebsd.org>
> wrote:
> > > > >
> > > > > +fusefs_load="YES"
> > > >
> > > > Loading modules in the bootloader is discouraged. If the module can
> be
> > > > loaded after the system is booted, then it is better to do
> > >
> > > I don't think that's true.
> >
> > It is true, regardless of the UEFI: bootloader is the place where you
> > load modules essential for the boot process.
>
>  Why ? Who says that ?
>
> >  Anything that can be safely
> > postponed should be postponed to the rc(8) stage.  Loading modules early
> > even when it works for the time being is just asking for trouble in the
> > future like we've seen for NVidia driver ones.
>
>  I don't know the case for nvidia but I know that drm also have
> problems when loaded early. But other than those any module shipped in
> case should be loadable without problems by loader, otherwise it's a
> bug.
>
> > ./danfe
>
>
> --
> Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
>


-- 
Nuno Teixeira
FreeBSD Committer (ports)