]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
99base/init: avoid using cp -t
authorDaniel Drake <dsd@laptop.org>
Tue, 8 Nov 2011 21:11:40 +0000 (21:11 +0000)
committerHarald Hoyer <harald@redhat.com>
Tue, 15 Nov 2011 08:47:20 +0000 (09:47 +0100)
-t is not supported by busybox's cp.

Signed-off-by: Daniel Drake <dsd@laptop.org>
modules.d/99base/init

index a8fd1f6fe7818d6e547155eca45f2dab88a4bc1c..fc00e4feab520e3e93cec95b2f29101cd5fe763d 100755 (executable)
@@ -133,7 +133,7 @@ fi
 if ! ismounted /run; then
     mkdir -m 0755 /newrun
     mount -t tmpfs -o mode=0755,nosuid,nodev tmpfs /newrun >/dev/null 2>&1
-    cp -a -t /newrun /run/*
+    cp -a /run/* /newrun
     mount --move /newrun /run
     rm -fr /newrun
 fi