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
0answers
14 views

selecting disks for system Debian installation

I'm installing Debian/buster using a preseed file. #### Partitioning d-i partman-auto-lvm/new_vg_name string sys d-i partman-auto-lvm/guided_size string max d-i partman-lvm/device_remove_lvm boolean ...
0
votes
0answers
10 views

Use Preseed to chose boot system

I'm installing Debian/buster using a preseed file. There is a dnsmasq with a configured dhcp and tftp server and a preseed file for automatic installation. The automatic installation of the server via ...
0
votes
1answer
59 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 ...
0
votes
1answer
46 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 ...
0
votes
0answers
17 views

Where shall I store dotfiles on Debian ISO to preseed them after?

d-i preseed/late_command string \ cp -v --no-preserve=all /dotfiles/.whatever /target/home/user/; \ in-target sed -i "1s/^/\/\/hi there from $(date)\n/" ~/.whatever Is it ok to store ...
1
vote
1answer
32 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 ...
1
vote
1answer
43 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?
0
votes
0answers
255 views

Automate Debian installation with preseed in initrd

I'm trying to automate the installation of Debian in a Virtualbox VM. According to this article : If you are using initrd preseeding, you only have to make sure a file named preseed.cfg is included ...
0
votes
0answers
146 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. ...
0
votes
0answers
70 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 ...
0
votes
1answer
48 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 ...
0
votes
1answer
93 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 ...
1
vote
1answer
159 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 ...
0
votes
0answers
37 views

Use Encrypted LVM with preseed file in Linux

I am working on a project to create an unattended installation of Debian via a preseed file with encrypted LVM. I am lost as I have no clue on how to implement encrypted LVM via preseed file. I ...
0
votes
1answer
142 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 ...
3
votes
1answer
681 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 ...
1
vote
1answer
174 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 ...
0
votes
1answer
123 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 ...
1
vote
1answer
200 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 ...
3
votes
2answers
961 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. ...
2
votes
3answers
731 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/...
2
votes
1answer
612 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 ...
2
votes
2answers
214 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 ...
3
votes
1answer
2k 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 ...
0
votes
1answer
822 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/...
2
votes
1answer
230 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 ...
2
votes
0answers
263 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 ...
1
vote
1answer
1k 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/...
0
votes
1answer
575 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, ...
5
votes
1answer
3k views

Preseed directive to skip another CD/DVD scanning

Please see the image below, is there 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 ...
0
votes
1answer
655 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 ...
1
vote
0answers
3k 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 ...
2
votes
2answers
626 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 ...
2
votes
1answer
264 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 ...
1
vote
2answers
2k 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 ...
1
vote
1answer
371 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 ...
2
votes
0answers
833 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 ...
1
vote
1answer
461 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-...
2
votes
1answer
535 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 ...
1
vote
0answers
785 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....
0
votes
2answers
609 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 ...
0
votes
1answer
235 views

Preseeding a Debian Jessie doesn't yield a default gateway

I used this in the .seed file: d-i netcfg/choose_interface select eth0 d-i netcfg/get_hostname string fj4.testnet d-i netcfg/disable_autoconfig boolean true d-i netcfg/dhcp_failed note d-i netcfg/...
5
votes
3answers
8k views

Using d-i partman recipe strings?

I want to automatically partition all of my workstations in the same way: First partition is a bootable 1GB ext4 /boot partition Second partition is a 2GB swap partition Third partition is an ext4 / ...
5
votes
1answer
1k views

Debian preseed doesn't create lvm's, but are in the expert recipe

I created a preseed script with help from this blog and I altered it to create some logical volumes on it too. The result of the script is this: d-i debian-installer/locale string en_US.UTF-8 d-...
2
votes
1answer
2k views

Alpine Installation with preseed cfg

I would like to install Alpine using preseed.cfg. However, I cannot find one online. Does alpine support preseed in the first place? If yes, is it possible to edit another preseed and adopt it for ...
1
vote
1answer
89 views

Changing PXE preseed instructions based on desktop vs laptop?

I am making a Debian 8 PXE preseed to roll out to both laptops and desktops. I would like certain commands to be run depending on whether the host is a laptop or a desktop, ie: if laptop then command ...
2
votes
1answer
794 views

What does `console-setup/ask_detect` in a preseed config do?

I can't find anything on ask_detect in any of the man pages for setupcon and almost all my search results are examples of preseed files with it set to false; nothing useful at all. What does it ...
1
vote
1answer
1k views

Preseed Multiple Disks

I have machines in my environment with either 1 or 2 disks/arrays. I would like preseed to use all disk space regardless of how many the box has. The problem is: My current partitioning scheme hangs ...
4
votes
0answers
1k views

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 ...
2
votes
1answer
547 views

Debian preseed.cfg partman specify_usage for news

I am trying to utilize partman as part of a packer built base image. We need to declare the root system as a 'news' usage to increase the number of inodes. I cannot enable usage flags for the ...