@@ -232,8 +232,8 @@ preinstall_setup() {
232
232
.build.kernel.* |.build.hostarch.* |.build.initrd.* |.build.console.* ) ;;
233
233
.build* |.init_b_cache|.preinstallimage* |.srcfiles* |.pkgs|.rpm-cache|installed-pkg|proc|sys) continue ;;
234
234
esac
235
- echo " ./$i "
236
- done | xargs -r mv -t build-preinstall || cleanup_and_exit 1
235
+ mv " ./$i " build-preinstall || cleanup_and_exit 1
236
+ done
237
237
cd build-preinstall || cleanup_and_exit 1
238
238
}
239
239
@@ -245,8 +245,8 @@ preinstall_integrate() {
245
245
.build.kernel.* |.build.hostarch.* |.build.initrd.* |.build.console.* ) ;;
246
246
.build* |.init_b_cache|.preinstallimage* |.srcfiles* |.pkgs|.rpm-cache|installed-pkg|proc|sys) continue ;;
247
247
esac
248
- echo " ./$i "
249
- done | xargs -r mv -t .. || cleanup_and_exit 1
248
+ mv " ./$i " .. || cleanup_and_exit 1
249
+ done
250
250
cd " $BUILD_ROOT " || cleanup_and_exit 1
251
251
assert_dirs
252
252
}
@@ -850,9 +850,12 @@ else
850
850
pkg_set_type
851
851
852
852
if test -n " $PREINSTALL_IMAGE " ; then
853
- # touch the file so that the copying works
854
- for PKG in $PACKAGES_FROM_PREINSTALLIMAGE ; do echo " $BUILD_ROOT /.init_b_cache/rpms/$PKG .$PSUF " ; done | xargs -r touch
853
+ for PKG in $PACKAGES_FROM_PREINSTALLIMAGE ; do
854
+ # touch the file so that the copying works
855
+ touch $BUILD_ROOT /.init_b_cache/rpms/" $PKG .$PSUF "
856
+ done
855
857
fi
858
+
856
859
fi
857
860
858
861
# XXX: should use an option instead of looking at the recipe?
932
935
933
936
if test -n " $PREPARE_VM " ; then
934
937
echo " copying packages..."
935
-
936
- PKGS=" $PACKAGES_TO_ALL $PACKAGES_TO_SYSROOTINSTALL "
937
- rm -f $( for P in $PKGS ; do echo $BUILD_ROOT /.init_b_cache/$P .$PSUF ; done)
938
- for P in $PKGS ; do echo $BUILD_ROOT /.init_b_cache/rpms/$P .$PSUF ; done | \
939
- xargs -r cp -L -p -t $BUILD_ROOT /.init_b_cache || cleanup_and_exit 1
940
- ln -s -f $( for P in $PKGS ; do echo " ../$P .$PSUF " ; done) -t $BUILD_ROOT /.init_b_cache/rpms
941
- check_exit
942
-
938
+ for PKG in $PACKAGES_TO_ALL $PACKAGES_TO_SYSROOTINSTALL ; do
939
+ rm -rf $BUILD_ROOT /.init_b_cache/$PKG .$PSUF
940
+ cp $BUILD_ROOT /.init_b_cache/rpms/$PKG .$PSUF $BUILD_ROOT /.init_b_cache/$PKG .$PSUF || cleanup_and_exit 1
941
+ ln -s -f ../$PKG .$PSUF $BUILD_ROOT /.init_b_cache/rpms/$PKG .$PSUF
942
+ check_exit
943
+ done
943
944
# alreadyinstalled check will not work, but we have to live with that...
944
945
echo -n ' reordering...'
945
946
PACKAGES_TO_INSTALL=` reorder $PACKAGES_TO_INSTALL `
0 commit comments