半年ほど投稿をサボってしまった。
さて、FreeBSD.orgを見たところ、4月11日に、13.2-RELEASEが配布開始とのこと。
そこで、前回の、freebsd-update(FreeBSD 13 → 13.1 アップデート)と同様に
freebsd-update(FreeBSD 13.1 → 13.2 アップデート)
を実施する。
環境は、
Rpi3B(hostname="rpi3x.smbdom.local")
SSD500G (USB2)
FreeBSD 13R -> 13.1Rにアップデート
bind+postfix+dovecot+spamassassin+fail2ban のメール鯖構成
といったもの。
以下、冗長だが、手順;
Last login: Thu Apr 20 17:16:06 2023 from aopen.smbdom.local
FreeBSD 13.1-RELEASE-p6 GENERIC
Welcome !
makoto@rpi3x:~ % su -
password:
root@rpi3x:~ # freebsd-update upgrade -r 13.2-RELEASE
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 13.1-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.The following components of FreeBSD seem to be installed:
kernel/generic kernel/generic-dbg world/base world/base-dbgThe following components of FreeBSD do not seem to be installed:
Does this look reasonable (y/n)?
Fetching metadata signature for 13.2-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Does this look reasonable (y/n)? yFetching metadata signature for 13.2-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 13.1-RELEASE for merging... done.
Preparing to download files... done.
Attempting to automatically merge changes in files... done.The following file could not be merged automatically: /etc/motd.template
Press Enter to edit this file in vi and resolve the conflicts
manually...
(エディターで変更なく抜ける)
/var/db/freebsd-update/merge/new//etc/motd.template: 1 lines, 10 characters.The following file could not be merged automatically: /etc/ssh/sshd_config
Press Enter to edit this file in vi and resolve the conflicts
manually...
(エディターで変更なく抜ける)
The following changes, which occurred between FreeBSD 13.1-RELEASE and
FreeBSD 13.2-RELEASE have been merged into /etc/passwd:
--- current version
+++ new version
@@ -1,7 +1,5 @@
-# $FreeBSD$
-#
root:*:0:0:Charlie &:/root:/bin/csh
toor:*:0:0:Bourne-again Superuser:/root:
daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5:System &:/:/usr/sbin/nologin
bin:*:3:7:Binaries Commands and Source:/:/usr/sbin/nologin
Does this look reasonable (y/n)?yThe following changes, which occurred between FreeBSD 13.1-RELEASE and
FreeBSD 13.2-RELEASE have been merged into /etc/ssh/sshd_config:
Does this look reasonable (y/n)? y(nを入力すると処理が中断してしまうので。yで継続していく。
一方で、後でreboot前に、例えば別ターミナルを開いて、
バックアップしておいたmotd.templateとsshd_configを上書きする。
sshd_configが不正な場合、sshで接続できなくなる。)To install the downloaded upgrades, run "/usr/sbin/freebsd-update install".
root@rpi3x:~ # /usr/sbin/freebsd-update install
src component not installed, skipped
Installing updates...
Kernel updates have been installed. Please reboot and run
"/usr/sbin/freebsd-update install" again to finish installing updates.
(もう一度"/usr/sbin/freebsd-update install"を実行)
root@rpi3x:~ # /usr/sbin/freebsd-update install
src component not installed, skipped
Installing updates...install: ///var/db/etcupdate/current/etc/rc.d/growfs_fstab: No such file or directory
install: ///var/db/etcupdate/current/etc/rc.d/var_run: No such file or directory
install: ///var/db/etcupdate/current/etc/rc.d/zpoolreguid: No such file or directory
Scanning //usr/share/certs/blacklisted for certificates...
Scanning //usr/share/certs/trusted for certificates...
Scanning //usr/local/share/certs for certificates...
rmdir: ///usr/tests/usr.bin/timeout: Directory not empty
done.
root@rpi3x:~ #
(ここで/etc/motd.templateと/etc/ssh/sshd_configが"元の状態"であることを確認する)root@rpi3x:~ # reboot
Last login: Fri Apr 21 07:59:02 2023 from aopen.smbdom.local
FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC
Welcome !
makoto@rpi3x:~ % su -
Password:
root@rpi3x:~ # freebsd-version -kur
13.2-RELEASE
13.2-RELEASE
13.2-RELEASE
root@rpi3x:~ #
上記でカッコ書きした部分の、
/etc/motd.template
/etc/ssh/sshd_config
の2つを、バックアップしておいて、reboot前に元に戻すことがコツかと思う。
(2023年4月20日)
コメント