Re: unmask silently fails

2022-09-19 Thread Greg Wooledge
On Mon, Sep 19, 2022 at 12:12:51PM -0400, Felix Miata wrote:
> Reco composed on 2022-09-19 14:46 (UTC+0300):
> > # ls -la /lib/systemd/system/nfs-common.service
> > lrwxrwxrwx 1 root root 9 Jun 28  2021 
> > /lib/systemd/system/nfs-common.service -> /dev/null
> 
> That's what masking looks like. Why is it masked?

I don't know the full story either, but I did note that there's also
an /etc/init.d/nfs-common script (a rather substantial one, at that).



Re: unmask silently fails

2022-09-19 Thread David Wright
On Mon 19 Sep 2022 at 12:12:51 (-0400), Felix Miata wrote:
> Reco composed on 2022-09-19 14:46 (UTC+0300):
> > On Mon, Sep 19, 2022 at 12:05:43AM -0400, Felix Miata wrote:
> 
> >> Anyone know what it takes to unmask nfs-common.service successfully?
> 
> > Why would you need it with systemd? As of bullseye, nfs-common package
> > just provide this symlink instead of the proper systemd unit:
> 
> It was prompted by an error message trying to configure or enable something 
> else,
> which I had already forgotten before posting, that said enabling it was a 
> dependency.
> 
> > # ls -la /lib/systemd/system/nfs-common.service
> > lrwxrwxrwx 1 root root 9 Jun 28  2021 
> > /lib/systemd/system/nfs-common.service -> /dev/null
> 
> That's what masking looks like. Why is it masked?

My /guess/ is that it's because systemd doesn't need it: there's
a systemd service for each component (imapd, gssd, … … ).
However, if you don't run systemd, then all those services are
started by an init.d script called nfs-common, turned on and off
with /etc/default/.

Cheers,
David.



Re: unmask silently fails

2022-09-19 Thread Felix Miata
Reco composed on 2022-09-19 14:46 (UTC+0300):

> On Mon, Sep 19, 2022 at 12:05:43AM -0400, Felix Miata wrote:

>> Anyone know what it takes to unmask nfs-common.service successfully?

> Why would you need it with systemd? As of bullseye, nfs-common package
> just provide this symlink instead of the proper systemd unit:

It was prompted by an error message trying to configure or enable something 
else,
which I had already forgotten before posting, that said enabling it was a 
dependency.

> # ls -la /lib/systemd/system/nfs-common.service
> lrwxrwxrwx 1 root root 9 Jun 28  2021 /lib/systemd/system/nfs-common.service 
> -> /dev/null

That's what masking looks like. Why is it masked?
-- 
Evolution as taught in public schools is, like religion,
based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata



Re: unmask silently fails

2022-09-19 Thread Reco
Hi.

On Mon, Sep 19, 2022 at 12:05:43AM -0400, Felix Miata wrote:
> Anyone know what it takes to unmask nfs-common.service successfully?

Why would you need it with systemd? As of bullseye, nfs-common package
just provide this symlink instead of the proper systemd unit:

# ls -la /lib/systemd/system/nfs-common.service
lrwxrwxrwx 1 root root 9 Jun 28  2021 /lib/systemd/system/nfs-common.service -> 
/dev/null

Reco



unmask silently fails

2022-09-18 Thread Felix Miata
Bookworm freshly upgraded from Bullseye:

# ls -l /etc/systemd/system/*nfs*
lrwxrwxrwx 1 root root9 Oct  3  2017 mountkernfs.service -> /dev/null
lrwxrwxrwx 1 root root9 Oct  3  2017 mountnfs-bootclean.service -> /dev/null
lrwxrwxrwx 1 root root9 Oct  3  2017 mountnfs.service -> /dev/null
lrwxrwxrwx 1 root root9 Oct  3  2017 umountnfs.service -> /dev/null

nfs-client.target.wants:
total 0
lrwxrwxrwx 1 root root 38 Sep 18 23:34 nfs-blkmap.service -> 
/lib/systemd/system/nfs-blkmap.service
# systemctl list-unit-files | grep nfs- | grep -v rated
var-lib-nfs-rpc_pipefs.mount   static  -
mountnfs-bootclean.service masked  enabled
nfs-blkmap.service enabled enabled
nfs-common.service masked  enabled
nfs-idmapd.service static  -
nfs-kernel-server.service  alias   -
nfs-mountd.service static  -
nfs-server.service enabled enabled
nfs-utils.service  static  -
nfs-client.target  enabled enabled
# systemctl unmask nfs-common.service
# systemctl list-unit-files | grep nfs- | grep -v rated
var-lib-nfs-rpc_pipefs.mount   static  -
mountnfs-bootclean.service masked  enabled
nfs-blkmap.service enabled enabled
nfs-common.service masked  enabled
nfs-idmapd.service static  -
nfs-kernel-server.service  alias   -
nfs-mountd.service static  -
nfs-server.service enabled enabled
nfs-utils.service  static  -
nfs-client.target  enabled enabled
#

Anyone know what it takes to unmask nfs-common.service successfully?
Could there be some link to another file I can't see. What? Where?
-- 
Evolution as taught in public schools is, like religion,
based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata