Skip to content

Commit 7783aac

Browse files
committed
corrected Debian Guide
1 parent a6ff8c7 commit 7783aac

File tree

2 files changed

+48
-56
lines changed

2 files changed

+48
-56
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
### Apt setup
2+
# Choose, if you want to scan additional installation media
3+
# (default: false).
4+
d-i apt-setup/cdrom/set-first boolean false
5+
# You can choose to install non-free firmware.
6+
#d-i apt-setup/non-free-firmware boolean true
7+
# You can choose to install non-free and contrib software.
8+
#d-i apt-setup/non-free boolean true
9+
#d-i apt-setup/contrib boolean true
10+
# Uncomment the following line, if you don't want to have the sources.list
11+
# entry for a DVD/BD installation image active in the installed system
12+
# (entries for netinst or CD images will be disabled anyway, regardless of
13+
# this setting).
14+
#d-i apt-setup/disable-cdrom-entries boolean true
15+
# Uncomment this if you don't want to use a network mirror.
16+
#d-i apt-setup/use_mirror boolean false
17+
# Select which update services to use; define the mirrors to be used.
18+
# Values shown below are the normal defaults.
19+
#d-i apt-setup/services-select multiselect security, updates
20+
#d-i apt-setup/security_host string security.debian.org
21+
22+
# Additional repositories, local[0-9] available
23+
#d-i apt-setup/local0/repository string \
24+
# http://local.server/debian stable main
25+
#d-i apt-setup/local0/comment string local server
26+
# Enable deb-src lines
27+
#d-i apt-setup/local0/source boolean true
28+
# URL to the public key of the local repository; you must provide a key or
29+
# apt will complain about the unauthenticated repository and so the
30+
# sources.list line will be left commented out.
31+
#d-i apt-setup/local0/key string http://local.server/key
32+
# or one can provide it in-line by base64 encoding the contents of the
33+
# key file (with `base64 -w0`) and specifying it thus:
34+
#d-i apt-setup/local0/key string base64://LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCi4uLgo=
35+
# The content of the key file is checked to see if it appears to be ASCII-armoured.
36+
# If so it will be saved with an ".asc" extension, otherwise it gets a '.gpg' extension.
37+
# "keybox database" format is currently not supported. (see generators/60local in apt-setup's source)
38+
39+
# By default the installer requires that repositories be authenticated
40+
# using a known gpg key. This setting can be used to disable that
41+
# authentication. Warning: Insecure, not recommended.
42+
#d-i debian-installer/allow_unauthenticated boolean true

_posts/2024-12-02-Cobbler-v3.3.7-Debian-Deployment-Guide.md

Lines changed: 6 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,10 @@ Configure the Cobbler Profile to use the new autoinstall (preseed) template:
163163
cobbler profile edit --name Debian12.8-x86_64 --autoinstall 'bookworm-sample.seed'
164164
```
165165

166-
Create a new Cobbler System to PXE boot and automatically install Debian 12 Bookworm, replacing the *"aa:bb:cc:dd:ee:ff"* with the MAC address of your PXE client, being sure not to use a duplicate MAC or IP addresse of any other Cobbler System.
166+
Finally, create a new Cobbler System to PXE boot and automatically install Debian 12 Bookworm, replacing the *"aa:bb:cc:dd:ee:ff"* with the MAC address of your PXE client, being sure not to use a duplicate MAC or IP addresse of any other Cobbler System, then sync up Cobbler.
167167

168168
```shell
169169
cobbler system add --name "Debian12.8" --profile Debian12.8-x86_64 --hostname "debian12-8" --mac-address "aa:bb:cc:dd:ee:ff" --netboot-enabled true --ip-address "10.0.0.12" --netmask "255.255.255.0" --gateway "10.0.0.1" --name-servers "10.0.0.1 1.1.1.1 8.8.8.8"
170-
```
171-
172-
Finally, restart and sync up Cobbler:
173-
174-
```shell
175-
systemctl restart cobblerd && sleep 10
176170
cobbler sync
177171
```
178172

@@ -199,7 +193,6 @@ cobbler profile edit --name Debian11.11-x86_64 --autoinstall bullseye-sample.see
199193

200194
cobbler system add --name Debian11.11 --profile Debian11.11-x86_64 --mac-address "aa:bb:cc:dd:ee:ff" --netboot-enabled true
201195

202-
systemctl restart cobblerd && sleep 10
203196
cobbler sync
204197
```
205198

