From nobody Sat Nov 13 15:10:00 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 6727D1856C91 for ; Sat, 13 Nov 2021 15:10:11 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HrzQq077yz3vhD; Sat, 13 Nov 2021 15:10:10 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from kalamity.joker.local (123-48-130-181.area1b.commufa.jp [123.48.130.181]) (authenticated bits=0) by www121.sakura.ne.jp (8.16.1/8.16.1/[SAKURA-WEB]/20201212) with ESMTPA id 1ADFA1uB093115; Sun, 14 Nov 2021 00:10:01 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Sun, 14 Nov 2021 00:10:00 +0900 From: Tomoaki AOKI To: freebsd-current@freebsd.org Cc: gljennjohn@gmail.com, Graham Perrin , Allan Jude Subject: Re: zfskeys does not exist Message-Id: <20211114001000.c28c9a8ad09af13620d7ffbb@dec.sakura.ne.jp> In-Reply-To: <20211113130059.0bc4a33e@ernst.home> References: <20211113130059.0bc4a33e@ernst.home> Reply-To: junchoon@dec.sakura.ne.jp Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HrzQq077yz3vhD X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Sat, 13 Nov 2021 13:00:59 +0100 Gary Jennejohn wrote: > On Sat, 13 Nov 2021 11:33:01 +0000 > Graham Perrin wrote: > > > (2021-07-28): > > > > > Add zfskeys rc.d script for auto-loading encryption keys > > > > 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