[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 12/35] backports handling: Cope with dtbs in subdirs



Some of the arm64 kernels have backports in subdirectories.  So use a
find rune instead of a plain mv.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 mg-debian-installer-update | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mg-debian-installer-update b/mg-debian-installer-update
index 82a1804..c4abc43 100755
--- a/mg-debian-installer-update
+++ b/mg-debian-installer-update
@@ -169,7 +169,8 @@ if [ x$bpok != x ]; then
     if [ -d x/usr/lib/linux-image-*-${bpok}/ ] ; then
         rm -rf backports-dtbs/
         mkdir backports-dtbs/
-        mv x/usr/lib/linux-image-*-${bpok}/*.dtb backports-dtbs/
+        find x/usr/lib/linux-image-*-${bpok} -name '*.dtb' -print0 | \
+             xargs -0r sh -ec 'mv -- "$@" backports-dtbs/' x
         tar --mtime=./x/usr/lib -cf backports-dtbs.tar backports-dtbs
         gzip -9nf backports-dtbs.tar
     fi
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.