#1143537 dracut-network: shellcheck quoting breaks parse_option_121 in dhclient

Package:
dracut-network
Source:
dracut-network
Submitter:
andrew bezella
Date:
2026-08-03 19:53:02 UTC
Severity:
normal
Tags:
#1143537#5
Date:
2026-08-03 19:50:38 UTC
From:
To:
Dear Maintainer,

thank you for your time and effort in supporting debian.

we are performing an FAI install where the dhcpd is supplying
rfc3442-classless-static-routes.  this causes errors and the
networking doesn't come up properly:

```
[   17.272100] dracut-initqueue[1474]: /sbin/dhclient-script: line 124: [: 23 198 51 100 0 0 0 0 23 198 51 102 0 0 0 0 26 203 0 113 192 0 0 0 0 26 192 0 2 128 0 0 0 0 27 192 0 2 192 0 0 0 0: integer expression expected
[   17.304085] dracut-initqueue[1474]: /sbin/dhclient-script: line 130: [: 23 198 51 100 0 0 0 0 23 198 51 102 0 0 0 0 26 203 0 113 192 0 0 0 0 26 192 0 2 128 0 0 0 0 27 192 0 2 192 0 0 0 0: integer expression expected
[   17.336066] dracut-initqueue[1474]: /sbin/dhclient-script: line 135: [: 23 198 51 100 0 0 0 0 23 198 51 102 0 0 0 0 26 203 0 113 192 0 0 0 0 26 192 0 2 128 0 0 0 0 27 192 0 2 192 0 0 0 0: integer expression expected
[   17.376083] dracut-initqueue[1474]: /sbin/dhclient-script: line 139: [: 23 198 51 100 0 0 0 0 23 198 51 102 0 0 0 0 26 203 0 113 192 0 0 0 0 26 192 0 2 128 0 0 0 0 27 192 0 2 192 0 0 0 0: integer expression expected
[   17.408068] dracut-initqueue[1474]: /sbin/dhclient-script: line 148: shift: shift count out of range
[   17.428068] dracut-initqueue[1474]: /sbin/dhclient-script: line 149: shift: shift count out of range
[   17.496077] dracut-initqueue[1474]: /sbin/dhclient-script: line 150: shift: shift count out of range
[   17.516069] dracut-initqueue[1474]: /sbin/dhclient-script: line 151: shift: shift count out of range
[   43.392663] dracut-initqueue[2348]: Error: either "to" is duplicate, or "198" is a garbage.
```

this bug has been identified and resolved in other distributions,
notably:
linux.oracle.com | ELBA-2022-4070
https://linux.oracle.com/errata/ELBA-2022-4070.html
network-legacy: Revert some shellcheck that breaks parse_option_121 in dhclient [Orabug: 33778173]

this shellcheck quoting was introduced in:
fix(network-legacy): shellcheck for modules.d/35network-legacy · dracut-ng/dracut@8c0fcdd · GitHub
https://github.com/dracut-ng/dracut/commit/8c0fcdd931883e0d2d58762f7fc5bbc2626d1c5d

the attached patch file reverts the problematic quoting and after the
initramfs is rebuilt the networking comes up properly.

thanks in advance.

  andy