zipposativ
Goto Top

Debian Live Build - Installiert keine Pakete und Verzeichnisse

Hallo Zusammen,

ich baue grade mit dem Live Build Tool von Debian eine ISO für ein Projekt. In diesem möchte ich gerne , dass einige Pakete installiert werden (Nginx, Asterisk usw.). Wenn ich das über dem dokumentierten Pfad mache (config/package-lists/software.list.chroot) werden diese nicht mit in die installierte Version mit aufgenommen.

Ich habe auch schon mehrere Variationen ausprobiert.

- config/package-lists/software.list.chroot_install
- config/package-lists/software.list.binary
- config/package-lists/software.list
- config/packages/software.list.chroot
- config/packages/software.list.binary
- config/packages/software.list

Ich such aktuell schon über eine Woche nach einer Lösung und finde keinen weiteren Ansatz. Ebenso habe ich ein ähnliches Problem bei dem Aufbau der Verzeichnisse. In der Dokumentation ist es so beschrieben, dass die Pfade und Dateien in dem Verzeichnis config/includes.chroot angelegt werden sollen.
Sprich config/chroot/etc/motd. Wenn ich dies tue, sind in der Installierten Variante auch diese Pfade und Dateien nicht zu finden. Hier habe ich auch schon folgende Sachen probiert:

- config/chroot_after_packages/etc/motd
- config/chroot_before_packages/etc/motd
- config/rootfs/etc/motd

Mein config/ Verzeichnis sieht wie folgt aus:
drwxr-xr-x  2 root root 4096 Jul 11 06:59 apt
drwxr-xr-x  2 root root 4096 Jul 11 06:59 archives
-rw-r--r--  1 root root 2133 Jul 15 11:25 binary
drwxr-xr-x  9 root root 4096 Jul 12 09:04 bootloaders
-rw-r--r--  1 root root 2275 Jul 15 11:25 bootstrap
-rw-r--r--  1 root root  724 Jul 15 11:25 chroot
-rw-r--r--  1 root root 2161 Jul 15 11:25 common
drwxr-xr-x  2 root root 4096 Jul 11 06:59 debian-installer
drwxr-xr-x  4 root root 4096 Jul 11 06:59 hooks
drwxr-xr-x  2 root root 4096 Jul 15 11:46 includes
drwxr-xr-x  2 root root 4096 Jul 11 06:59 includes.binary
drwxr-xr-x  2 root root 4096 Jul 15 11:53 includes.bootstrap
drwxr-xr-x  2 root root 4096 Jul 15 06:23 includes.chroot_after_packages
drwxr-xr-x  2 root root 4096 Jul 11 06:59 includes.chroot_before_packages
drwxr-xr-x  2 root root 4096 Jul 15 11:09 includes.installer
drwxr-xr-x  2 root root 4096 Jul 11 06:59 includes.source
drwxr-xr-x  2 root root 4096 Jul 15 11:54 package-lists
drwxr-xr-x  2 root root 4096 Jul 15 11:54 packages
drwxr-xr-x  2 root root 4096 Jul 11 06:59 packages.binary
drwxr-xr-x  2 root root 4096 Jul 11 06:59 packages.chroot
drwxr-xr-x  2 root root 4096 Jul 11 06:59 preseed
drwxr-xr-x  3 root root 4096 Jul 15 11:46 rootfs
-rw-r--r--  1 root root  138 Jul 15 11:25 source

Mein lb config Befehl (Auch schon mehrere Variationen ausprobiert):

lb config \
--apt-secure false \
--apt-recommends true \
--firmware-binary true \
--firmware-chroot true \
--architecture amd64 \
--binary-image iso \
--bootloaders grub-efi \
--cache true \
--debian-installer cdrom \
--debian-installer-gui false \
--distribution bullseye \
--image-name name \
--iso-application name \
--iso-preparer name \
--iso-publisher name \
--iso-volume name \
--memtest memtest86+ \
--mode debian \
--security true \
--source false \
--source-image iso \
--system normal \
--updates true \
--win32-loader false \
--verbose \
--archive-areas "main contrib non-free"  

So sieht meine preseed.cfg aus dem Verzeichnis config/includes.installer/preseed.cfg aus:

#### Contents of the preconfiguration file

### Splash
d-i debian-installer/splash boolean false

### Localization
# Preseeding only locale sets language, country and locale.
#d-i debian-installer/locale string de_DE

# Keyboard selection.
# keymap is an alias for keyboard-configuration/xkb-keymap
#d-i keymap select de

### Console
#d-i console-setup/ask_detect boolean false
#d-i console-setup/layoutcode string de
#d-i console-setup/variantcode string

### Network configuration
# netcfg will choose an interface that has link if possible. This makes it
# skip displaying a list if there is more than one interface.
d-i netcfg/choose_interface select auto
# Explicitly set the nameservers
#d-i    netcfg/get_nameservers  string 8.8.8.8 8.8.4.4

# To pick a particular interface instead:
#d-i netcfg/choose_interface select eth1

# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
#d-i netcfg/get_hostname seen true
#d-i netcfg/get_domain seen true
d-i netcfg/get_hostname string hostname
d-i netcfg/get_domain string

# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is, uncomment
# and adjust the following line.
d-i netcfg/hostname string hostname

# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string

### Account setup
# Create root login
d-i passwd/root-login boolean true

# Skip creation of a normal user account.
d-i passwd/make-user boolean false

### create a password with `printf "joyent" | mkpasswd -s -m md5` 
# This password gets removed in late_command
# TODO: Figure out how to not set a password here. Use value "!"? 
#d-i passwd/root-password-crypted password $1$qHFOhAjw$AjgoyfS8u32uqV8qsL1r70

### Clock and time zone setup
#d-i clock-setup/utc boolean true
#d-i time/zone string UTC
#d-i clock-setup/ntp boolean true
#d-i clock-setup/ntp-server string 0.debian.pool.ntp.org
### Programs

###Abw
popularity-contest popularity-contest/participate boolean false
#d-i pkgsel/upgrade select none
d-i pkgsel/run_tasksel boolean false
d-i pkgsel/include string build-essential

# Vorgabewert für das Protokoll des Spiegel-Servers: http.
#d-i mirror/protocol string ftp
d-i mirror/country string manual
d-i mirror/http/hostname string ftp2.de.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string


Ich hoffe mir kann einer bei diesem Problem helfen. Ich danke euch für eure Kommentare.

Content-Key: 71551795395

Url: https://administrator.de/contentid/71551795395

Printed on: July 16, 2024 at 08:07 o'clock