Questions tagged [preseed]

Preseed files contain automatic answers for the Debian installer.

Questions about driving Debian GNU/Linux installations automatically would have this tag. The installer for Debian asks questions about the configuration of the OS as it goes along, and these answers are stored by a system called debconf. There are many ways to interact with debconf, including the text or graphic front-ends used by the installer, a Python API, and a preseed file. The file may appear in the root directory of an initrd, or be found at a URL given as a boot parameter or by DHCP. It contains answers to the installer's questions. It is also possible to use the answers as defaults but still let the user override them.

Here is an extract from a preseed file that does static IP configuration:

# Static network configuration.
d-i netcfg/get_nameservers string 192.168.1.1
d-i netcfg/get_ipaddress string 192.168.1.42
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.1
d-i netcfg/confirm_static boolean true
18 questions
15
votes
1 answer

Ubuntu preseed. Use whole disk space, but no swap

I'm trying to make a installation usb stick for a equipment we have here. I would like to automate linux installation, because we have a lot of these machines to install. The machine has a 30GB SSD . I want preseed to use the entire disk to create…
lcguida
  • 320
9
votes
4 answers

Set keyboard layout in debian wheezy with preseed

I want to install debian automatically. I've copied the example preseed file into the initrd, and verified that it contains d-i keymap select us In the installation system, /var/log/syslog contains a line successfully loaded preseed file from…
phihag
  • 2,806
7
votes
1 answer

How can partman partition more than one disk in a Debian installer preseed file?

Making partman partition a single disk is easy enough: d-i partman-auto/disk string /dev/xvda d-i partman-auto/method string regular d-i partman-auto/expert_recipe string \ boot-swap :: \ 2048 2048 -1 ext3 \ $primary{ } \ …
7
votes
0 answers

Debian/Ubuntu preseed generator?

All of these questions are related to the preseed support in the Debian Installer: https://wiki.debian.org/DebianInstaller/Preseed Is there a means, perhaps a .ubeb Debian-Installer extension, by which I could capture all the selections from an…
4
votes
1 answer

How to prevent Ubuntu 18.04.1 unattended install using preseed from booting to language selection?

I was able to setup a successful unattended install using Ubuntu 14.04 server (ubuntu-14.04.2-server-i386.iso). However, when I attempt to do the same with Ubuntu 18.04 server (ubuntu-18.04.1-server-amd64.iso) it keeps on booting up and displaying…
Kris
  • 163
  • 1
  • 5
2
votes
1 answer

Skip "Use network mirror?" in debian preseed

I'm trying to automatically install debian wheezy. In my preseed file, I have set apt-mirror-setup apt-setup/no_mirror boolean false Nevertheless, I get this annoying question: How do I turn it off and always activate a network mirror?
phihag
  • 2,806
2
votes
0 answers

Preseeding late command not running

I got into preseeding today. Pretty easy and powerful but I still got this late_command at the very end of my preseed.cfg file I can't get working. None of these are being run when deploying my server. Any idea why ..? Can't see anything relevant in…
JeanneD4RK
  • 243
  • 1
  • 3
  • 12
2
votes
0 answers

Debian preseeding and UEFI

I have the following preseed snippet for installing a Debian (Jessie) system on a single partition: d-i partman-auto/disk string /dev/sda d-i partman-auto/method string regular d-i partman-auto/choose_recipe select atomic d-i…
Magnus
  • 4,696
1
vote
2 answers

Ubuntu 12.10 iso image customization

I'm trying to create my own iso image based on Ubuntu 12.10 and I've got several questions. 1) How can I add user using preseed? I tried to do it this way, but I still have to enter the password in the graphical installation: d-i…
Anton
  • 11
1
vote
1 answer

Debian 11 preseed with LUKS and LVM

I've been trying to automate a Debian install on bare metal with preseed, but I'm stumbling on not being able to partition the filesystem correctly. What I want: EFI Boot Swap Encrypted FDE with a root partition and a /var partition. Both on…
user3767974
  • 13
  • 1
  • 5
1
vote
0 answers

PC won't boot to preseeded Ubuntu USB, but original Ubuntu works

I'm trying to setup several PCs with a preseeded copy of Ubuntu 18.04 LTS. So far, I've managed to use my preseeded USB drive for about 10 devices, but now I've got some older ones that just won't boot into the USB at all. Here's what I…
1
vote
1 answer

How to configure preseed file in Debian to make grub configuration point to correct drive

I have several computers with 2 drives (one is ssd, the other is hdd). I've created preseed file for automated deployment that works fine except for the part with partitioning. For now it is done manually but even in this case grub does not work…
1
vote
0 answers

Satisfying dependency errors whilst building Debian Jessie live CD with simple-cdd

I am trying to build a Debian install CD with simple-cdd, which is recommended as the easiest way to create a custom installer. The CD will have a few extra packages and a preseed file. Before adding any customisation I ran the tool to test a basic…
David
  • 111
1
vote
0 answers

Enabling systemd service with preseed

I'm trying to enable serial-getty@ttyS0.service to output getty to serial console as well as tty0. I have tried running systemctl enable serial-getty@ttyS0 but I suspect that systemd might not be running when late_command is running. Then I tried…
granra
  • 123
0
votes
1 answer

Trying to create two LVM groups using Preseed

Here's the trick of what I'm trying to do. I have VMs that I'm going to use to test a product feature. Testing that product feature requires that I configure the disks in different ways. My plan is to setup Preseed Files on a webserver that can be…
1
2