We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45cce2e commit 440fdbdCopy full SHA for 440fdbd
package/root/usr/local/sbin/pine64_remove_boot0.sh
@@ -37,6 +37,14 @@ while true; do
37
fi
38
done
39
40
+# Taken from: https://github.com/longsleep/build-pine64-image/blob/master/convert-pine64-image.sh#L28
41
+boot0headerpos=$((8*1024+4))
42
+boot0header=$(xxd -p -s "$boot0headerpos" -l 4 "$DISK")
43
+if [ "$boot0header" != "65474f4e" ]; then
44
+ echo "Error: Target image has no eGON header, aborting!"
45
+ exit 1
46
+fi
47
+
48
echo ""
49
dd conv=notrunc bs=1k seek=8 count=32 oflag=direct if=/dev/zero of="$DISK"
50
0 commit comments