Bug#823323: busybox: Side effect after disabling CONFIG_FEATURE_PREFER_APPLETS
Package: busybox
Version: 1:1.22.0-19
Severity: important
Dear Maintainer,
To address the issue about kmod's modprobe in busybox (#821307), the
CONFIG_FEATURE_PREFER_APPLETS is disabled in busybox 1:1.22.0-19.
However, this causes some issues for live-boot. There are some commands in
the shell script use the options that the commands from kmod do not support.
E.g. now when "ls" is used, the one from kmod is used. However, it only
supports option "-h":
$ bin/ls -h
Usage: ls [-h] [FILE ...]
While in live-boot, the following scripts, for example:
9990-misc-helpers.sh: if [ -z "$(ls -A "${src}")" ]
9990-mount-iscsi.sh: devices="$(ls -d /sys/class/scsi_device/${host}*/device/block:* \
9990-overlay.sh: num_block=$(ls -l /sys/block | wc -l)
9990-select-eth-device.sh: l_interfaces="$(cd /sys/class/net/ && ls -d * 2>/dev/null | grep -v "lo")"
9990-toram-todisk.sh: size=$( expr $(ls -la ${MODULETORAMFILE} | awk '{print $5}') / 1024 + 5000 )
All of them use the options which kmod's ls does not support.
This change causes many failures for live-boot. Any way to find the balance?
Thanks in advance.
Steven
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 4.5.0-1-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
Versions of packages busybox depends on:
ii libc6 2.22-7
busybox recommends no packages.
busybox suggests no packages.
-- no debconf information
Reply to: