clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
524 stars 29 forks source link

EFI partition scheme is too small - CL installer #3137

Open sincorchetes opened 5 months ago

sincorchetes commented 5 months ago

I installed CL with Safe installation without partitioning.

This is the the df -h results:

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs           7.7G     0  7.7G   0% /dev/shm
tmpfs           3.1G   13M  3.1G   1% /run
tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup
efivarfs        246K  155K   87K  64% /sys/firmware/efi/efivars
/dev/dm-0       317G   31G  270G  11% /
tmpfs           7.7G   16K  7.7G   1% /tmp
tmpfs           1.6G  7.8M  1.6G   1% /run/user/1000
/dev/nvme0n1p5  147M   93M   55M  64% /boot

These is the kernels I've installed:

/boot
├── EFI
│   ├── BOOT
│   │   └── BOOTX64.EFI
│   └── org.clearlinux
│       ├── bootloaderx64.efi
│       ├── freestanding-00-early-ucode.cpio
│       ├── freestanding-clr-init.cpio.gz
│       ├── freestanding-i915-firmware.cpio
│       ├── initrd-org.clearlinux.native.6.9.3-1439
│       ├── kernel-org.clearlinux.native.6.9.3-1439
│       └── loaderx64.efi
└── loader
    ├── entries
    │   ├── Clear-linux-native-6.9.3-1439.conf
    │   └── Clear-linux-preempt_rt-6.1.92-155.conf
    └── loader.conf
bwarden commented 5 months ago

After the nasty issues with xz, we stopped using it to encrypt kernel modules, firmware, and initrds. I'm working on enabling zstd compression of all those things, which will significantly reduce the size, but rolling it out takes a while, and older kernels only support xz.

bwarden commented 1 month ago

We've implemented compression on the firmware files again (ZSTD instead of XZ), so you should now end up with a freestanding-i915-firmware.cpio.zst that shaves off about 17-18 MB from /boot. We've also increased the default size for the EFI partition created by the installer, although that won't help an already-installed system.