[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Updating kernels impossible when /boot is getting full



Sorry, Stefan.  This was supposed to go to the list.


On 8/2/21 11:02 PM, Marc Shapiro wrote:
On 8/1/21 9:33 PM, Stefan Monnier wrote:
So really think hard before splitting off a filesystem outside of
volume management. I believe it is more likely to cause problems
than it is to avoid problems.
All my machines have a separate /boot partition (and everything
else in LVM).  These are all "historical accidents", because at the time
I set them up, the respective boot loader (LILO, Grub, U-Boot) didn't
know how to read LVM volumes, and I just never bothered to change.

But I fully agree with you: if your bootloader can read from LVM
(as is the case with Grub2), then you're better off without a separate
/boot partition.


         Stefan "not sure if U-Boot can read from LVM yet"


I am primarily running Devuan, these days, but I also still have root/boot partitions (boot is not separate from root) for Stretch and Buster.  My /boot directory contains 4 kernels and their associated files and the whole lot only takes up about 140MB. Since I use Lilo as my boot loader (and it can read LVM), and I don't use encryption, I can put everything (including root/boot) into a single LVM physical volume.  No hassles if I need to resize any partition, since they are all logical volumes in a single volume group on a single physical volume.  If I ever need more total space, which I find unlikely, I can add additional disks to the PV and then add space to any LVs as needed.

Marc



Reply to: