]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
contents_make_cpio: Include symlinks
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 27 Nov 2018 16:50:26 +0000 (16:50 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Wed, 10 Apr 2019 14:13:50 +0000 (15:13 +0100)
We are going to introduce some symlinks into one of our preprepared
overlays.  We must therefore arrange to copy them as appropriate.

The syntax `-type f,l' is an extension in GNU find.  If this causes
trouble in the future we will then have to introduce the obvious
circumlocution involving ( ).

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/TestSupport.pm

index d35a784bb0b4f7dcebf5626e6a7828924b47a645..1f01ac6add05bc83244d18cc0c7b113a3c6c7ed7 100644 (file)
@@ -1518,7 +1518,7 @@ sub contents_make_cpio ($$$) {
     if (!$child) {
         postfork();
         chdir($srcdir) or die $!;
-        open STDIN, 'find ! -name "*~" ! -name "#*" -type f -print0 |'
+        open STDIN, 'find ! -name "*~" ! -name "#*" -type f,l -print0 |'
             or die $!;
         open STDOUT, '>&', $fh or die $!;
         system "cpio -H$format -o --quiet -0 -R 1000:1000";