Ignore commented-out bootptab reservations (#1358)

This commit is contained in:
12
2026-09-30 11:32:27 +00:00
committed by GitHub
parent 917c0b51ed
commit 05edeac562
2 changed files with 36 additions and 0 deletions
@@ -18,6 +18,11 @@ struct Bootptab {
}
for line in contents.split(whereSeparator: \.isNewline) {
// Skip comment lines
guard !line.hasPrefix("#") else {
continue
}
let fields = line.split(whereSeparator: \.isWhitespace)
// Skip lines that don't look like reservation fields