Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [preseed]

Preseeding refers to the practice used to automate the installation of Debian GNU/Linux and many of its derivative distributions in a non-interactive manner. This is done by providing answers to the installer questions in a format file known as a preseed file.

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

syslinux.cfg ignores preseed/url on PXE boot

I'm trying to make a pxe-booted debian installer load a preseed file by default. I've verified that the preseed file works because I can point the installer to it manually and the installation begins....
user2864874's user avatar
0 votes
1 answer
252 views

Debian-installer custom luks crypto recipe

I want to automate the install of Debian and have control over how the partitioning is done by providing a custom recipe. It was easy enough (ish) when I wasn't using luks or lvm, but I can't get the ...
a2k42's user avatar
  • 131
0 votes
1 answer
567 views

Debian preseed installation is failing if there a previous OS installed

I am trying to automate the install of Debian 12. It is working correctly when I wipe the disk off using a live cd but I want the preseed iso to wipe the disk off instead and continue with ...
rocky_alpine's user avatar
5 votes
1 answer
2k views

How to add a public ssh key using debian preseed file?

Using debian preseeding, I want to copy a public key to /root/.ssh/authorized_keys with correct permissions so that I can use ansible to configure the rest of system. I already selected openssh-server ...
Cruise5's user avatar
  • 506
1 vote
0 answers
832 views

Automatic installation using Debian with preseed inserted into initrd ignores keyboard configuration

This is my full preseed.cfg: # Locales d-i debian-installer/language string en_GB:en d-i debian-installer/country string ES d-i debian-installer/locale string en_GB.UTF-8 # Keyboard d-i keyboard-...
Adrián Jaramillo's user avatar
2 votes
0 answers
319 views

Debian installer unable to detect preseed.cfg file

I am trying to do a fully headless Debian install for an old x86_64 Windows NAS that has no display output. Aside from serial interfacing (which is not documented for my hardware), preseeding is my ...
Marwi's user avatar
  • 131
2 votes
0 answers
103 views

Best practice for including custom .deb in Debian preseed

I have a bootable Debian 11 USB drive, and I'm writing a preseed configuration file to be loading at installation time. I've written a custom app.deb (not the actual name), and my goal is to have it ...
Ethan Hill's user avatar
1 vote
0 answers
424 views

Debian-installer preseed: include sub-files and running multiple late_ and early_ commands

I have been using a preseeded USB disk for a few years now, but am hitting a wall. One of my machines needs the RTW89 module and firmware to access the internet. I have succeeded in building the ...
zenlord's user avatar
  • 708
1 vote
1 answer
1k views

Debian net install to preseed hostname and domain name

Basically the opposite of Debian preseed: How to force prompt for hostname and domain? With the new Debian bullseye release, the net install is asking me for hostname and domain name. How to preseed ...
xpt's user avatar
  • 1,624
0 votes
1 answer
788 views

How do you load a third-party module in debian-installer?

I'm trying to install Debian Bullseye on a new Lenovo laptop (T14s Gen1). The laptop has a Realtek 8852AE wifi chip, for which currently no driver has been added to the kernel. There is a Github ...
zenlord's user avatar
  • 708
1 vote
1 answer
436 views

Schedule reboot in the background during debian preseeding

I want to schedule a 30-minute reboot timer inside a Debian preseed so that in case of download problems etc. the installation does not hang (requiring someone on-site to reboot the machine manually). ...
user478797's user avatar
0 votes
1 answer
91 views

Replace awk in this command

I am struggling with a preseed-script for Debian and figured out that awk is not available in the installation process. A little context The preseed-script fails at the following line and returns ...
SPQRInc's user avatar
  • 103
1 vote
1 answer
2k views

Debian preseed does not create encrypted disk with LUKS LVM properly

I'm trying to create a LUKS LVM disk partition autmatically using preseed on Debian 10 (Buster). I have only a single disk /dev/sda with the size of 80GB and it has system memory of 4GB Here is my ...
ToiletGuy's user avatar
  • 195
2 votes
1 answer
2k views

How to mount /dev/sdb to /cdrom on Debian installation startup

I'm trying to install Debian 10 using this official ISO file: http://cdimage.debian.org/cdimage/release/current/amd64/iso-cd/debian-10.9.0-amd64-netinst.iso I modified this ISO file to automated with ...
ToiletGuy's user avatar
  • 195
0 votes
1 answer
273 views

How to replace Shuf with rand (from C++) with a seed of time in order to make my script more random [closed]

I have this script that extracts 200 random characters from a set: tail -n+2 file.fasta | tr -d '\n' > newfile n=$(stat -c "%s" newfile) r=$(shuf -i1-"$((n-200+1))" -n1) newfile ...
GSQ's user avatar
  • 37
1 vote
1 answer
1k views

Ubuntu preseed file: setting up multiple user accounts?

As mentioned in this link: https://help.ubuntu.com/lts/installation-guide/s390x/apbs04.html, it is possible to create a "...password for a first regular user's account" during an unattended ...
bstabens's user avatar
1 vote
1 answer
644 views

