Bug#887159: initramfs-tools can use busybox as complete replacement for klibc
- To: 887159@bugs.debian.org
- Cc: Denys Vlasenko <vda.linux@googlemail.com>
- Subject: Bug#887159: initramfs-tools can use busybox as complete replacement for klibc
- From: Ben Hutchings <ben@decadent.org.uk>
- Date: Wed, 06 Feb 2019 19:02:52 +0000
- Message-id: <[🔎] 2edde4a96f50930f159d55788861935acacedf19.camel@decadent.org.uk>
- Reply-to: Ben Hutchings <ben@decadent.org.uk>, 887159@bugs.debian.org
- In-reply-to: <1515949354.13978.139.camel@decadent.org.uk>
- References: <1a91f977-6d0f-5ad4-f026-fcfa854386bd@debian.org> <CAK1hOcOaF_P7wGoE-qijHymB_DCMtJjM5KVEmGKPbj_wwowPBQ@mail.gmail.com> <db152795-1058-ce5e-cc2b-d05c55e61d3c@debian.org> <1502547324.3944.2.camel@decadent.org.uk> <CAK1hOcMvhAZNzs_LzbBgdOKFupAKxvQJHGDGH-k0othXBbMojw@mail.gmail.com> <1502715907.3688.10.camel@decadent.org.uk> <CAK1hOcN5_jMLXw-CUzBgSS2is3AFSrTFiayrv675=GLnp795vA@mail.gmail.com> <CAK1hOcNzzcub+EMwSEjCT2vSa5Baeh07Sw+hdQL=_JBV_=Y40w@mail.gmail.com> <1502723574.3688.12.camel@decadent.org.uk> <CAK1hOcOsB_shcgvbVgJ1bBfa7wh8SajpuQ+sua4LUJjUiEGe3g@mail.gmail.com> <1503340694.3688.52.camel@decadent.org.uk> <CAK1hOcMeb24FMjfsqMx6UDKip6kAB7JZTG7HZFymt5LA41ib5w@mail.gmail.com> <1503448990.3688.57.camel@decadent.org.uk> <CAK1hOcMUMLuAUbRWKHAXFKL+ZpJcw2ufwCK_FeCBN1f5us8wVA@mail.gmail.com> <1515949354.13978.139.camel@decadent.org.uk> <1515949354.13978.139.camel@decadent.org.uk>
Control: block -1 with 921556
Currently an initramfs built with both busybox and klibc-utils
installed has these executables in /bin from klibc-utils:
chroot losetup pivot_root run-init
fstype minips poweroff
halt nfsmount reboot
ipconfig nuke resume
Several of these are already redundant with the busybox versions
installed in /sbin:
chroot losetup poweroff
halt pivot_r
oot reboot
The next upload of klibc will stop installing these commands when they
are redundant.
As Denys said, busybox 1.28.0 added replacements for some commands
which we can enable when we update the busybox package:
ipconfig [CONFIG_IPCONFIG]
nuke [CONFIG_NUKE]
resume [CONFIG_RESUME]
run-init [CONFIG_RUN_INIT]
I opened bug #921540 for the new upstream version and bug #921556 for
the configuration change.
That still leaves these without a drop-in replacement in busybox:
fstype might be replaceable with blkid
minips not needed by initramfs-tools, but used by live-boot
because busybox ps does not support "h" or "-C" options
nfsmount should be replaceable with mount
Ben.
--
Ben Hutchings
Man invented language to satisfy his deep need to complain.
- Lily Tomlin
Attachment:
signature.asc
Description: This is a digitally signed message part
Reply to: