Repository navigation
Commit d83c4be
authored
fix: use portable whitespace matching in awk UUID parsing (#441)
The awk expressions parsing `btrfs subvolume show` used `\s`, a GNU
extension. mawk and the One True Awk treat it as a literal `s`, so
`/^\s*UUID/` never matches a tab-indented line and the UUID comes back
empty. Since `awk` is mawk by default on Debian, Ubuntu and derivatives,
grub-mkconfig aborted there with "UUID of the root subvolume is not
available".
Replace `\s` with `[ \t]`, which every awk implementation supports and
which matches the notation already used by the gsub on the same line.
Closes #4251 parent f930117 commit d83c4be
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
0 commit comments