mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-29 12:13:01 +02:00
Store FIT headers separately on aux, and place the raw SquashFS images on primary/secondary. This removes the need to muck about with the device mapper to setup the rootfs, and it allows us to boot using syslinux files.
14 lines
225 B
Bash
Executable File
14 lines
225 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
common=$(dirname $(readlink -f "$0"))
|
|
|
|
cd $BINARIES_DIR
|
|
cp $common/rootfs.its .
|
|
|
|
mkimage -E -p 0x1000 -B 0x1000 -k $2 -f rootfs.its rootfs.itb
|
|
|
|
cp rootfs.itb rootfs.itbh
|
|
truncate -s $((0x1000)) rootfs.itbh
|