Not able to understand the way the debconf variables are initialized in the preseed configuration

Recently I inherited a lab but unfortunately the person who had setup has left the organization. I am finding trouble in understanding the pxe installation flow at the point where the debconf ...
Karthik's user avatar
  • 155
1 vote
1 answer
193 views

Disable services with preseed

I need to disable apache service with preseed file. Is there any options to run systemctl disable command with preseed?
Ash Adams's user avatar
0 votes
0 answers
645 views

how to preseed snap packages?

I am trying to create a custom ubuntu image, but can only do it from chroot because of cubic limitations. In that custom image, however, I want to include snaps, which require snapd to be running. ...
Coolguy129's user avatar
0 votes
1 answer
1k views

How to prevent prompt that asks to restart services when using preseed files

I have set up a custom installation CD based on Debian/Ubuntu. It completely automates the installation apart from asking for the hostname and the system account's password. All was working as ...
Tony Cooper's user avatar
0 votes
1 answer
761 views

How to skip the need to choose "Install" and hit "enter" in automated (preseeded) Debian install?

When automating the installation of a Debian system with the preseed mechanism, I have to manually choose the "Install" option and hit "enter" to start the installation process from an ISO image on ...
Flo's user avatar
  • 603
0 votes
1 answer
433 views

What Debian preseed parameter(s) avoids warning about EFI installation in connection with already installed system on disk?

I'm working on the automation of installing Debian by using the preseed mechanism. The final install question that keeps popping up warns me about an EFI installation. It says an EFI installation may ...
Flo's user avatar
  • 603
1 vote
1 answer
1k views

How to specify reproducible disk partitions in Debian preseed file when device file ordering (sda, sdb ...) may change?

I'm about to automate the installation of Debian by using the preseed mechanism (preseed file added to initrd). The computers to be provisioned have multiple SATA disks. I would like to specify in ...
Flo's user avatar
  • 603
0 votes
1 answer
640 views

How to modify a Debian (Buster) installer to include a preseed.cfg?

I took the Debian ISO and created a bootable USB stick with Rufus. After that I modified the stick to include my preseed.cfg: #! /bin/bash initrd="/mnt/install.amd/initrd.gz" rm -rf tmp mkdir tmp ...
ceving's user avatar
  • 3,599
4 votes
2 answers
6k views

How do I set mirrors in /etc/apt/sources.list with a Debian preseed file?

I'm building a custom ISO image of Debian 10 stable ("buster") using preseeding, and my custom preseed.cfg file works perfectly except for one thing: I'd like it to configure /etc/apt/sources.list ...
Michael A's user avatar
  • 1,603
1 vote
1 answer
1k views

Manipulating preseed options during debian-installer

Currently I am trying to build a more or less dynamic preseed. This means I am creating custom templates/question and depending on the answers I want to set specific "d-i" options. My environment is ...
Sefer's user avatar
  • 21
0 votes
1 answer
424 views

Debian 10 preseeded two disk install

I need to make preseed file that installs system on lesser disk and /var -- on larger. I was told that I'd require scripts for this since I don't want to use RAID or LVM. I am unaware, though, about ...
Heldrick's user avatar
1 vote
1 answer
550 views

Custom built kernel supposedly not usable on amd64 during preseeded installation

I need a more up to date kernel than what even buster ships with (5.1.x to be precise) due to the hardware I'm using. Building that kernel is nor problem whatsoever 8building it with make deb-pkg) and ...
BrainStone's user avatar
  • 3,704
3 votes
2 answers
3k views

Issues with installing NetworkManager during Debian installation with preseeding

I'm currently in the progress of preseeding a Debian installation with custom setup scripts running after the actual installation to create a simple installer that will create everything that I need. ...
BrainStone's user avatar
  • 3,704
4 votes
4 answers
2k views

install grub bootloader dynamically to multiple disks

