Bug#842591: debootstrap-udeb: fails to validate InRelease (BADSIG)
Package: debootstrap-udeb
Version: 1.0.85
Severity: grave
Justification: renders package unusable
The (re)addition of InRelease support broke debootstrap(-udeb) in a d-i
context. The sed|tr|sed dance doesn't kill the final newline, which
leads to a BAD signature.
My original proposal was to use head -c -1, which while not specified by
posix actually just works. Reasons include:
1. Tests agree.
2. busybox's coreutils/head.c has:
case 'c':
count_bytes = 1;
…
if (negative_N) {
if (count_bytes) {
print_except_N_last_bytes(fp, count);
} else {
print_except_N_last_lines(fp, count);
}
} else {
print_first_N(fp, count, count_bytes);
}
It might be suboptimal to use this for the time being, as it /might/
limit portability. On the other hand, the idea was to get a d-i release
out of the door.
I'll give it some thoughts in the upcoming hours, and decide how to fix.
KiBi.
Reply to: