|
|
|
@ -94,6 +94,20 @@ is_valid_iso9660() {
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Retrieve and evaluate return value of command run under return_wrapper
|
|
|
|
|
check_xorriso_return() {
|
|
|
|
|
ret=$(cat "$return_value_file")
|
|
|
|
|
rm "$return_value_file"
|
|
|
|
|
if test "$ret" = 0
|
|
|
|
|
then
|
|
|
|
|
return 0
|
|
|
|
|
fi
|
|
|
|
|
failure=1
|
|
|
|
|
echo
|
|
|
|
|
echo "FAIL : ${SELF} : xorriso run exited with value $ret"
|
|
|
|
|
return 1
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Create test file and find out whether ACLs and/or xattr are available.
|
|
|
|
|
#
|
|
|
|
|
# Users known on GNU/Linux and FreeBSD: root games daemon man
|
|
|
|
@ -198,14 +212,19 @@ echo
|
|
|
|
|
ls -l "$on_disk"/*
|
|
|
|
|
|
|
|
|
|
echo -e "\n${SELF}: Producing simple image via -o" >&2
|
|
|
|
|
"$xorriso" -as mkisofs "$on_disk" -o "$workdir"/image_minus_o.iso
|
|
|
|
|
"$xorriso" -as mkisofs "$on_disk" -o "$workdir"/image_minus_o.iso
|
|
|
|
|
is_valid_iso9660 "$workdir"/image_minus_o.iso
|
|
|
|
|
|
|
|
|
|
echo -e "\n${SELF}: Producing simple image via redirect" >&2
|
|
|
|
|
"$xorriso" -as mkisofs "$on_disk" > "$workdir"/image_redirected.iso
|
|
|
|
|
is_valid_iso9660 "$workdir"/image_redirected.iso
|
|
|
|
|
|
|
|
|
|
echo -e "\n${SELF}: Producing simple image via pipe" >&2
|
|
|
|
|
"$xorriso" -as mkisofs "$on_disk" | cat > "$workdir"/image_piped.iso
|
|
|
|
|
return_wrapper "$xorriso" -as mkisofs "$on_disk" | \
|
|
|
|
|
cat > "$workdir"/image_piped.iso
|
|
|
|
|
check_xorriso_return
|
|
|
|
|
is_valid_iso9660 "$workdir"/image_piped.iso
|
|
|
|
|
|
|
|
|
|
echo -e "\n${SELF}: Producing simple image with for_backup/update_r/hardlinks" >&2
|
|
|
|
|
"$xorriso" \
|
|
|
|
|
$report_about \
|
|
|
|
|