* [PATCH] 99base/init: avoid using cp -t
@ 2011-11-08 21:11 Daniel Drake
[not found] ` <20111108211140.3E57D9D401E-k/4jFdqg8LLlyo9zxV8I99HuzzzSOjJt@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Drake @ 2011-11-08 21:11 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
-t is not supported by busybox's cp.
Signed-off-by: Daniel Drake <dsd-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org>
---
modules.d/99base/init | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules.d/99base/init b/modules.d/99base/init
index 36b2152..e0e2630 100755
--- a/modules.d/99base/init
+++ b/modules.d/99base/init
@@ -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
--
1.7.7
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] 99base/init: avoid using cp -t
[not found] ` <20111108211140.3E57D9D401E-k/4jFdqg8LLlyo9zxV8I99HuzzzSOjJt@public.gmane.org>
@ 2011-11-09 9:08 ` Harald Hoyer
0 siblings, 0 replies; 2+ messages in thread
From: Harald Hoyer @ 2011-11-09 9:08 UTC (permalink / raw)
To: Daniel Drake; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
Am 08.11.2011 22:11, schrieb Daniel Drake:
> -t is not supported by busybox's cp.
>
> Signed-off-by: Daniel Drake <dsd-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org>
> ---
> modules.d/99base/init | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/modules.d/99base/init b/modules.d/99base/init
> index 36b2152..e0e2630 100755
> --- a/modules.d/99base/init
> +++ b/modules.d/99base/init
> @@ -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
gah... fix busybox... patch applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-09 9:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-08 21:11 [PATCH] 99base/init: avoid using cp -t Daniel Drake
[not found] ` <20111108211140.3E57D9D401E-k/4jFdqg8LLlyo9zxV8I99HuzzzSOjJt@public.gmane.org>
2011-11-09 9:08 ` Harald Hoyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox