Package: busybox-static
Version: 1:1.38.0-3
Severity: normal
X-Debbugs-Cc: [email protected]

Dear Maintainer,

The Dracut 72-nbd autopkgtest fails with busybox-static. This can also
be reproduced with the upstream dracut project:

```
$ TEST_CONTAINER_COMMAND="apt update && apt install --yes busybox-static" 
test/test.sh ubuntu:devel 72
[...]
[    1.345256] dracut-initqueue[634]: nbd-client: unrecognized option '-check'
[    1.346137] dracut-initqueue[634]: BusyBox v1.38.0 (Ubuntu 
1:1.38.0-3ubuntu1) multi-call binary.
[    1.346719] dracut-initqueue[634]: Usage: nbd-client { [-b BLKSIZE] [-N 
NAME] [-t SEC] [-p] HOST [PORT] | -d } BLOCKDEV
[    1.347399] dracut-initqueue[634]: Connect to HOST and provide network block 
device on BLOCKDEV
[    1.348014] dracut-initqueue[635]: nbd-client: unrecognized option 
'-systemd-mark'
[    1.348493] dracut-initqueue[635]: BusyBox v1.38.0 (Ubuntu 
1:1.38.0-3ubuntu1) multi-call binary.
[    1.349055] dracut-initqueue[635]: Usage: nbd-client { [-b BLKSIZE] [-N 
NAME] [-t SEC] [-p] HOST [PORT] | -d } BLOCKDEV
[    1.349710] dracut-initqueue[635]: Connect to HOST and provide network block 
device on BLOCKDEV
```

The nbd-client busybox applet lacks the options -check and
-systemd-mark. I reported that upstream at
https://github.com/vda-linux/busybox_mirror/issues/35

The dracut busybox module skips intstalling the nbd-client applet. This
has no effect when using busybox-static because busybox-static is built
with CONFIG_FEATURE_PREFER_APPLETS enabled. Busybox sh will prefer the
incompatible nbd-client applet instead of using the real nbd-client
binary.

The blkid applet had the same issue and was disabled for busybox-static.
Please consider doing the same for nbd-client.

-- 
Benjamin Drung
Debian & Ubuntu Developer

Reply via email to