I am trying to preseed installing grub dynamically with to two disks with an early_command. I am using IPXE. Here is the relevant part: d-i partman/early_command string \ DISKA=$(realpath /dev/disk/...
Max's user avatar
  • 335
2 votes
1 answer
1k views

boot parameters seems not to work with ipxe and daily image

I am trying to auto install debian buster with ipxe, it seems that the boot parameters don't work in the ipxe menu. I always get the language section. So the preseed isn't loaded. Here is the relevant ...
Max's user avatar
  • 335
2 votes
3 answers
2k views

Preseeding debian installation still asks for network card

I am using debian installer together with a preseed config-file to automate installation steps. Currently the network-card selection still shows up and I cannot find out why. I have the following ...
centic's user avatar
  • 125
4 votes
1 answer
5k views

PXE boot debian-installer preseed.cfg - how to get to present only certain questions (eg. hostname)

I'm currently playing around with debian-installer at home (using Devuan Linux) over PXE boot and would like to have the installer ask for a hostname and domain with pre-set default value for the ...
lsward's user avatar
  • 71
0 votes
1 answer
1k views

Cannot preseed grub-installer/bootdev

I would like to install Ubuntu to smallest HDD in my computer system config via preseed. It works fine but when smaller HDD not /dev/sda(eg /dev/sdb) I have an error "Executing 'grub-install/dev/...
Pavel Ladyzhenskyi's user avatar
2 votes
1 answer
545 views

keep dvd entry in sources.list during preseeded debian9.5 install

I'm trying to install Debian 9.5 preseeded on an offline VM. The install breaks because it can't install the package grub-pc. Research up to now shows that (presumably at this point during the ...
kaba's user avatar
  • 151
2 votes
0 answers
779 views

Debian-installer using PXE with preseeded config and two network interfaces

I'm trying to setup a kind of installation server. In my setup every machine has two network interfaces: - eno1 which is connected to the internet, there is DHCP server that I do not own and can't ...
Matt's user avatar
  • 21
2 votes
1 answer
2k views

Reconfigure grub in preseed late_command

When I install debian using the preseeded file, I have a live USB stick mounted as sda1 and ssd drive as sdb1. So I install MBR to sdb1. But when USB stick is removed SSD drive becomes sda1. And /boot/...
Artur Korobeynyk's user avatar
0 votes
1 answer
1k views

Debian preseed swap label

I'm preseeding my Debian installation quite successfully, but I have one problem. I want my swap partition to be labeled, but the installer is ignoring the label { } element. The partion is created, ...
Kamil's user avatar
  • 1,481
7 votes
1 answer
5k views

Preseed directive to skip another CD/DVD scanning

Please see the image below, is there a preseed directive to skip this Debian9 installer step? Currently I use the following config relevant to the package manager: ### Apt setup d-i apt-setup/non-free ...
NarūnasK's user avatar
  • 2,385
0 votes
1 answer
990 views

Creating a preseed.cfg with docker and gitlab-ci-multi-runner installed, why it's always commented out?

I have my preseed almost working like I would like but for some reason, I can't have those two repositories added to the source.list file. It's always commented out that it can't verify them. I know ...
Maxime Roussin-Bélanger's user avatar
1 vote
0 answers
4k views

Creating GPT partitions with preseed

I am installing Ubuntu 16.04 with iPXE and trying to create GPT partitions with preseed as follows: d-i partman-basicfilesystems/choose_label string gpt d-i partman-basicfilesystems/default_label ...
Max's user avatar
  • 335
2 votes
2 answers
2k views

How to get device serial number when running Debian preseed installation?

I know that you could extract serial number from machine running dmidecode -t system, but how could I do that when running preseed installation of Debian? dmidecode command is not yet available, is it ...
Maksim Luzik's user avatar
  • 2,443
2 votes
1 answer
418 views

Looking for answers related to custom images and installers

Okay so I'm attempting to build my own custom live CD and eventually a distro based on Debian, using the live-build tools and squashfs-tools/chroot to modify the image. I'm also playing around with ...
Michael Strobel's user avatar
1 vote
2 answers
3k views

How to preseed debconf password fields?

I previously asked (and answered) a question on how to preseed debconf on Ubuntu: How do you preseed debconf from a previously installed package? I found that just appending to the config.dat file ...
Zach Smith's user avatar
1 vote
1 answer
620 views

How do you preseed debconf from a previously installed package?

I would like to install a package (CouchDB 2.1) without having to manually respond to the prompt. I believe that preseeding debconf is the way this is done. The debconf manual () says this: The ...
Zach Smith's user avatar
2 votes
0 answers
1k views

Using preseed (Debian/Ubuntu) to partition both RAID and encryption

I am trying to configure a preseed image using RAID + encryption. I originally wanted to do this without LVM, however it does not seem (at least with encryption) that this is possible. I simply want ...
Andre Goree's user avatar
1 vote
1 answer
661 views

debian-installer: unloaded ahci kernel module when using preseed

I use the debian-installer-9-netboot-amd64 package, version 20170615+deb9u1, to automaticly install lot of computers. I use the following preseed: # Langue et mappage clavier d-i debian-...
user avatar
2 votes
1 answer
827 views

Preseed - not enough disk space? [closed]

I'm trying to get a Preseed file working on a 119GB hard drive and it seems there is not enough space. Basically what I want to do: /dev/sda1 ext4 mountpoint /boot size 512MB /dev/sda2 lvm into vg1 ...
Costin Balan's user avatar
1 vote
0 answers
1k views

Retrying during preseed

I have written a relatively successful preseed file, with one exception. On certain machines, it will take two tries to detect disks, and on certain machines, it will take two tries to connect to DHCP....
Academiphile's user avatar
0 votes
2 answers
1k views

Preseed existing partitions

Given one disk (e.g. /dev/sda) which is known to already contains some partitions (e.g. /dev/sda1, /dev/sda2, /dev/sda3). Is it possible to run preseed on such disk (meaning: partition the rest of ...
lakier's user avatar
  • 376