^autoinstall
This commit is contained in:
parent
11da1c5c24
commit
468e79f4db
|
@ -1,10 +1,5 @@
|
|||
#cloud-config
|
||||
autoinstall:
|
||||
# version is an Autoinstall required field.
|
||||
version: 1
|
||||
|
||||
# This adds the default ubuntu-desktop packages to the system.
|
||||
# Any desired additional packages may also be listed here.
|
||||
packages:
|
||||
- apt-rollback
|
||||
- bzip2
|
||||
|
@ -18,73 +13,32 @@ autoinstall:
|
|||
- ubuntu-desktop
|
||||
- unrar
|
||||
- winff
|
||||
|
||||
# This adds the default snaps found on a 22.04 Ubuntu Desktop system.
|
||||
# Any desired additional snaps may also be listed here.
|
||||
snaps:
|
||||
- name: firefox
|
||||
- name: gnome-3-38-2004
|
||||
- name: gtk-common-themes
|
||||
- name: snap-store
|
||||
- name: snapd-desktop-integration
|
||||
|
||||
# User creation can occur in one of 3 ways:
|
||||
# 1. Create a user using this `identity` section.
|
||||
# 2. Create users as documented in cloud-init inside the user-data section,
|
||||
# which means this single-user identity section may be removed.
|
||||
# 3. Prompt for user configuration on first boot. Remove this identity
|
||||
# section and see the "Installation without a default user" section.
|
||||
# identity:
|
||||
# realname: 'Usuário'
|
||||
# username: respin-rdx
|
||||
# A password hash is needed. `mkpasswd --method=SHA-512` can help.
|
||||
# mkpasswd can be found in the package 'whois'
|
||||
# password: '$6$Q58XN.vuCmKMTWrp$yT8OZSodi7Xl1n93Ak77rJrNr8pOWJJGEnkwBNPEEwTupAquaAcExldZ/2axH0mez7MrGPpWcF3EFowLvNcMv0'
|
||||
# hostname: Respin-RDX
|
||||
|
||||
# This inhibits user creation, which for Desktop images means that
|
||||
# gnome-initial-setup will prompt for user creation on first boot.
|
||||
user-data:
|
||||
users: ['']
|
||||
|
||||
# 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
|
||||
|
||||
# Ubuntu Desktop uses the hwe flavor kernel by default.
|
||||
early-commands:
|
||||
- echo 'linux-generic-hwe-22.04' > /run/kernel-meta-package
|
||||
|
||||
# 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 default filesystem and related tools not used with the suggested
|
||||
# 'direct' storage layout. These may yet be required if different
|
||||
# partitioning schemes are used.
|
||||
- >-
|
||||
curtin in-target -- apt remove -y
|
||||
btrfs-progs cryptsetup* lvm2 xfsprogs
|
||||
|
||||
# Remove other packages present by default in Ubuntu Server but not
|
||||
# normally present in Ubuntu Desktop.
|
||||
- >-
|
||||
curtin in-target -- apt remove -y
|
||||
ubuntu-server ubuntu-server-minimal
|
||||
|
@ -93,25 +47,8 @@ autoinstall:
|
|||
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 install -y cloud-init
|
||||
|
||||
# Finally, remove things only installed as dependencies of other things
|
||||
# we have already removed.
|
||||
- curtin in-target -- apt 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 -f /target/postinstall.sh
|
||||
- wget -qO --show-progress /target/postinstall.sh http://github.com/rauldipeas/respin-rdx/postinstall.sh
|
||||
- curtin in-target -- bash /postinstall.sh
|
||||
- rm /target/postinstall.sh
|
||||
|
||||
# Additional cloud-init configuration affecting the target
|
||||
# system can be supplied underneath a user-data section inside of
|
||||
# autoinstall.
|
||||
# user-data:
|
||||
# …
|
||||
- rm /target/postinstall.sh
|
Loading…
Reference in New Issue