Skip to content

Instantly share code, notes, and snippets.

@hashbrowncipher
Created July 13, 2021 11:30
Show Gist options
  • Save hashbrowncipher/24d16505ff34e4409121cb7acb9dfd71 to your computer and use it in GitHub Desktop.
Save hashbrowncipher/24d16505ff34e4409121cb7acb9dfd71 to your computer and use it in GitHub Desktop.
boot in 2761ms
- This run was on a c5.large which had been booted up before
- Set MODULES=dep in /etc/initramfs-tools/initramfs.conf
- Deleted a bunch of initramfs-tools hooks, including especially: iscsi mdadm lvm2
- Removed a bunch of stock ubuntu services
* snapd
* ec2-instance-connect
* cryptsetup-initramfs
* udisks2
* unattended-upgrades
* plymouth
* cloud-init
* ntfs-3g
- cloud-init will probably need to be reinstalled: too useful
* but I think it's still ok to `systemctl mask cloud-init-local`
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# ls -l /efi/vmlinuz.efi /efi/initrd.img
-rwx------ 1 root root 9740071 Jul 13 11:02 /efi/initrd.img
-rwx------ 1 root root 14792416 Jul 13 07:59 /efi/vmlinuz.efi
# cat /efi/loader/entries/ubuntu.conf
title Ubuntu 21.04
linux /vmlinuz.efi
initrd /initrd.img
options root=LABEL=rootfs rw console=ttyS0
# sfdisk -d /dev/nvme0n1
label: gpt
label-id: 66A473BB-60DA-4E91-AE02-A3E453008407
device: /dev/nvme0n1
unit: sectors
first-lba: 34
last-lba: 16777182
sector-size: 512
/dev/nvme0n1p1 : start= 2048, size= 1046529, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, uuid=962B618E-8B0D-4D4E-ADA3-B358774F21E5, name="EFI system partition"
/dev/nvme0n1p2 : start= 1050624, size= 15726559, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=9FC088B3-4BB7-444B-8FB1-1DA55C3D39AD, name="Linux filesystem"
# ls -l /dev/disk/by-label/
total 0
lrwxrwxrwx 1 root root 15 Jul 13 11:29 EFI -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jul 13 11:26 rootfs -> ../../nvme0n1p2
# systemd --version
systemd 247 (247.3-3ubuntu3.1)
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid
# uname -a
Linux ip-172-31-61-134 5.11.0-1011-aws #11-Ubuntu SMP Thu Jun 17 01:42:24 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment