The -x <format> option of pax is for creation of archives, not

extraction.

This will allow cpio archive support to work, at least in situations
where /tmp is writable.  Because pax requires a writable /tmp it is
unsuitable for this task, but replacing it will come in a later commit.

Submitted by:	Joerg Pulz <Joerg dot Pulz at frm2 dot tum dot de>
PR:		conf/88293
This commit is contained in:
Brooks Davis 2005-10-31 21:07:14 +00:00
parent 296c4b1ad5
commit 1c3a359b41

View file

@ -309,7 +309,7 @@ for i in ${templates} ; do
if [ -f $j ]; then
create_md $subdir
echo "Loading /$subdir from cpio archive $j"
(cd / ; /rescue/pax -x cpio -r -z -p e -f $j)
(cd / ; /rescue/pax -r -z -p e -f $j)
fi
done
for j in /conf/$i/*.remove ; do