Impossible to make a minized install with a full automatic install and the YAML user-data file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Hi,
In fact, I have 2 points.
1. I have made a full automatic install of Ubuntu 22.04 via the ISO ubuntu-
Could you add a key in user-data file to be able to make a "minimized" install?
2. In my humble opinion, the "minimized" install of Ubuntu should be more minimal. For instance snapd is installed (personally not used at all in my VM servers), git (same remark) etc. Below, I show you my "purge-
Could you make the "minimized" install more minimal, or, better, add a kind of "minimal" install option ("minimal" < "minimized"), callable in the "user-data file" (cf previous point)?
Thx for your help.
PS: just for the example, here is my "purge-
-------
#!/bin/sh
export PATH='/
export LC_ALL='C'
set -ue
useless_packages='
alsa-topology-conf
alsa-ucm-conf
apparmor
apport
apport-symptoms
at
bc
bcache-tools
bolt
btrfs-progs
byobu
cloud-initramfs
cloud-initramfs
cryptsetup
cryptsetup-bin
cryptsetup-
cryptsetup-run
curl
dbus-user-session
dconf-gsettings
dconf-service
dirmngr
eatmydata
ethtool
finalrd
fonts-ubuntu-
fwupd
fwupd-signed
gawk
gdisk
gir1.2-
git
git-man
gnupg
gnupg-l10n
gnupg-utils
gpg
gpg-agent
gpgconf
gpgsm
gpg-wks-client
gpg-wks-server
gsettings-
htop
kpartx
landscape-common
lxd-agent-loader
mdadm
motd-news-config
multipath-tools
open-iscsi
overlayroot
packagekit
packagekit-tools
pastebinit
patch
pinentry-curses
policykit-1
pollinate
python3-apport
python3-automat
python3-click
python3-colorama
python3-constantly
python3-debconf
python3-debian
python3-entrypoints
python3-hamcrest
python3-httplib2
python3-hyperlink
python3-incremental
python3-keyring
python3-
python3-
python3-lazr.uri
python3-newt
python3-openssl
python3-pexpect
python3-
python3-ptyprocess
python3-pyasn1
python3-
python3-
python3-
python3-
python3-simplejson
python3-
python3-systemd
python3-twisted
python3-wadllib
python3-
run-one
sbsigntool
screen
secureboot-db
sg3-utils
sg3-utils-udev
snapd
software-
sosreport
sound-theme-
squashfs-tools
thermald
thin-provisioni
tmux
tpm-udev
udisks2
unattended-upgrades
update-
upower
usbmuxd
vim
vim-runtime
xfsprogs
zerofree
'
export DEBIAN_
apt-get update
# Number of Physical Volumes LVM.
n_pv=$(pvs | wc -l)
if [ "$n_pv" = 0 ]
then
apt-get -y -q purge $(echo $useless_packages) "lvm2"
else
apt-get -y -q purge $(echo $useless_packages)
fi
# After that, lot of lib* packages can be removed.
apt-get -y --purge autoremove
exit 0
-------
After the execution of this script I have 298 packages installed:
~# dpkg -l | grep -c ^ii
298
tags: | added: fr-2399 |
https:/ /github. com/canonical/ subiquity/ pull/1375