GRMLBASE/91-update-pciids: also ignore exit code 1
authorMichael Prokop <mika@grml.org>
Wed, 6 Sep 2023 16:44:14 +0000 (18:44 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 6 Sep 2023 17:08:28 +0000 (19:08 +0200)
commitcb68d924f752d9f0cfc2844e2d984730cdfe208e
treeefa85d93d08b24a63d5b383b631c05db0ec771d9
parentf0c9feee3e66db7a923eaad30d2bf65f07d51bc9
GRMLBASE/91-update-pciids: also ignore exit code 1

If the grml_chroot uses /etc/resolv.conf with a symlink pointing to
/run/resolvconf/resolv.conf which might not exist, executing
update-pciids fails.

In the past, wget used to fail with exit code 4 (`Network failure`
according to wget(1)). Nowadays we seem to get exit code 1 (`Generic
error code`) instead. It behaves as such even if curl is present and
gets prefered over wget.

So let's also catch this error condition, to not fail a build because of
that, but instead warn about it.
etc/grml/fai/config/scripts/GRMLBASE/91-update-pciids