Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 2021 00:10:00 +0900
From:      Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
To:        freebsd-current@freebsd.org
Cc:        gljennjohn@gmail.com, Graham Perrin <grahamperrin@gmail.com>, Allan Jude <allanjude@FreeBSD.org>
Subject:   Re: zfskeys does not exist
Message-ID:  <20211114001000.c28c9a8ad09af13620d7ffbb@dec.sakura.ne.jp>
In-Reply-To: <20211113130059.0bc4a33e@ernst.home>
References:  <e4289f32-0004-00cd-a9e9-81264ce03edb@gmail.com> <20211113130059.0bc4a33e@ernst.home>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 13 Nov 2021 13:00:59 +0100
Gary Jennejohn <gljennjohn@gmail.com> wrote:

> On Sat, 13 Nov 2021 11:33:01 +0000
> Graham Perrin <grahamperrin@gmail.com> wrote:
> 
> > <https://cgit.freebsd.org/src/commit/?id=33ff39796ffe469a764e485ac49c31700a51fd6f>; (2021-07-28):
> > 
> >  > Add zfskeys rc.d script for auto-loading encryption keys  
> > 
> > <https://cgit.freebsd.org/src/log/?qt=grep&q=zfskeys>; finds only the July commit.
> > 
> > Below, I don't have zfskeys. Please, can anyone explain?
> > 
> > Thanks
> > 
> 
> /usr/src/libexec/rc/rc.d/zfskeys
> 
> Maybe it isn't being installed automatically?  No idea and I don't
> use ZFS myself.

(CC'ing Allan Jude, the committer of this change.)

Not sure if it's intentional or not, /usr/src/libexec/rc/rc.d/Makefile
has no corresponding update.
Currently, it has .if block below.

=== quote ===

.if ${MK_ZFS} != "no"
CONFGROUPS+=	ZFS
ZFS+=		zfs
ZFS+=		zfsbe
ZFS+=		zfsd
ZFS+=		zpool
ZFS+=		zvol
ZFSPACKAGE=	rc
.endif

=== end quote ===

If these are intentionally kept unchanged, there can be some risk to
install zfskeys in some situations.

If not,

ZFS+=		zfskeys

line should be added somewhere inside the block.


> 
> > ----
> > 
> > root@mowa219-gjp4-8570p-freebsd:~ # service zfskeys status
> > zfskeys does not exist in /etc/rc.d or the local startup
> > directories (/usr/local/etc/rc.d), or is not executable
> > root@mowa219-gjp4-8570p-freebsd:~ # ls -hl /etc/rc.d/zfs*
> > -r-xr-xr-x 〓1 root 〓wheel 〓〓872B Jan 〓1 〓2021 /etc/rc.d/zfs
> > -r-xr-xr-x 〓1 root 〓wheel 〓〓1.7K Jan 〓1 〓2021 /etc/rc.d/zfsbe
> > -r-xr-xr-x 〓1 root 〓wheel 〓〓209B Jan 〓1 〓2021 /etc/rc.d/zfsd
> > root@mowa219-gjp4-8570p-freebsd:~ # ls /usr/local/etc/rc.d
> > amd 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓gpsd 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓sndiod
> > aria2 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓grafana 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓snmpd
> > atop 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓iocage 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓snmptrapd
> > avahi-daemon 〓〓〓〓〓〓〓〓〓〓〓jackd 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓stunnel
> > avahi-dnsconfd 〓〓〓〓〓〓〓〓〓microcode_update 〓〓〓〓〓〓〓svnserve
> > bsdstats 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓miniupnpc 〓〓〓〓〓〓〓〓〓〓〓〓〓〓tcsd
> > clamav-clamd 〓〓〓〓〓〓〓〓〓〓〓mysql-server 〓〓〓〓〓〓〓〓〓〓〓tor
> > clamav-freshclam 〓〓〓〓〓〓〓netdata 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓tpmd
> > clamav-milter 〓〓〓〓〓〓〓〓〓〓php-fpm 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓ubuntu
> > cpupdate 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓poudriered 〓〓〓〓〓〓〓〓〓〓〓〓〓uuidd
> > croc 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓powerdxx 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓vboxheadless
> > cups_browsed 〓〓〓〓〓〓〓〓〓〓〓rdnssd 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓vboxnet
> > cupsd 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓rsyncd 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓vboxwatchdog
> > dbus 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓samba_server 〓〓〓〓〓〓〓〓〓〓〓vboxwebsrv
> > dsbmd 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓saned 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓virtual_oss
> > gdm 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓sddm 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓vm
> > git_daemon 〓〓〓〓〓〓〓〓〓〓〓〓〓slpd 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓webcamd
> > gkrellmd 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓smartd
> > root@mowa219-gjp4-8570p-freebsd:~ # date
> > Sat Nov 13 10:21:22 GMT 2021
> > root@mowa219-gjp4-8570p-freebsd:~ # uname -aKU
> > FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #114 main-n
> > 250511-5f73b3338ee: Sat Nov 〓6 21:15:23 GMT 2021  〓〓〓〓root@mowa219-gjp4-8570p-fre
> > ebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG 〓amd64 1400040 1400040
> > root@mowa219-gjp4-8570p-freebsd:~ #
> 
> 
> -- 
> Gary Jennejohn
> 


-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20211114001000.c28c9a8ad09af13620d7ffbb>