Just an ordinary upgrade after 4 weeks. Big crime, NOX, rootfs on btrfs.
QuoteProcessing triggers for initramfs-tools (0.151) ...
update-initramfs: Generating /boot/initrd.img-7.2.12-1-siduction-amd64
Updating kernel version 7.2.12-1-siduction-amd64 in systemd-boot...
/usr/lib/kernel/install.d/91-siduction-entry-key.install: line 43: 10000 - : arithmetic syntax error: operand expected (
error token is "- ")
In the script
91-siduction-entry-key.installvariable entry_path gets set to /boot/siduction-nox/7.2.12-1-siduction-amd64. The pipe
grep -o "shot-[0-9@]\+" <<< $entry_path | sed s'!shot-!!'produces no output, thus variable sn_nr gets assigned the empty string. The following lines
if [ "X$sn_nr" = "X@" ]; then
key="10000"
else
key=$((10000 - "$sn_nr"))
fi are not prepared for this, producing the above mentioned error message.
I have worked around this issue by adapting the script. But I keep asking myself if I did something wrong here or if the script is simply buggy.
Thanks for pointing that out.
I'll take a look at the script.
It's probably a bug.