Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Apr 2024 22:12:06 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        Emmanuel Vadot <manu@bidouilliste.com>
Cc:        Alexey Dokuchaev <danfe@freebsd.org>, Gleb Popov <arrowd@freebsd.org>, ports-committers@freebsd.org,  dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org
Subject:   Re: git: 6b1ce0429253 - main - sysutils/restic: Add pkg-message about FUSE mount
Message-ID:  <CAFDf7UKgZ-%2BcTTa3E14JcZjDFHQ2-t_r3N8eCtvHzDOkA3jUqQ@mail.gmail.com>
In-Reply-To: <20240403203621.8e00936c237e847830ff1614@bidouilliste.com>
References:  <202404031432.433EWbj2025920@gitrepo.freebsd.org> <CALH631mEex1iu96pdF_VcTag1F-UVLkziS_O=BdLZhFujbpDag@mail.gmail.com> <20240403172726.c3bcc1ee39714de793aa6654@bidouilliste.com> <Zg2QYbsDf2S3Q6qY@FreeBSD.org> <20240403203621.8e00936c237e847830ff1614@bidouilliste.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000077d518061537ad45
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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=3D"YES"
+to /etc/rc.conf by running:

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

---

In order to mount locally a remote archive or an entire repository as a FUS=
E
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+=3Dfusefs

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

# sysctl vfs.usermount=3D1

and add the line

vfs.usermount=3D1

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

Emmanuel Vadot <manu@bidouilliste.com> escreveu (quarta, 3/04/2024 =C3=A0(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=3D"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 earl=
y
> > 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>
>


--=20
Nuno Teixeira
FreeBSD Committer (ports)

--00000000000077d518061537ad45
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello all,</div><div><br></div><div>Thanks for correc=
tions.<br></div><div>What about changing it to:</div><div><br>- To load the=
 module at boot time, add<br>+To load the module at boot time, add fusefs m=
odule<br><br>- fusefs_load=3D&quot;YES&quot;<br>+to /etc/rc.conf by running=
:<br><br>-to /boot/loader.conf by running:<br>-sysrc fusefs_load=3D&quot;YE=
S&quot;<br>+# sysrc kld_list+=3Dfusefs</div><div><br></div><div>---</div><d=
iv><br></div><div>In order to mount locally a remote archive or an entire r=
epository as a FUSE<br>filesystem, it is required to load fusefs module:<br=
><br># kldload fusefs<br><br>To load the module at boot time, add fusefs mo=
dule<br><br>to /etc/rc.conf by running:<br><br># sysrc kld_list+=3Dfusefs<b=
r><br>Also, if you plan to mount restic repositories as non root user, you =
need to run<br><br># sysctl vfs.usermount=3D1<br><br>and add the line<br><b=
r>vfs.usermount=3D1<br><br>to /etc/sysctl.conf to ensure the setting is loa=
ded at boot time.</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr=
" class=3D"gmail_attr">Emmanuel Vadot &lt;<a href=3D"mailto:manu@bidouillis=
te.com">manu@bidouilliste.com</a>&gt; escreveu (quarta, 3/04/2024 =C3=A0(s)=
 19:36):<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px=
 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed,=
 3 Apr 2024 17:22:41 +0000<br>
Alexey Dokuchaev &lt;<a href=3D"mailto:danfe@freebsd.org" target=3D"_blank"=
>danfe@freebsd.org</a>&gt; wrote:<br>
<br>
&gt; On Wed, Apr 03, 2024 at 05:27:26PM +0200, Emmanuel Vadot wrote:<br>
&gt; &gt; On Wed, 3 Apr 2024 18:13:56 +0300 Gleb Popov wrote:<br>
&gt; &gt; &gt; On Wed, Apr 3, 2024 at 5:32?PM Nuno Teixeira &lt;<a href=3D"=
mailto:eduardo@freebsd.org" target=3D"_blank">eduardo@freebsd.org</a>&gt; w=
rote:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; +fusefs_load=3D&quot;YES&quot;<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Loading modules in the bootloader is discouraged. If the mod=
ule can be<br>
&gt; &gt; &gt; loaded after the system is booted, then it is better to do<b=
r>
&gt; &gt; <br>
&gt; &gt; I don&#39;t think that&#39;s true.<br>
&gt; <br>
&gt; It is true, regardless of the UEFI: bootloader is the place where you<=
br>
&gt; load modules essential for the boot process.<br>
<br>
=C2=A0Why ? Who says that ?<br>
<br>
&gt;=C2=A0 Anything that can be safely<br>
&gt; postponed should be postponed to the rc(8) stage.=C2=A0 Loading module=
s early<br>
&gt; even when it works for the time being is just asking for trouble in th=
e<br>
&gt; future like we&#39;ve seen for NVidia driver ones.<br>
<br>
=C2=A0I don&#39;t know the case for nvidia but I know that drm also have<br=
>
problems when loaded early. But other than those any module shipped in<br>
case should be loadable without problems by loader, otherwise it&#39;s a<br=
>
bug.<br>
<br>
&gt; ./danfe<br>
<br>
<br>
-- <br>
Emmanuel Vadot &lt;<a href=3D"mailto:manu@bidouilliste.com" target=3D"_blan=
k">manu@bidouilliste.com</a>&gt; &lt;<a href=3D"mailto:manu@freebsd.org" ta=
rget=3D"_blank">manu@freebsd.org</a>&gt;<br>
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l=
tr"><span style=3D"color:rgb(102,102,102)">Nuno Teixeira<br>FreeBSD Committ=
er (ports)</span></div></div>

--00000000000077d518061537ad45--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7UKgZ-%2BcTTa3E14JcZjDFHQ2-t_r3N8eCtvHzDOkA3jUqQ>