Add build, deploy and test sources
This commit is contained in:
1 parent
b962581812
commit
3d1a08f230
259 files changed
+15273
No files matched your search
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
W=/tmp/cmp
|
||||
rm -rf $W; mkdir -p $W
|
||||
OLD=/path/to/pf/acronis/orig
|
||||
NEW=/path/to/pf/acronis/new
|
||||
|
||||
for tag in old new; do
|
||||
if [ $tag = old ]; then ISO="$OLD/ADD"; else ISO="$NEW/ADD.iso"; fi
|
||||
echo "===================== $tag : $ISO"
|
||||
echo "--- file:"
|
||||
file -b "$ISO"
|
||||
echo "--- el torito:"
|
||||
xorriso -indev "$ISO" -report_el_torito plain 2>&1 | grep -E 'Boot record|El Torito|Volume id' | sed 's/^/ /'
|
||||
echo "--- boot images extract:"
|
||||
rm -rf $W/$tag; mkdir -p $W/$tag
|
||||
xorriso -indev "$ISO" -osirrox on -extract_boot_images "$W/$tag" >/dev/null 2>&1
|
||||
ls -l "$W/$tag" | sed 's/^/ /'
|
||||
for img in "$W/$tag"/*uefi*.img; do
|
||||
[ -f "$img" ] || continue
|
||||
echo " uefi img: $(file -b "$img")"
|
||||
echo " contents:"
|
||||
mdir -i "$img" ::/ 2>/dev/null | head -8 | sed 's/^/ /'
|
||||
mdir -i "$img" ::/EFI/BOOT 2>/dev/null | head -8 | sed 's/^/ /'
|
||||
# boot sector details
|
||||
echo " boot sector:"
|
||||
dd if="$img" bs=1 count=64 status=none | od -An -tx1 | head -4 | sed 's/^/ /'
|
||||
done
|
||||
echo "--- catalog bytes:"
|
||||
cat_img="$W/$tag"/eltorito_catalog.img
|
||||
[ -f "$cat_img" ] && od -An -tx1 "$cat_img" | head -8 | sed 's/^/ /'
|
||||
done
|
||||
Reference in new issue
Block a user