Skip to content

Commit a3a05e6

Browse files
camozpaper42
authored andcommitted
Network install: Copy RSA keys from installation medium to target
This removes confusing warnings that "xbps might ask you to verify the RSA keys", and eases the installation process for the user, since no key fingerprints have to be compared manually. Closes #645
1 parent a7e39f8 commit a3a05e6

3 files changed

Lines changed: 21 additions & 15 deletions

File tree

src/installation/guides/chroot.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,20 @@ does not need to be the same. If your host is running an x86_64 operating
107107
system, any of the three architectures can be installed (whether the host is
108108
musl or glibc), but an i686 host can only install i686 distributions.
109109

110+
Copy the RSA keys from the installation medium to the target root directory:
111+
112+
```
113+
# mkdir -p /mnt/var/db/xbps/keys
114+
# cp /var/db/xbps/keys/* /mnt/var/db/xbps/keys/
115+
```
116+
110117
Use [xbps-install(1)](https://man.voidlinux.org/xbps-install.1) to bootstrap the
111118
installation by installing the `base-system` metapackage:
112119

113120
```
114121
# XBPS_ARCH=$ARCH xbps-install -S -r /mnt -R "$REPO" base-system
115122
```
116123

117-
`xbps-install` might ask you to [verify the RSA
118-
keys](../../xbps/troubleshooting/common-issues.md#verifying-rsa-keys) for the
119-
packages you are installing.
120-
121124
### The ROOTFS Method
122125

123126
[Download a ROOTFS

src/installation/guides/fde.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,22 +129,22 @@ On a UEFI system, the EFI system partition also needs to be mounted.
129129
# mount /dev/sda1 /mnt/boot/efi
130130
```
131131

132+
Copy the RSA keys from the installation medium to the target root directory:
133+
134+
```
135+
# mkdir -p /mnt/var/db/xbps/keys
136+
# cp /var/db/xbps/keys/* /mnt/var/db/xbps/keys/
137+
```
138+
132139
Before we enter the chroot to finish up configuration, we do the actual install.
133140
Do not forget to use the [appropriate repository
134141
URL](../../xbps/repositories/index.md#the-main-repository) for the type of
135142
system you wish to install.
136143

137-
`xbps-install` might ask you to [verify the RSA
138-
keys](../../xbps/troubleshooting/common-issues.md#verifying-rsa-keys) for the
139-
packages you are installing.
140-
141144
```
142145
# xbps-install -Sy -R https://alpha.de.repo.voidlinux.org/current -r /mnt base-system lvm2 cryptsetup grub
143146
[*] Updating `https://alpha.de.repo.voidlinux.org/current/x86_64-repodata' ...
144147
x86_64-repodata: 1661KB [avg rate: 2257KB/s]
145-
`https://alpha.de.repo.voidlinux.org/current' repository has been RSA signed by "Void Linux"
146-
Fingerprint: 60:ae:0c:d6:f0:95:17:80:bc:93:46:7a:89:af:a3:2d
147-
Do you want to import this public key? [Y/n] y
148148
130 packages will be downloaded:
149149
...
150150
```

src/xbps/troubleshooting/common-issues.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
## Verifying RSA keys
44

5-
If you are installing Void for the first time or the Void RSA key has changed,
6-
[xbps-install(1)](https://man.voidlinux.org/xbps-install.1) might report:
5+
If the Void RSA key has changed,
6+
[xbps-install(1)](https://man.voidlinux.org/xbps-install.1) will report the new
7+
key fingerprint and ask you to confirm it:
78

89
```
9-
<repository> repository has been RSA signed by <rsa_fingerprint>
10+
<repository> repository has been RSA signed by "Void Linux"
11+
Fingerprint: <rsa_fingerprint>
12+
Do you want to import this public key? [Y/n]
1013
```
1114

12-
To verify the signature, ensure the `<rsa_fingerprint>` matches one of the
15+
To verify the key, ensure the `<rsa_fingerprint>` matches one of the
1316
fingerprints in both
1417
[void-packages](https://github.com/void-linux/void-packages/tree/master/common/repo-keys)
1518
and [void-mklive](https://github.com/void-linux/void-mklive/tree/master/keys).

0 commit comments

Comments
 (0)