Thank you for the tip. I didn’t know mhwd-kernel does not work in chroot. I never used it in chroot myself @megavolt
So does it boot ? IF yes, you are save for now.
But we have to do something so that this never will happen again:
-
unmount /boot ! so that the /boot partition is invisible, and mount it at /mnt
now you should have an empty dir /boot -
update grub to 2.04-1 or newer
-
modify /boot (inside /) so that btrfs will never compress files inside /boot
Can_I_disable_compression_on_a_file
Do this withno
(for no compression) for /boot
Read the warning there
FS#63235 : [grub] 2.04 missing support for zstd on btrfs
This is only for safety. In case your GRUB is old this is needed ! If your GRUB is new this is not necessary -
move all data from /mnt (your outside /boot partition) with rsync to /boot (inside /)
-
change the fstab, so that the /boot partition will not be mounted again
comment the line with /boot in it with an starting # -
create a new grub.cfg, so that grub does not try to get the kernel from the /boot (external partition) but from btrfs /boot