From: Harald Hoyer Date: Mon, 18 May 2009 12:09:21 +0000 (+0200) Subject: add dhclient to test root image X-Git-Tag: 0.1~259 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b852fde4ba64f8582fa26c080a4ae448e9001ec;p=thirdparty%2Fdracut.git add dhclient to test root image --- diff --git a/test/make-test-root b/test/make-test-root index 7da36c569..945bd8250 100755 --- a/test/make-test-root +++ b/test/make-test-root @@ -10,12 +10,16 @@ kernel=$(uname -r) ( . ./dracut-functions dracut_install sh df free ls shutdown poweroff stty cat ps ln ip route \ - /lib/terminfo/l/linux mount dmesg ifconfig dhclient mkdir cp ping + /lib/terminfo/l/linux mount dmesg ifconfig dhclient mkdir cp ping dhclient + inst "modules.d/40network/dhclient-script" "/sbin/dhclient-script" + inst "modules.d/40network/ifup" "/sbin/ifup" + dracut_install grep inst test/test-init /sbin/init - (cd "$initdir"; mkdir -p dev sys proc etc var/run) + (cd "$initdir"; mkdir -p dev sys proc etc var/run tmp ) ) targetfs="$initdir" unset initdir + umount test/mnt rm -fr test/mnt