On Wed, Aug 23, 2017 at 2:43 AM, Ben Hutchings <b...@decadent.org.uk> wrote: > On Tue, 2017-08-22 at 10:38 +0200, Denys Vlasenko wrote: >> > > I added run-init to busybox just now, but I don't see -n option >> > > in >> > > klibc-2.0.4 source. Can you point me to the source code with -n? >> > >> > It's not upstream yet, but in a Debian patch: >> > https://sources.debian.net/src/klibc/2.0.4-9/debian/patches/run-ini >> > t-add-dry-run-mode.patch/ >> >> Done: >> >> $ ./busybox run-init >> BusyBox v1.28.0.git (2017-08-21 18:55:09 CEST) multi-call binary. >> >> Usage: run-init [-d CAP,CAP...] [-n] [-c CONSOLE_DEV] NEW_ROOT >> NEW_INIT [ARGS] >> >> Free initramfs and switch to another root fs: >> chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /, >> execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint. >> >> -c DEV Reopen stdio to DEV after switch >> -d CAPS Drop capabilities >> -n Dry run > > Great. Once these changes are in the Debian package, I can update > initramfs-tools to make klibc-utils optional.
I take you also will need ipconfig, as it seems to be the tool developed to handle IP autoconfiguration thingy: ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<method> I'm looking at it right now. Can you point me to scripts / other places where it is used in Debian?