У сб, 2026-11-07 у 00:49 +0100, Tomas Volf пише: > > Roman Riabenko via <[email protected]> writes: > > > I observe that uboot does not read files that are at the same time > > compressed and inlined when built with CONFIG_FS_BTRFS=y, > > CONFIG_CMD_BTRFS=y, and CONFIG_ZSTD=y. … So, I have to remember to > > defragment extlinux.conf in order to boot from a btrfs-formatted > > partition with compression and inlining enabled when the file gets > > small. … > > > > Unfortunately, I often forget to do that. I would appreciate any > > advice on how could I prevent this from happening. > > So, I will state in advance I do not know how to solve this > "properly", but few possible hacks do come to mind, in no specific > order:
I suspect that btrfs works as intended and the "proper" fix is to improve btrfs support in uboot, which I do not dare reporting as an issue upstream for the fear that it may be out of scope, unless someone chooses to implement it and manages to achieve that minding the space constraints. > 1. Put the /boot/extlinux directory on separate partition that is not > BTRFS. What I like about this approach is that only the partitioning skills are needed, which the person who partitioned the storage with btrfs already has. But I would prefer to keep btrfs for extlinux.conf. Before I installed the heatsink on this development board, I had a situation when btrfs aborted a write during the kernel build due to checksum mismatch. Of course, btrfs catching that corruption saved me only from the corruption that btrfs can detect. I hope that adding the heatsink was the solution. But it is nice to have extra verification anyway. > 2. Write a simple extension service for activation-service-type which > will do the decompress for you on every activation (effectively on > reconfigure and on boot). Thank you for showing me the direction to look. That is very helpful. > 3. Write a wrapper script and use it instead of direct Guix > invocation. > That wrapper script can do the decompression. I could write an alias to run the commands in batch, or at least to remind me to run. But maybe a service will be more robust. Roman >
signature.asc
Description: This is a digitally signed message part
