Raspberry Pi 3 Model B+ 上の NetBSD 9.2 環境を 9.3 にアップグレードする手順です。
本稿ではアップグレードは sysinst (インストーラ) ではなく sysupgrade ユーティリティを使用して行います。
パッケージをインストールします。
raspberrypi# pkgin install sysupgrade
calculating dependencies...done.
2 packages to install:
sysupgrade-1.5nb10 shtk-1.7
0 to refresh, 0 to upgrade, 2 to install
90K to download, 486K to install
proceed ? [Y/n]
設定ファイルは /usr/pkg/etc ディレクトリ以下に配置されます。
raspberrypi# ls -l /usr/pkg/etc/sysupgrade.conf
-rw-r--r-- 1 root wheel 1920 Nov 1 14:37 /usr/pkg/etc/sysupgrade.conf
/usr/pkg/etc/sysupgrade.conf の『RELEASEDIR』の設定を変更します。
以下は NetBSD 9.3 の AArch64 版のファイルを取得する場合の例となります。
#RELEASEDIR="https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/$(uname -m)"
RELEASEDIR="https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64
アップグレードに必要なファイルをキャッシュディレクトリに取得します。
raspberrypi# sysupgrade fetch
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/base.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/base.tgz
100% |***************************************************************************| 57134 KiB 2.67 MiB/s 00:00 ETA
58506226 bytes retrieved in 00:20 (2.67 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/comp.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/comp.tgz
100% |***************************************************************************| 94158 KiB 4.07 MiB/s 00:00 ETA
96418195 bytes retrieved in 00:22 (4.07 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/etc.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/etc.tgz
100% |***************************************************************************| 642 KiB 3.00 MiB/s 00:00 ETA
658270 bytes retrieved in 00:00 (2.99 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/games.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/games.tgz
100% |***************************************************************************| 3358 KiB 3.86 MiB/s 00:00 ETA
3439125 bytes retrieved in 00:00 (3.85 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/man.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/man.tgz
100% |***************************************************************************| 12178 KiB 2.52 MiB/s 00:00 ETA
12470376 bytes retrieved in 00:04 (2.52 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/misc.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/misc.tgz
100% |***************************************************************************| 5219 KiB 3.60 MiB/s 00:00 ETA
5344642 bytes retrieved in 00:01 (3.60 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/modules.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/modules.tgz
100% |***************************************************************************| 6409 KiB 2.31 MiB/s 00:00 ETA
6563675 bytes retrieved in 00:02 (2.31 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/rescue.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/rescue.tgz
100% |***************************************************************************| 3377 KiB 3.13 MiB/s 00:00 ETA
3458166 bytes retrieved in 00:01 (3.12 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/tests.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/tests.tgz
100% |***************************************************************************| 11417 KiB 3.64 MiB/s 00:00 ETA
11691135 bytes retrieved in 00:03 (3.64 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/text.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/text.tgz
100% |***************************************************************************| 2925 KiB 3.20 MiB/s 00:00 ETA
2996111 bytes retrieved in 00:00 (3.19 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/xbase.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/xbase.tgz
100% |***************************************************************************| 8866 KiB 1.55 MiB/s 00:00 ETA
9079241 bytes retrieved in 00:05 (1.55 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/xcomp.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/xcomp.tgz
100% |***************************************************************************| 11537 KiB 2.79 MiB/s 00:00 ETA
11814824 bytes retrieved in 00:04 (2.79 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/xetc.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/xetc.tgz
100% |***************************************************************************| 29546 6.86 MiB/s 00:00 ETA
29546 bytes retrieved in 00:00 (5.89 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/xfont.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/xfont.tgz
100% |***************************************************************************| 32015 KiB 1.95 MiB/s 00:00 ETA
32784053 bytes retrieved in 00:15 (1.95 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/xserver.tgz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/sets/xserver.tgz
100% |***************************************************************************| 19377 KiB 2.57 MiB/s 00:00 ETA
19842976 bytes retrieved in 00:07 (2.57 MiB/s)
sysupgrade: I: Downloading https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/kernel/netbsd-GENERIC64.gz into /var/cache/sysupgrade
......
Requesting https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/kernel/netbsd-GENERIC64.gz
100% |***************************************************************************| 5370 KiB 2.77 MiB/s 00:00 ETA
5499690 bytes retrieved in 00:01 (2.77 MiB/s)
Raspberry Pi 3 Model B+ 上の NetBSD 環境では sysupgrade ユーティリティ (『sysupgrade kernel』コマンドを実行) に因るカーネルのアップグレードは行えないため、本稿ではカーネルのアップグレードを手動で行います。
ファイルを取得します。
raspberrypi# ftp https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/kernel/netbsd-GENERIC64.img.gz
......
Requesting https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/binary/kernel/netbsd-GENERIC64.img.gz
100% |***************************************************************************| 4559 KiB 3.66 MiB/s 00:00 ETA
4668482 bytes retrieved in 00:01 (3.66 MiB/s)
ファイルを展開します。
raspberrypi# gunzip netbsd-GENERIC64.img.gz
ファイルを netbsd.img にリネームして /boot ディレクトリ以下に配置します。
raspberrypi# cp netbsd-GENERIC64.img /boot/netbsd.img
ファイルを取得します。
raspberrypi# ftp https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/installation/misc/bootaa64.efi
......
Requesting https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64/installation/misc/bootaa64.efi
100% |***************************************************************************| 204 KiB 4.12 MiB/s 00:00 ETA
209424 bytes retrieved in 00:00 (3.44 MiB/s)
ファイルを /boot/EFI/BOOT ディレクトリ以下に配置します。
raspberrypi# cp bootaa64.efi /boot/EFI/BOOT/
カーネルモジュールをアップグレードします。
raspberrypi# sysupgrade modules
sysupgrade: I: Upgrading kernel modules
sysupgrade: I: Extracting modules into /
100% |***************************************************************************| 13840 KiB 1.68 MiB/s 00:00 ETA
NetBSD を再起動します。
raspberrypi# shutdown -r now
システムセットをアップグレードします。
raspberrypi# sysupgrade sets
sysupgrade: I: Upgrading base system
sysupgrade: I: Extracting base into /
100% |***************************************************************************| 153 MiB 718.71 KiB/s 00:00 ETA
sysupgrade: I: Extracting comp into /
100% |***************************************************************************| 314 MiB 565.13 KiB/s 00:00 ETA
sysupgrade: I: Extracting games into /
100% |***************************************************************************| 8240 KiB 823.46 KiB/s 00:00 ETA
sysupgrade: I: Extracting man into /
100% |***************************************************************************| 57010 KiB 278.93 KiB/s 00:00 ETA
sysupgrade: I: Extracting misc into /
100% |***************************************************************************| 15290 KiB 682.15 KiB/s 00:00 ETA
sysupgrade: I: Extracting rescue into /
100% |***************************************************************************| 6930 KiB 2.25 MiB/s 00:00 ETA
sysupgrade: I: Extracting tests into /
100% |***************************************************************************| 40970 KiB 350.91 KiB/s 00:00 ETA
sysupgrade: I: Extracting text into /
100% |***************************************************************************| 11050 KiB 480.01 KiB/s 00:00 ETA
sysupgrade: I: Extracting xbase into /
100% |***************************************************************************| 27650 KiB 529.49 KiB/s 00:00 ETA
sysupgrade: I: Extracting xcomp into /
100% |***************************************************************************| 50850 KiB 446.12 KiB/s 00:00 ETA
sysupgrade: I: Extracting xfont into /
100% |***************************************************************************| 75490 KiB 384.62 KiB/s 00:00 ETA
sysupgrade: I: Extracting xserver into /
100% |***************************************************************************| 54850 KiB 5.86 MiB/s 00:00 ETA
システム設定ファイルをアップグレードします。
raspberrypi# sysupgrade etcupdate
sysupgrade: I: Upgrading /etc interactively
*** Creating /tmp/temproot
*** Populating /tmp/temproot from /var/cache/sysupgrade/etc.tgz
*** Populating /tmp/temproot from /var/cache/sysupgrade/xetc.tgz
*** Checking for new directories
*** Checking for added/modified files
以下はシステム設定ファイル関して、アップグレードで発生した差異の確認例となります。
差異に対する方針選択のプロンプトが表示されます。
本稿ではマージを行うこととします。
『m』を入力 (『Merge the currently installed and new files』を選択) して Enter を押下します。
--- /etc/group 2022-11-02 07:28:16.625572499 +0900
+++ /tmp/temproot/etc/group 2022-08-05 00:30:37.000000000 +0900
@@ -1,4 +1,4 @@
-wheel:*:0:root,admin
+wheel:*:0:root
daemon:*:1:daemon
kmem:*:2:root
sys:*:3:root
File: /etc/group (modified)
Please select one of the following operations:
d Don't install the new file (keep your old file)
i Install the new file (overwrites your local modifications!)
m Merge the currently installed and new files
s Show the differences between the currently installed and new files
su Show differences in unified format ("diff -u")
sc Show differences in context format ("diff -c")
ss Show differences side by side ("sdiff -w120")
scommand Show differences using the specified diff-like command
v Show the new file
What do you want to do? [Leave it for later] m
最初の差異が表示されます。
左側に表示されたアップグレード前の内容を選択します。
『l』を入力 (choose left diff) して Enter を押下します。
wheel:*:0:root,admin | wheel:*:0:root
%l
マージしたファイルに対する方針選択のプロンプトが表示されます。
インストールを行います。
『i』を入力 (『Install the merged file』を選択) して Enter を押下します。
File: /etc/group (modified)
Please select one of the following operations:
d Don't install the merged file (keep your old file)
i Install the merged file (overwrites your old file)
m Merge again (your old file against the result from the previous merge)
s Show the differences between the currently installed and new merged files
su Show differences in unified format ("diff -u")
sc Show differences in context format ("diff -c")
ss Show differences side by side ("sdiff -w120")
scommand Show differences using the specified diff-like command
u Undo merge (start again with the original version of the new file)
v Show the merged file
What do you want to do? [Leave it for later] i
差異に対する方針選択のプロンプトが表示されます。
本稿ではマージを行うこととします。
『m』を入力して Enter を押下します。
--- /etc/master.passwd 2022-11-02 10:26:22.404117972 +0900
+++ /tmp/temproot/etc/master.passwd 2022-08-05 00:30:37.000000000 +0900
@@ -1,4 +1,4 @@
-root:$sha1$21268$J2KCVziw$GqegEC7BW7xC.SLvP8lJSOHFmuma:0:0::0:0:Charlie &:/root:/bin/sh
+root::0:0::0:0:Charlie &:/root:/bin/sh
toor:*:0:0::0:0:Bourne-again Superuser:/root:/bin/sh
daemon:*:1:1::0:0:The devil himself:/:/sbin/nologin
operator:*:2:5::0:0:System &:/usr/guest/operator:/sbin/nologin
@@ -23,4 +23,3 @@
_nsd:*:33:33::0:0:& pseudo-user:/var/chroot/nsd:/sbin/nologin
uucp:*:66:1::0:0:UNIX-to-UNIX Copy:/nonexistent:/sbin/nologin
nobody:*:32767:39::0:0:Unprivileged user:/nonexistent:/sbin/nologin
-admin:$sha1$23525$.piQqieU$rWtyzDFlqLcQ53aSEljtgoR3vbld:1000:100::0:0::/home/admin:/usr/pkg/bin/bash
File: /etc/master.passwd (modified)
Please select one of the following operations:
d Don't install the new file (keep your old file)
i Install the new file (overwrites your local modifications!)
m Merge the currently installed and new files
s Show the differences between the currently installed and new files
su Show differences in unified format ("diff -u")
sc Show differences in context format ("diff -c")
ss Show differences side by side ("sdiff -w120")
scommand Show differences using the specified diff-like command
v Show the new file
What do you want to do? [Leave it for later] m
最初の差異が表示されます。
左側に表示されたアップグレード前の内容を選択します。
『l』を入力して Enter を押下します。
root:$sha1$21268$J2KCVziw$GqegEC7BW7xC.SLvP8lJSOHFmuma:0:0 | root::0:0::0:0:Charlie &:/root:/bin/sh
%l
次の差異が表示されます。
左側に表示されたアップグレード前の内容を選択します。
『l』を入力して Enter を押下します。
admin:$sha1$23525$.piQqieU$rWtyzDFlqLcQ53aSEljtgoR3vbld:10 <
%l
マージしたファイルに対する方針選択のプロンプトが表示されます。
インストールを行います。
『i』を入力して Enter を押下します。
File: /etc/master.passwd (modified)
Please select one of the following operations:
d Don't install the merged file (keep your old file)
i Install the merged file (overwrites your old file)
m Merge again (your old file against the result from the previous merge)
s Show the differences between the currently installed and new merged files
su Show differences in unified format ("diff -u")
sc Show differences in context format ("diff -c")
ss Show differences side by side ("sdiff -w120")
scommand Show differences using the specified diff-like command
u Undo merge (start again with the original version of the new file)
v Show the merged file
What do you want to do? [Leave it for later] i
差異に対する方針選択のプロンプトが表示されます。
本稿ではアップグレード前のファイルを残すこととします。
『d』を入力 (『Don't install the new file』を選択) して Enter を押下します。
--- /etc/motd 2022-11-02 10:59:05.781187697 +0900
+++ /tmp/temproot/etc/motd 2022-08-05 00:30:37.000000000 +0900
@@ -1,4 +1,4 @@
-NetBSD 9.3 (GENERIC64) #0: Thu Aug 4 15:30:37 UTC 2022
+NetBSD ?.? (UNKNOWN)
Welcome to NetBSD!
File: /etc/motd (modified)
Please select one of the following operations:
d Don't install the new file (keep your old file)
i Install the new file (overwrites your local modifications!)
m Merge the currently installed and new files
s Show the differences between the currently installed and new files
su Show differences in unified format ("diff -u")
sc Show differences in context format ("diff -c")
ss Show differences side by side ("sdiff -w120")
scommand Show differences using the specified diff-like command
v Show the new file
What do you want to do? [Leave it for later] d
差異に対する方針選択のプロンプトが表示されます。
本稿ではインストールを行うこととします。
『i』を入力 (『Install the new file』を選択) して Enter を押下します。
--- /etc/mtree/set.etc 2021-05-13 05:26:12.777268109 +0900
+++ /tmp/temproot/etc/mtree/set.etc 2022-08-05 00:30:37.000000000 +0900
@@ -236,13 +236,13 @@
./etc/rc.d/nfsd type=file uname=root gname=wheel mode=0555 size=345 sha256=16a3abaef74b74a930d1e6bb5f8beb7446bfde0abd6cd8486bfbcd2b4e5f46bc
./etc/rc.d/nfslocking type=file uname=root gname=wheel mode=0555 size=713 sha256=a14917de5834cc0c1b566989841f733c8e4b2a5da09daff4d454c0f2ca1577bf
./etc/rc.d/npf type=file uname=root gname=wheel mode=0555 size=896 sha256=9103d87fa1e4e496caaba757501dc0a5e478fd183d5b30d46f41a19b4af330cb
-./etc/rc.d/npf_boot type=file uname=root gname=wheel mode=0555 size=610 sha256=efb0829585447af3408fcea96e293b477d0c87af8db28d3d89a6b6e5624345f1
+./etc/rc.d/npf_boot type=file uname=root gname=wheel mode=0555 size=610 sha256=87041172f92be798d162be35acba4d1198e14f85f701435e29ecc99bc2f2e280
./etc/rc.d/npfd type=file uname=root gname=wheel mode=0555 size=281 sha256=6582f49ef17022f0b2e5b2345512276aadc0a668945cee7a85eae4b3bc05f941
./etc/rc.d/ntpd type=file uname=root gname=wheel mode=0555 size=2115 sha256=78f4509f1f1512822c889f68472dd63d5dbce98919bf1f33ae4a3ba1f545ea6f
./etc/rc.d/ntpdate type=file uname=root gname=wheel mode=0555 size=706 sha256=e9d11f56305abd4d6bc531fe51b00e01b186ed37948d8805b6d148e06d71b62c
./etc/rc.d/perusertmp type=file uname=root gname=wheel mode=0555 size=1068 sha256=36e1d8767a42b601a2e68e44589b7c8edf3eea8394c3ea34dce14b29cbdb4ff2
./etc/rc.d/pf type=file uname=root gname=wheel mode=0555 size=1153 sha256=3d264c7c0694a79dd6d8f556d70774f1fcd700035bbbe4892a57c447c93fced8
-./etc/rc.d/pf_boot type=file uname=root gname=wheel mode=0555 size=594 sha256=544e1695c38e18345c0f6fed58f279fd5398ae3a09471314692cfbd7fd47e093
+./etc/rc.d/pf_boot type=file uname=root gname=wheel mode=0555 size=594 sha256=12cf7de2fe7f8b7ad6bed6a287dd537c2e25c9579c854cf029deadd1d9c7404f
./etc/rc.d/pflogd type=file uname=root gname=wheel mode=0555 size=422 sha256=85cf80ad885c9a1173bed79cda212c408fb94c1042b52213f55a146e1ea57f1a
./etc/rc.d/postfix type=file uname=root gname=wheel mode=0555 size=2350 sha256=335d30475f4e092532b010fecf9d3ef4f426982bedc815851301910232b7f9a1
./etc/rc.d/powerd type=file uname=root gname=wheel mode=0555 size=256 sha256=9120dba82138f07b6f630fae1da29d2421adfb6e12da6231b1ae6550adfb8cb1
File: /etc/mtree/set.etc (modified)
Please select one of the following operations:
d Don't install the new file (keep your old file)
i Install the new file (overwrites your local modifications!)
m Merge the currently installed and new files
s Show the differences between the currently installed and new files
su Show differences in unified format ("diff -u")
sc Show differences in context format ("diff -c")
ss Show differences side by side ("sdiff -w120")
scommand Show differences using the specified diff-like command
v Show the new file
What do you want to do? [Leave it for later] i
差異に対する方針選択のプロンプトが表示されます。
本稿ではインストールを行うこととします。
『i』を入力して Enter を押下します。
--- /etc/rc.d/npf_boot 2021-05-13 05:26:03.991836540 +0900
+++ /tmp/temproot/etc/rc.d/npf_boot 2022-08-05 00:30:37.000000000 +0900
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: npf_boot,v 1.1.4.1 2019/10/06 11:13:35 martin Exp $
+# $NetBSD: npf_boot,v 1.1.4.3 2021/11/26 18:04:09 martin Exp $
#
# PROVIDE: npf_boot
File: /etc/rc.d/npf_boot (modified)
Please select one of the following operations:
d Don't install the new file (keep your old file)
i Install the new file (overwrites your local modifications!)
m Merge the currently installed and new files
s Show the differences between the currently installed and new files
su Show differences in unified format ("diff -u")
sc Show differences in context format ("diff -c")
ss Show differences side by side ("sdiff -w120")
scommand Show differences using the specified diff-like command
v Show the new file
What do you want to do? [Leave it for later] i
差異に対する方針選択のプロンプトが表示されます。
本稿ではインストールを行うこととします。
『i』を入力して Enter を押下します。
--- /etc/rc.d/pf_boot 2021-05-13 05:26:04.008272032 +0900
+++ /tmp/temproot/etc/rc.d/pf_boot 2022-08-05 00:30:37.000000000 +0900
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: pf_boot,v 1.4.52.1 2019/10/06 11:13:35 martin Exp $
+# $NetBSD: pf_boot,v 1.4.52.3 2021/11/26 18:04:09 martin Exp $
#
# PROVIDE: pf_boot
File: /etc/rc.d/pf_boot (modified)
Please select one of the following operations:
d Don't install the new file (keep your old file)
i Install the new file (overwrites your local modifications!)
m Merge the currently installed and new files
s Show the differences between the currently installed and new files
su Show differences in unified format ("diff -u")
sc Show differences in context format ("diff -c")
ss Show differences side by side ("sdiff -w120")
scommand Show differences using the specified diff-like command
v Show the new file
What do you want to do? [Leave it for later] i
一時ファイルの削除確認のプロンプトが表示されます。
『y』を入力して Enter を押下します。
*** No changes were needed
Remove /tmp/temproot? (y/[n]) y
健全性チェック (postinstall 処理) が自動的に実行され、システム設定ファイルのアップグレードが終了します。
*** Removing /tmp/temproot
*** Running /usr/sbin/postinstall
Note: Creating temporary directory /tmp/_postinstall.6571.0/etc.tgz
Note: Extracting files from /var/cache/sysupgrade/etc.tgz
Note: Extracting files from /var/cache/sysupgrade/xetc.tgz
Source directory: /tmp/_postinstall.6571.0/etc.tgz
(extracted from: /var/cache/sysupgrade/etc.tgz /var/cache/sysupgrade/xetc.tgz)
Target directory: /
bluetooth check:
ddbonpanic check:
defaults check:
(Checking for pf.boot.conf from /tmp/_postinstall.6571.0/etc.tgz/etc/defaults instead of /tmp/_postinstall.6571.0/etc.tgz/usr.sbin/pf/etc/defaults)
dhcpcd check:
(Checking for dhcpcd.conf from /tmp/_postinstall.6571.0/etc.tgz/etc instead of /tmp/_postinstall.6571.0/etc.tgz/external/bsd/dhcpcd/dist/src)
dhcpcdrundir check:
envsys check:
fontconfig check:
gid check:
gpio check:
hosts check:
iscsi check:
makedev check:
(Checking for MAKEDEV from /tmp/_postinstall.6571.0/etc.tgz/dev instead of /tmp/_postinstall.6571.0)
(Checking for MAKEDEV.local from /tmp/_postinstall.6571.0/etc.tgz/dev instead of /tmp/_postinstall.6571.0/etc.tgz/etc)
motd check:
mtree check:
named check:
pam check:
periodic check:
pf check:
(Checking for pf.os from /tmp/_postinstall.6571.0/etc.tgz/etc instead of /tmp/_postinstall.6571.0/etc.tgz/dist/pf/etc)
pwd_mkdb check:
rc check:
(Checking for blacklistd from /tmp/_postinstall.6571.0/etc.tgz/etc/rc.d instead of /tmp/_postinstall.6571.0/etc.tgz/external/bsd/blacklist/etc/rc.d)
ssh check:
(Checking for moduli from /tmp/_postinstall.6571.0/etc.tgz/etc instead of /tmp/_postinstall.6571.0/etc.tgz/crypto/external/bsd/openssh/dist)
wscons check:
x11 check:
xkb check:
uid check:
varrwho check:
tcpdumpchroot check:
atf check:
(Checking for NetBSD.conf from /tmp/_postinstall.6571.0/etc.tgz/etc/atf instead of /tmp/_postinstall.6571.0/etc.tgz/external/bsd/atf/etc/atf)
(Checking for atf-run.hooks from /tmp/_postinstall.6571.0/etc.tgz/etc/atf instead of /tmp/_postinstall.6571.0/etc.tgz/external/bsd/atf/dist/tools/sample)
catpages check:
manconf check:
ptyfsoldnodes check:
varshm check:
obsolete check:
postinstall checks passed: bluetooth ddbonpanic defaults dhcpcd dhcpcdrundir envsys fontconfig gid gpio hosts iscsi makedev motd mtree named pam periodic pf pwd_mkdb rc ssh wscons x11 xkb uid varrwho tcpdumpchroot atf catpages manconf ptyfsoldnodes varshm obsolete
postinstall checks failed:
*** All done
キャッシュディレクトリに取得したファイルを削除します。
raspberrypi# sysupgrade clean
sysupgrade: I: Cleaning downloaded files
NetBSD を再起動します。
raspberrypi# shutdown -r now
アップグレード完了後の OS のバージョンを確認します。
raspberrypi# uname -a
NetBSD raspberrypi 9.3 NetBSD 9.3 (GENERIC64) #0: Thu Aug 4 15:30:37 UTC 2022 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm