]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
install more binaries and directories in the test root
authorHarald Hoyer <harald@redhat.com>
Tue, 12 May 2009 13:35:57 +0000 (15:35 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 12 May 2009 13:35:57 +0000 (15:35 +0200)
test/make-test-root

index 76869f4180a033c7f1ef8d60c4468da988e0196f..8c54f8d10ea95f61d1e5cbba6c76a305aa69b568 100755 (executable)
@@ -9,16 +9,16 @@ initdir=test/mnt
 kernel=$(uname -r)
 (
     . ./dracut-functions
-    dracut_install sh df free ls shutdown poweroff stty cat ps ln \
-       /lib/terminfo/l/linux mount dmesg
+    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
     inst test/test-init /sbin/init
-    (cd "$initdir"; mkdir -p dev sys proc etc)
+    (cd "$initdir"; mkdir -p dev sys proc etc var/run)
 )
 targetfs="$initdir"
 unset initdir
 
 umount test/mnt
-rmdir test/mnt
+rm -fr test/mnt
 
 #./dracut -l -i "$targetfs" /source \
 #    -m "dash kernel-modules test crypt lvm udev-rules base rootfs-block" \