system installation – Ubuntu 18.04 – debian installer (preseed) not respecting max size on partitions

I am using preseed to do an unattended install of Ubuntu 18.04 using the following recipe, but it ends up with the lv_swap partition filling up the disk and it ends up with 60+GB.

How can I make the partitions respect the size described on the recipe:
1 GB /boot
20GB / (LVM)
20GB /var (LVM)
4 GB swap (LVM)
rest would be free space on LVM to be used later

d-i partman-auto/expert_recipe string
boot-root ::
1 1 1 free
$bios_boot{ }
method{ biosgrub }
1024 1024 1024 ext4
$primary{ }
$bootable{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /boot }
20480 20480 20480 ext4
$lvmok{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ / }
lv_name{ lv_root }
20480 20480 20480 ext4
$lvmok{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext4 }
mountpoint{ /var }
lv_name{ lv_var }
4096 4096 4096 linux-swap
$lvmok{ }
method{ swap } format{ }
lv_name{ lv_swap }

Thank you!

ubuntu – How can I add a kernel argument to a debian preseed file?

I’ve been using Debian preseed files for a while now doing netinstalls of Debian and Ubuntu.

Ubuntu 20.04 has a weird video problem even on the text terminal. After install, sometimes you can’t see anything. The host is working over the network properly but nothing on vga output.

Adding nomodeset to the kernel commmandline list fixes it.

I’d like to just add nomodeset to the kernel args that the system is installed with but I’m having a heck of a time finding the preseed option for specifying additional kernel arguments / kernel commandline.

I tried merely adding nomodeset during the launch of the installer but that didn’t appear to take hold on the installed environment eiher.

What is the proper way in a Debian Installer preseed file, to specify additional kernel arguments that should be applied to the installed system?

networking – Ubuntu 18.04 – Preseed downloaded from url

In our company, I’m creating Ubuntu 18.04.5 Desktop Autoinstaller ISO.
In ubuntu 20.04 network working correctly, but in 18.04 nothing.

Preseed is loaded with this command:

 url=http://localnetwork/seed.cfg auto=true boot=casper automatic-ubiquity initrd=/casper/initrd quiet splash ---

Unfortunately network in installer image not working, if preseed loaded from URL. In official Ubuntu docs, is written:

Of course, preseeding the network configuration won’t work if you’re
loading your preconfiguration file from the network. (…). If you are loading
preconfiguration files from the network, you can pass network config
parameters by using kernel boot parameters.

Although preseeding the network configuration is normally not possible
when using network preseeding (using “preseed/url”), you can use the
following hack to work around that, for example if you’d like to set a
static address for the network interface. The hack is to force the
network configuration to run again after the preconfiguration file has
been loaded by creating a “preseed/run” script containing the
following commands: kill-all-dhcp; netcfg

Question is: How to use network in ubuntu installer? Or how you can use this command?

I’m tried set these attempts (in seed.cfg file), but neither works.:

d-i preseed/run string ftp://localnetwork/ file, in this case, contains: #!/bin/sh kill-all-dhcp; netcfg


d-i preseed/early_command string kill-all-dhcp; /bin/netcfg


networking – ubuntu 18.04 ISO – Disable Network Configuration Prompts / Dialog via preseed config

During ubuntu iso 18.04 server install the network configuration manager dialog will showing if ethernet is not active.

Note: I have created unattended ubuntu 18.04 offline iso. hence I don’t want to show manual interaction like showing network configuration dialog. is there any way to disable the dialog since it has manually interacted?

Can we do it preseed file?

kindly help with this


package management – preseed uninstall

I’m having a problem with my preseed file for Ubuntu 20.04.

I’m trying to remove Rhythmbox, Thunderbird, Libreoffice and Remmina which are installed by default (I first checked on an install the package names), so I wrote :

d-i preseed/late_command string 
in-target apt remove -y --purge rhythmbox thunderbird libreoffice-core remmina

Everything is going fine and as soon as I log in, it didn’t work at all, everything I wanted to delete is there 🙁

Could somebody please help me? Thanks in advance 🙂

debian – preseed / late_command oh-my-zsh / debug

I can't seem to install oh-my-zsh properly d-i preseed/late_command. zsh and chsh work fine like all my other late_commands, but somehow the repo is not cloned and the installation does not take place.

I don't really know how to debug it as there are no errors (which would appear at the end of the installation process) and the computer just restarts and works normally, but without oh-my-zsh. Here are the preparatory interesting parts:

d-i preseed/late_command string 
apt-install zsh; 
in-target sh -c "mkdir -m 700 /root/.ssh ; echo 'ssh-rsa SOME_KEYS' > /root/.ssh/authorized_keys ; chmod 600 /root/.ssh/authorized_keys"; 
in-target sh -c "$(curl -fsSL"; 
in-target sh -c 'echo '"'"'PROMPT="%{$fg(magenta)%}%n%{$reset_color%} at %{$fg(yellow)%}%m%{$reset_color%} ${ret_status} %{$fg(cyan)%}%c%{$reset_color%} $(git_prompt_info)"'"'"' >> /root/.zshrc'; 
in-target sh -c 'echo '"'"'export PATH=$PATH:/usr/sbin'"'"' >> ~/.zshrc'; 
in-target chsh -s /bin/zsh;
  1. SSH key works great
  2. ~/.zshrc The file is only created with the PROMPT Variable and the export PATH... little
  3. wget and curl are both installed over d-i pkgsel/include string and are available as soon as you log in for the first time.
  4. My shell at boot is zsh

P.S. : It is a Debian installation.