busybox: Compile a second static binary for rescue/initramfs purposes.

This commit is contained in:
Dylan Araps 2019-08-12 15:18:43 +00:00
parent 8d8ce648f5
commit 06fb764381
2 changed files with 13 additions and 1 deletions

View File

@ -22,3 +22,15 @@ ln -s /run/runit/supervise.syslogd "$1/etc/sv/syslogd/supervise"
# Install busybox config. # Install busybox config.
install -Dm644 busybox.conf "$1/etc/busybox.conf" install -Dm644 busybox.conf "$1/etc/busybox.conf"
# Build and install a statically compiled busybox.
# This is useful for instances where the system is broken
# and for making an initramfs.
#
# The sleep is required so that 'make' doesn't skip the
# changes due to its 'mtime' checks.
make defconfig
sleep 1
sed -i'' "s/.*CONFIG_STATIC.*/CONFIG_STATIC=y/" .config
make
install -Dm755 busybox "$1/usr/lib/busybox"

View File

@ -1 +1 @@
1.30.1 17 1.30.1 18