22.04 reducing iso size

Jerry Geis jerry.geis at gmail.com
Wed Nov 29 14:14:56 UTC 2023


Hi all - Trying to reduce the size of 22.04 iso such that I can "remotely"
issue commands to replace the OS, it reboots, downloads the iso in ram and
installs, reboots and now Ubuntu and not CentOS.

I am using the hwe kernel - so first I remove all kernel files no hwe
(initrd and vmlinuz) basically

I took a huge stab and just removed /pool - this seems ok - did a couple
tests and the install works (it seems).

This gets me down to 1.3M in size. Still just slightly too much.

After looking at remaining files all there is that I can make a BIG stab at
is
ubuntu-server-minimal.ubuntu-server.installer.squashfs

it has /usr/lib/firmware

I will not be using any wireless devices - so I think I can remove that.

Is this a "viable" strategy to pursue ? if so the file goes from 473M down
to 95M.

Will this work if I correctly remake the squashfs ?

Thanks

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20231129/aa6242f9/attachment.html>


More information about the ubuntu-users mailing list