#1138636 aoetools: `set -e` in initramfs script breaks configure_networking

Package:
aoetools
Source:
aoetools
Description:
tools to assist in using ATA over Ethernet
Submitter:
JimmyZ
Date:
2026-06-01 17:45:01 UTC
Severity:
normal
Tags:
#1138636#5
Date:
2026-06-01 15:41:49 UTC
From:
To:
/usr/share/initramfs-tools/scripts/local-top/aoe sets -e at the beginning
of the file,
later, it calls configure_networking from initramfs-tools.

The latter has a loop to try calling ipconfig and backoff to use larger
timeout values if
smaller timeouts failed, but with -e set, it will fail if the first try
failed.

In my tests, it works on hyper-v since the 1st try succeeds, but on a real
PC, it drops
me to the initramfs shell, since the 1st try always fails.

Wrapping the configure_networking call in set +e/-e fixes it.

Thanks for your time.
-
JimmyZ with best regards

#1138636#10
Date:
2026-06-01 17:42:55 UTC
From:
To:
JimmyZ wrote...

Ouch, well spotted. Using errexit on code that wasn't made for this is
always an interesting experience.

Give me a few days to address this.

    Christoph