# Fichier autoinstall.yml pour autoinstallation Ubuntu 24.04 autoinstall: # version is an Autoinstall required field. version: 1 interactive-sections: # - network # - proxy - identity locale: "fr_FR.UTF-8" timezone: "Europe/Paris" keyboard: layout: "fr" variant: "latin9" # ssh: # install-server: true # install codecs, which currently means installing the # ubuntu-restricted-addons package codecs: install: true # install drivers as suggested by `ubuntu-drivers`. drivers: install: true # This adds the default ubuntu-desktop packages to the system. # Any desired additional packages may also be listed here. packages: - ubuntu-desktop - python3-poetry - git # Subiquity will, by default, configure a partition layout using LVM. # The 'direct' layout method shown here will produce a non-LVM result. # storage: # layout: # name: direct # Updates from both the security and updates pockets are installed. updates: all # Reboot après l'installation shutdown: reboot # The live-server ISO does not contain some of the required packages, # such as ubuntu-desktop or the hwe kernel (or most of their depdendencies). # The system being installed will need some sort of apt access. # proxy: http://192.168.0.1:3142 late-commands: # Enable the boot splash - >- curtin in-target -- sed -i /etc/default/grub -e 's/GRUB_CMDLINE_LINUX_DEFAULT=".*/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"/' - curtin in-target -- update-grub # Let NetworkManager handle network # - rm /target/etc/netplan/00-installer-config*yaml # - >- # printf "network:\n version: 2\n renderer: NetworkManager" # > /target/etc/netplan/01-network-manager-all.yaml # Remove other packages present by default in Ubuntu Server but not # normally present in Ubuntu Desktop. # - >- # curtin in-target -- apt-get remove -y # ubuntu-server ubuntu-server-minimal # binutils byobu curl dmeventd finalrd gawk # kpartx mdadm ncurses-term needrestart open-iscsi openssh-server # sg3-utils ssh-import-id sssd thin-provisioning-tools vim tmux # sosreport screen open-vm-tools motd-news-config lxd-agent-loader # landscape-common htop git fonts-ubuntu-console ethtool # # Keep cloud-init, as it performs some of the installation on first boot. # - curtin in-target -- apt-get install -y cloud-init # Finally, remove things only installed as dependencies of other things # we have already removed. # - curtin in-target -- apt-get autoremove -y # A postinstall script may optionally be used for further install # customization. Deploy this postinstall.sh script on the webserver. # - wget -O /target/postinstall.sh http://192.168.0.2/postinstall.sh # - curtin in-target -- bash /postinstall.sh # - rm /target/postinstall.sh - curtin in-target -- git clone https://git.libretic.fr/libretic/libreticmenu.git /opt/libreticmenu/ # - curtin in-target -- LANG=fr_FR.UTF-8 /opt/libreticmenu/libreticmenu.sh --firstboot