init() {
mkdir dir
- cp $srcdir/src/*.c $srcdir/src/*.h dir
+ cp $srcdir/src/*.c dir
mkdir dir/subdir
echo 'hello' > dir/subdir/hello
echo 'hello' > dir/subdir/hello2
echo 'testing' > dir2/file
dd if=/dev/zero of=dir2/zeroes bs=4096 count=5
mkdir tmp.empty tmp.mnt tmp.apply tmp.orig
- imagex capture tmp.empty empty.wim
+ imagex capture tmp.empty empty.wim --norpfix
}
cleanup
fi
mkdir tmp
if ! imagex mount dir.wim dir tmp; then
- error "Failed to mount test WIM read-only" \
- "Please read any error messages above before reporting this test failure."\
+ error "Failed to mount test WIM read-only. " \
+ "Please read any error messages above before reporting this test failure. "\
"Perhaps you don't have FUSE installed, or the FUSE kernel module isn't" \
"loaded, or you aren't a member of the FUSE group?"
fi
tar cf ../test.tar .
cd ..
- if ! imagex mountrw test.wim tmp.mnt; then
+ if ! imagex mountrw test.wim tmp.mnt --unix-data; then
error "Failed to mount WIM read-write"
fi
cd tmp.mnt
- if ! tar xf ../test.tar --no-same-owner; then
+ if ! tar xf ../test.tar; then
error "Failed to untar archive on read-write mounted WIM"
fi
cd ..
fi
cd tmp.mnt
- if ! tar xf ../test.tar --no-same-owner; then
+ if ! tar xf ../test.tar; then
error "Failed to untar archive on read-write mounted WIM"
fi
cd ..