* Gentoo AMI Builder v1.1.6+ * The following parameters will be used: * AWS Region: us-east-1 * Instance Type: t4g.2xlarge (spot: true) * Amazon Linux AMI: auto * Subnet ID: subnet-NNNNNN * Key Pair: AMI-builder * Gentoo Stage3: arm64-systemd (ARCH: arm64) * Gentoo AMI Name: Gentoo Linux (arm64-systemd) * Started at Fri Mar 3 08:46:58 PM PST 2023 * PHASE 1: Prepare Instance * Detecting last Amazon Linux 2 AMI... * Autodetected image ID is ami-0cacc567ed97d2914 * Detecting snapshot ID... * Default image's root volume snapshot ID is snap-0360e4429796b7947 * Requesting spot instance... * Waiting until spot request will be fulfilled (1/30)... * Started instance ID is i-0ad763baacfc28d1d * Waiting until instance will be up (1/5)... * Detecting public IP address... * Public IP address is 52.90.133.222 * Waiting until SSH will be up (1/5)... * PHASE 2: Prepare Root * Synchronizing time... * Preparing aux disk... * Creating partitions... * Waiting for partitions... * Formatting partitions... * Labeling partitions... * Mounting aux disk... * Setting work directory... * Installing stage3... * Downloading: http://distfiles.gentoo.org/releases/arm64/autobuilds/20230226T234708Z/stage3-arm64-systemd-20230226T234708Z.tar.xz ... * Verifying sha512 hash... * Verifying GPG signature... * Extracting... * Cleaning up... * Installing Amazon's kernel configuration... * Configuring fstab... * Copying network options... * Mounting proc/sys/dev... * Mounting ESP... * Sideloading ec2-init... * PHASE 3: Build Root * Updating configuration... * Tuning compiler options... * Installing portage repo... * Rebuilding the world... * Installing vfat support... * Tuning kernel configuration... * Installing kernel sources... * Installing genkernel... * Installing kernel... * Installing ENA kernel module... * Installing bootloader... * Configuring systemd... * Configuring network... * Configuring root password... * Configuring SSH... * Installing ec2-init... * Disabling instance-specific tweaks... * PHASE 4: Switch Root * Installing gentoo kernel on first disk... * Patching bootloader configuration on first disk... * Rebooting... Connection to 52.90.133.222 closed by remote host. * Waiting until instance will be up (1/5)... * Waiting until SSH will be up (1/5)... * PHASE 5: Migrate Root * Migrating root partition from aux to primary disk... * Copying root partition... * Fixing root partition identity... * Mounting primary disk... * Mounting root... * Mounting ESP... * Mounting proc/sys/dev... * Cleaning primary disk... * Fixing boot on primary disk... * Installing bootloader into ESP... * Configuring bootloader... * Cleaning ESP... * Fixing fstab... * Rebooting... * Waiting until instance will be up (1/5)... * Waiting until SSH will be up (1/5)... * PHASE 6: Build AMI * Creating AMI image "Gentoo Linux (arm64-systemd) 2023-03-03 1677907649"... * Created AMI image ID is ami-0e239d86489be314a * Verifying AMI image state... * Waiting until AMI image will be available (1/30)... * Waiting until AMI image will be available (2/30)... * Waiting until AMI image will be available (3/30)... * Waiting until AMI image will be available (4/30)... * Waiting until AMI image will be available (5/30)... * Waiting until AMI image will be available (6/30)... * Waiting until AMI image will be available (7/30)... * Waiting until AMI image will be available (8/30)... * Waiting until AMI image will be available (9/30)... * Waiting until AMI image will be available (10/30)... * Waiting until AMI image will be available (11/30)... * Waiting until AMI image will be available (12/30)... * Waiting until AMI image will be available (13/30)... * Waiting until AMI image will be available (14/30)... * Retrieving AWS account ID... * Retrieved AWS account ID is NNNNNNNNN * Searching for outdated AMI images with prefix "Gentoo Linux (arm64-systemd)" in account... * No outdated images were found. * Terminating instance... * Done at Fri Mar 3 09:40:53 PM PST 2023 * Process took 53 minutes