image: distribution: "alpinelinux" source: downloader: alpinelinux-http same_as: 3.12 url: https://mirror.csclub.uwaterloo.ca/alpine/ keys: # 0482D84022F52DF1C4E7CD43293ACD0907D9495A - |- -----BEGIN PGP PUBLIC KEY BLOCK----- mQINBFSIEDwBEADbib88gv1dBgeEez1TIh6A5lAzRl02JrdtYkDoPr5lQGYv0qKP lWpd3jgGe8n90krGmT9W2nooRdyZjZ6UPbhYSJ+tub6VuKcrtwROXP2gNNqJA5j3 vkXQ40725CVig7I3YCpzjsKRStwegZAelB8ZyC4zb15J7YvTVkd6qa/uuh8H21X2 h/7IZJz50CMxyz8vkdyP2niIGZ4fPi0cVtsg8l4phbNJ5PwFOLMYl0b5geKMviyR MxxQ33iNa9X+RcWeR751IQfax6xNcbOrxNRzfzm77fY4KzBezcnqJFnrl/p8qgBq GHKmrrcjv2MF7dCWHGAPm1/vdPPjUpOcEOH4uGvX7P4w2qQ0WLBTDDO47/BiuY9A DIwEF1afNXiJke4fmjDYMKA+HrnhocvI48VIX5C5+C5aJOKwN2EOpdXSvmsysTSt gIc4ffcaYugfAIEn7ZdgcYmTlbIphHmOmOgt89J+6Kf9X6mVRmumI3cZWetf2FEV fS9v24C2c8NRw3LESoDT0iiWsCHcsixCYqqvjzJBJ0TSEIVCZepOOBp8lfMl4YEZ BVMzOx558LzbF2eR/XEsr3AX7Ga1jDu2N5WzIOa0YvJl1xcQxc0RZumaMlZ81dV/ uu8G2+HTrJMZK933ov3pbxaZ38/CbCA90SBk5xqVqtTNAHpIkdGj90v2lwARAQAB iH8EEhYKACcWIQRQQFYXHWwYKA6Ezfe2Zm2RwjfyiQUCWsf0cgWDAeEzgAMFATwA CgkQtmZtkcI38okvzwD+PFAaXtH+KkuIzYJPH1rlaswCx2ALFYUMR7ptsWNbQQwA /iaqtZns6UngP85uNyKNLjoxIWK3+WRQ8Cj3+pFBU58EtCVOYXRhbmFlbCBDb3Bh IDxuY29wYUBhbHBpbmVsaW51eC5vcmc+iH8EEhYKACcWIQRQ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ets: lxc: create_message: | You just created an {{ image.description }} container. config: - type: all before: 5 content: |- lxc.include = LXC_TEMPLATE_CONFIG/alpine.common.conf - type: user before: 5 content: |- lxc.include = LXC_TEMPLATE_CONFIG/alpine.userns.conf - type: all after: 4 content: |- lxc.include = LXC_TEMPLATE_CONFIG/common.conf - type: user after: 4 content: |- lxc.include = LXC_TEMPLATE_CONFIG/userns.conf - type: all content: |- lxc.arch = {{ image.architecture_personality }} incus: vm: filesystem: ext4 files: - path: /etc/hostname generator: hostname - path: /etc/hosts generator: hosts - generator: fstab types: - vm - generator: incus-agent types: - vm - path: /etc/default/grub generator: dump pongo: true content: |- # Set the recordfail timeout GRUB_RECORDFAIL_TIMEOUT=0 # Do not wait on grub prompt GRUB_TIMEOUT=0 # Set the default commandline GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0 modules=sd-mod,usb-storage,{{ targets.incus.vm.filesystem }} rootfstype={{ targets.incus.vm.filesystem }}" # Set the grub console type GRUB_TERMINAL=console # Disable os-prober GRUB_DISABLE_OS_PROBER=true types: - vm - path: /etc/network/interfaces generator: dump content: |- auto eth0 iface eth0 inet dhcp hostname $(hostname) - path: /etc/inittab generator: dump content: |- # /etc/inittab ::sysinit:/sbin/openrc sysinit ::sysinit:/sbin/openrc boot ::wait:/sbin/openrc default # Set up a couple of getty's ::respawn:/sbin/getty 38400 console tty1::respawn:/sbin/getty 38400 tty1 tty2::respawn:/sbin/getty 38400 tty2 tty3::respawn:/sbin/getty 38400 tty3 tty4::respawn:/sbin/getty 38400 tty4 # Stuff to do for the 3-finger salute ::ctrlaltdel:/sbin/reboot # Stuff to do before rebooting ::shutdown:/sbin/openrc shutdown - path: /etc/inittab generator: template name: inittab content: |- # /etc/inittab ::sysinit:/sbin/openrc sysinit ::sysinit:/sbin/openrc boot ::wait:/sbin/openrc default # Set up a couple of getty's ::respawn:/sbin/getty 38400 console # Stuff to do for the 3-finger salute ::ctrlaltdel:/sbin/reboot # Stuff to do before rebooting ::shutdown:/sbin/openrc shutdown - name: meta-data generator: cloud-init variants: - cloud - name: network-config generator: cloud-init content: |- version: 1 config: - type: physical name: eth0 subnets: - type: dhcp control: auto variants: - cloud - name: user-data generator: cloud-init variants: - cloud - name: vendor-data generator: cloud-init variants: - cloud packages: manager: apk update: true cleanup: true sets: - packages: - alpine-base - logrotate - doas action: install - packages: - cloud-init - e2fsprogs-extra action: install variants: - cloud - packages: - py3-pyserial - py3-netifaces action: install variants: - cloud releases: - 3.17 - 3.18 - 3.19 - 3.20 - edge - packages: - acpi - gcc - grub-efi - linux-virt - udev action: install types: - vm actions: - trigger: post-packages action: |- #!/bin/sh set -eux rm -f /var/cache/apk/* - trigger: post-packages action: |- #!/bin/sh set -eux # Rewrite configuration for LXC sed -i 's/#rc_sys=""/rc_sys="lxc"/' /etc/rc.conf # Honor fstab by not making the localmount script a noop sed -i 's/-lxc//' /etc/init.d/localmount # Enable services for svc_name in bootmisc syslog devfs; do ln -s /etc/init.d/${svc_name} /etc/runlevels/boot/${svc_name} done for svc_name in networking crond; do ln -s /etc/init.d/${svc_name} /etc/runlevels/default/${svc_name} done types: - container - trigger: post-files action: |- #!/bin/sh set -eux for svc_name in acpid bootmisc hostname hwclock loadkmap modules networking swap sysctl syslog urandom; do ln -fs /etc/init.d/${svc_name} /etc/runlevels/boot/${svc_name} done for svc_name in devfs dmesg hwdrivers mdev udev udev-settle udev-trigger; do ln -fs /etc/init.d/${svc_name} /etc/runlevels/sysinit/${svc_name} done target=/boot/grub/grub.cfg grub-mkconfig -o "${target}" sed -i "s#root=[^ ]*#root=${DISTROBUILDER_ROOT_UUID}#g" "${target}" TARGET="x86_64" [ "$(uname -m)" = "aarch64" ] && TARGET="arm64" grub-install --target=${TARGET}-efi --no-nvram --removable grub-install --target=${TARGET}-efi --no-nvram # Attempt to correct errors in the installation of all packages. apk fix types: - vm - trigger: post-files action: |- #!/bin/sh set -eux # Tweak to prevent cloud-init from getting stuck. echo "datasource_list: ['NoCloud', 'ConfigDrive', 'LXD', 'None']" > /etc/cloud/cloud.cfg.d/99_lxc.cfg types: - vm variants: - cloud - trigger: post-files action: |- #!/bin/sh set -eux setup-cloud-init variants: - cloud mappings: architecture_map: alpinelinux