Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UKI: Reduce Ubuntu base image sizes #2283

Closed
mauromorales opened this issue Feb 22, 2024 · 5 comments
Closed

UKI: Reduce Ubuntu base image sizes #2283

mauromorales opened this issue Feb 22, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request uki

Comments

@mauromorales
Copy link
Member

mauromorales commented Feb 22, 2024

We are hitting a limit with EFI images and bumping into systemd/systemd#25911, so we want to reduce the base image size

@mauromorales mauromorales added the bug Something isn't working label Feb 22, 2024
@mauromorales mauromorales self-assigned this Feb 22, 2024
@mudler mudler changed the title Reduce Ubuntu core and standard image sizes UKI: Reduce Ubuntu core and standard image sizes Feb 22, 2024
@mauromorales
Copy link
Member Author

biggest offenders:

6684    python3.11-minimal
6994    grub-efi-amd64-signed
7000    coreutils
7736    perl-base
8110    libmagic-mgc
8435    libpython3.11-stdlib
9960    grub-efi-amd64-bin
10243   udev
10460   systemd
12199   intel-microcode
12520   grub-common
13413   libc6
13955   linux-image-6.5.0-15-generic
17815   perl-modules-5.36
20066   neovim-runtime
20084   iso-codes
28850   libperl5.36
36251   libicu72
37051   linux-modules-6.5.0-15-generic
105454  linux-modules-extra-6.5.0-15-generic
107752  snapd
414784  linux-firmware

@mauromorales
Copy link
Member Author

can we reduce the size of the initrd file?

root@9db85a46b070:/# ls -lahs /boot/
total 103M
4.0K drwxr-xr-x 1 root root 4.0K Feb 22 11:54 .
4.0K drwxr-xr-x 1 root root 4.0K Feb 22 13:29 ..
8.2M -rw------- 1 root root 8.2M Jan 11 12:47 System.map-6.5.0-17-generic
276K -rw-r--r-- 1 root root 275K Jan 11 12:47 config-6.5.0-17-generic
   0 lrwxrwxrwx 1 root root   27 Feb 22 11:54 initrd.img -> initrd.img-6.5.0-17-generic
 81M -rw------- 1 root root  81M Feb 22 11:54 initrd.img-6.5.0-17-generic
   0 lrwxrwxrwx 1 root root   27 Feb 22 11:54 initrd.img.old -> initrd.img-6.5.0-17-generic
   0 lrwxrwxrwx 1 root root   24 Feb 22 11:54 vmlinuz -> vmlinuz-6.5.0-17-generic
 14M -rw------- 1 root root  14M Jan 11 12:48 vmlinuz-6.5.0-17-generic
   0 lrwxrwxrwx 1 root root   24 Feb 22 11:54 vmlinuz.old -> vmlinuz-6.5.0-17-generic

@mauromorales mauromorales added enhancement New feature or request and removed bug Something isn't working labels Feb 23, 2024
@mauromorales mauromorales changed the title UKI: Reduce Ubuntu core and standard image sizes UKI: Reduce Ubuntu base image sizes Feb 26, 2024
@liyimeng
Copy link
Contributor

liyimeng commented Mar 7, 2024

will this also help #2262?

@mauromorales
Copy link
Member Author

@liyimeng just on the size of Kairos related binaries, which are now compressed

@jimmykarily
Copy link
Contributor

We did some work to makes it smaller already. Let's close this and revisit if we have more ideas on how to improve more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request uki
Projects
Archived in project
Development

No branches or pull requests

3 participants