@@ -225,7 +218,6 @@ Follow the instructions for supporting Debian deployments/repos given from the `
225218
yum install -y debmirror debian-keyring
226219
sed -i "s/@arches/#@arches/g" /etc/debmirror.conf
227220
sed -i "s/@dists/#@dists/g" /etc/debmirror.conf
228-
systemctl restart cobblerd && sleep 5
229221
cobbler sync
230222
cobbler check
231223
```
@@ -280,7 +272,6 @@ Add a Cobbler Distro and Profile for the new Debian repo, and the usual HTTP lin
280272
cobbler distro add --name Debian-latest --arch x86_64 --autoinstall-meta 'tree'='http://@@http_server@@/cblr/links/Debian-latest' --breed debian --os-version bookworm --initrd "/var/www/cobbler/pub/Debian12.8-netboot/initrd.gz" --kernel "/var/www/cobbler/pub/Debian12.8-netboot/vmlinuz"
281273
cobbler profile add --name Debian-latest --distro Debian-latest --autoinstall bookworm-latest.seed
282274
ln -s /var/www/cobbler/repo_mirror/Debian-latest /var/www/cobbler/links/Debian-latest
283-
systemctl restart cobblerd && sleep 5
284275
cobbler sync
285276
```
286277

@@ -303,52 +294,11 @@ Now the **PXE Client** should be able to boot from a generic/random MAC address
303294
304295
- The issue stems from the below section of the preseed file, retrieved drectly from Debian's official [stable](https://www.debian.org/releases/stable/example-preseed.txt) and [bookworm](https://www.debian.org/releases/bookworm/example-preseed.txt) example preseed files.
305296
306-
```shell
307-
### Apt setup
308-
# Choose, if you want to scan additional installation media
309-
# (default: false).
310-
d-i apt-setup/cdrom/set-first boolean false
311-
# You can choose to install non-free firmware.
312-
#d-i apt-setup/non-free-firmware boolean true
313-
# You can choose to install non-free and contrib software.
314-
#d-i apt-setup/non-free boolean true
315-
#d-i apt-setup/contrib boolean true
316-
# Uncomment the following line, if you don't want to have the sources.list
317-
# entry for a DVD/BD installation image active in the installed system
318-
# (entries for netinst or CD images will be disabled anyway, regardless of
319-
# this setting).
320-
#d-i apt-setup/disable-cdrom-entries boolean true
321-
# Uncomment this if you don't want to use a network mirror.
322-
#d-i apt-setup/use_mirror boolean false
323-
# Select which update services to use; define the mirrors to be used.
324-
# Values shown below are the normal defaults.
325-
#d-i apt-setup/services-select multiselect security, updates
326-
#d-i apt-setup/security_host string security.debian.org
327-
328-
# Additional repositories, local[0-9] available
329-
#d-i apt-setup/local0/repository string \
330-
# http://local.server/debian stable main
331-
#d-i apt-setup/local0/comment string local server
332-
# Enable deb-src lines
333-
#d-i apt-setup/local0/source boolean true
334-
# URL to the public key of the local repository; you must provide a key or
335-
# apt will complain about the unauthenticated repository and so the
336-
# sources.list line will be left commented out.
337-
#d-i apt-setup/local0/key string http://local.server/key
338-
# or one can provide it in-line by base64 encoding the contents of the
339-
# key file (with `base64 -w0`) and specifying it thus:
340-
#d-i apt-setup/local0/key string base64://LS0tLS1CRUdJTiBQR1AgUFVCTElDIEtFWSBCTE9DSy0tLS0tCi4uLgo=
341-
# The content of the key file is checked to see if it appears to be ASCII-armoured.
342-
# If so it will be saved with an ".asc" extension, otherwise it gets a '.gpg' extension.
343-
# "keybox database" format is currently not supported. (see generators/60local in apt-setup's source)
344-
345-
# By default the installer requires that repositories be authenticated
346-
# using a known gpg key. This setting can be used to disable that
347-
# authentication. Warning: Insecure, not recommended.
348-
#d-i debian-installer/allow_unauthenticated boolean true
349-
```
350-
351-
- As seen in the procdures above, `allow_unauthenticated` is set to true, which appears to only permit the installation to START when an untrusted repo mirror is found, but the mirror will be checked again before beginning the `apt-setup` phase, which `allow_unauthenticated` will not override.
297+
<pre>{% include example-preseed-excerpt.txt path="_includes/example-preseed-excerpt.txt" %}</pre>
298+
299+
1. (continued)
300+
301+
- As seen in the procedures above, `allow_unauthenticated` is set to true, which appears to only permit the installation to START when an untrusted repo mirror is found, but the mirror will be checked again before beginning the `apt-setup` phase, which `allow_unauthenticated` will not override.
352302
353303
- This means that the `debian-installer` also requires the local APT mirror to be defined using the `d-i apt-setup/local0/repository` & `d-i apt-setup/local0/key` preseed options in order for the PXE client to retrieve the public GPG key for the repo mirror and use it to validate the mirror, which seems to be configured properly through the preseed from Cobbler, verified with the following commands on the `debian-installer` system (and obviously can be done, since the workaround provided in this guide does essentially the same thing):
354304

0 commit comments

Comments
 (0)