Package: dracut-network
Version: 106-6
Severity: normal
Tags: patch upstream
X-Debbugs-Cc: [email protected]
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
-- System Information:
Debian Release: 13.6
APT prefers stable-updates
APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.96+deb13-amd64 (SMP w/14 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8:en.UTF-8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dracut-network depends on:
pn dracut-core <none>
pn iputils-arping <none>
ii isc-dhcp-client 4.4.3-P1-8
ii network-manager 1.52.1-1
ii systemd 257.13-1~deb13u1
Versions of packages dracut-network recommends:
ii curl 8.14.1-2+deb13u4
pn iscsiuio <none>
pn nbd-client <none>
ii nfs-common 1:2.8.3-1
ii open-iscsi 2.1.11-1+deb13u2
dracut-network suggests no packages.
---
/srv/fai/nfsroot/bookworm-amd64/usr/lib/dracut/modules.d/35network-legacy/dhclient-script.sh~
2022-05-24 18:08:57.000000000 +0000
+++
/srv/fai/nfsroot/bookworm-amd64/usr/lib/dracut/modules.d/35network-legacy/dhclient-script.sh
2026-07-31 21:49:18.798456160 +0000
@@ -207,7 +207,8 @@
if [ -n "$new_classless_static_routes" ]; then
OLDIFS="$IFS"
IFS=".$IFS"
- parse_option_121 "$new_classless_static_routes"
+ # shellcheck disable=SC2086
+ parse_option_121 $new_classless_static_routes
IFS="$OLDIFS"
fi
echo "source_hook initqueue/online $netif"