Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
set -ex
[ $# -eq 5 ] || {
- echo "SYNTAX: $0 <file> <bbl image> <rootfs image> <bbl size> <rootfs size> <u-boot image>"
+ echo "SYNTAX: $0 <file> <bbl image> <rootfs image> <bbl size> <rootfs size>"
+ # <u-boot image>"
exit 1
}
ROOTFS="$3"
BOOTFSSIZE="$4"
ROOTFSSIZE="$5"
+
#UBOOT="$6"
FULLSIZE="$(($BOOTFSSIZE+$ROOTFSSIZE+1))"
sgdisk --clear \
--new=1:2048:${BOOTFSSIZE}M --change-name=1:bootloader --typecode=1:${BBL_UUID} \
- --new=2:${ROOTFSOFFSET}: --change-name=2:root --typecode=2:${LINUX_UUID} \
- $OUTPUT
+ --new=2:${ROOTFSOFFSET}: --change-name=2:root --typecode=2:${LINUX_UUID} $OUTPUT
dd bs=512 if="$BOOTFS" of="$OUTPUT" seek=2048 conv=notrunc
dd bs=512 if="$ROOTFS" of="$OUTPUT" seek="$ROOTFSOFFSET" conv=notrunc