Repository navigation
Fix portable awk UUID whitespace matching - #433
Puddingstomp wants to merge 1 commit into
Conversation
On Kubuntu 25.10, grub-btrfs failed during grub-mkconfig with: UUID of the root subvolume is not available The root subvolume did have a UUID, but awk did not match it because \s is not portable in awk regular expressions. Replacing \s with POSIX [[:space:]] fixed detection and allowed snapshot entries to generate correctly. Tested on Kubuntu 25.10 with Btrfs root subvolume @ and Snapper snapshots under @/.snapshots.
|
Thanks for the report and for digging into the issue on Kubuntu 25.10 — the root cause you identified is real. That said, I want to clarify the design context: Your report does however highlight something worth addressing on our side: the script should probably invoke I'm leaving this open for now — happy to continue the discussion. |
|
Coming back to this after taking a proper look. My previous comment was wrong on the facts, and I'd rather say so plainly than quietly merge something that contradicts it. Two corrections: The script is not GNU-by-design where Invoking For context: I develop on Arch, where On which patch to take: I'm going with #441, which does the same thing with Closing this one in favour of #441. |
Since #441 the script no longer uses any gawk-specific awk construct. All of its awk expressions were checked against gawk, mawk, the One True Awk and busybox awk, and run unmodified on all four. Declaring gawk advertised a requirement that the script never enforced and that most users could not satisfy anyway, since mawk is the default awk on Debian, Ubuntu and derivatives. Refs #433, #441
Possibly related to #220
On Kubuntu 25.10, grub-btrfs failed during grub-mkconfig with:
UUID of the root subvolume is not available
The root subvolume did have a UUID, but awk did not match it because \s is not portable in awk regular expressions. Replacing \s with POSIX [[:space:]] fixed detection and allowed snapshot entries to generate correctly.
Tested on Kubuntu 25.10 with Btrfs root subvolume @ and Snapper snapshots under @/.snapshots.