Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #63265

Bug#887159: initramfs-tools can use busybox as complete replacement for klibc

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#887159: initramfs-tools can use busybox as complete replacement for klibc
Date 2019-02-06 20:10 +0100
Message-ID <xoAK5-8aL-5@gated-at.bofh.it> (permalink)
References (11 earlier) <uhdcu-8mO-21@gated-at.bofh.it> <uhs1Q-1Lo-15@gated-at.bofh.it> <v7Tkx-5GZ-7@gated-at.bofh.it> <v7TXb-6cX-1@gated-at.bofh.it> <v7TXb-6cX-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.debian.kernel | Previous | Next | Find similar | Unroll thread


Thread

Bug#887159: initramfs-tools can use busybox as complete replacement for klibc Ben Hutchings <ben@decadent.org.uk> - 2019-02-06 20:10 +0100

csiph-web