Skip to content

Commit

Permalink
Increase default EFI partition size to 512 MB
Browse files Browse the repository at this point in the history
With increased initrd sizes, 150 MB is inadequate.
  • Loading branch information
bwarden authored and bryteise committed Oct 10, 2024
1 parent a0fef5f commit 5adb315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/block_devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ var (
"/dev/mmcblk": "p",
}

bootSizeDefault = uint64(150 * (1024 * 1024))
bootSizeDefault = uint64(512 * (1024 * 1024))
SwapFileSizeDefault = uint64(64 * (1024 * 1024))

// BlockDeviceTypeLVM2GroupString is a string version for LVM2 member type
Expand Down

1 comment on commit 5adb315

@marioroy
Copy link

@marioroy marioroy commented on 5adb315 Oct 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have three kernels in my tiny 150MB /boot volume and have been careful not to install many variants. Well, you know testing various Hz values and what not. Or testing PREEMPT_LAZY with 6.11.y, backported from upstream. Increasing the default size for the /boot partition is awesome. Thank you.

$ sudo -s

# systemctl start boot.mount
# df -h /boot
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       148M   85M   63M  58% /boot

# ls -lh /boot/EFI/org.clearlinux/
total 85M
-rwx------ 1 root root 915K Oct 14 14:26 bootloaderx64.efi
-rwx------ 1 root root  13M Jul 13 07:10 freestanding-00-early-ucode.cpio
-rwx------ 1 root root  26M Oct 12 23:50 freestanding-i915-firmware.cpio
-rwx------ 1 root root  17M Sep 30 17:42 kernel-org.clearlinux.native.6.10.11-1464
-rwx------ 1 root root  15M Oct 14 14:26 kernel-org.clearlinux.xmbore.6.11.3-202
-rwx------ 1 root root  15M Oct 14 14:25 kernel-org.clearlinux.xmbore-rt.6.11.3-202
-rwx------ 1 root root 127K Oct 14 14:26 loaderx64.efi

# systemctl stop boot.mount

Please sign in to comment.