12 lines
250 B
Bash
Executable File
12 lines
250 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SECTOR_BYTES=512
|
|
SECTOR_START=2048
|
|
OFFSET=$(($SECTOR_BYTES*$SECTOR_START))
|
|
|
|
./build.sh
|
|
mkdir -p boot-part
|
|
mount -o rw,loop,offset=$OFFSET $1 ./boot-part
|
|
tar -xzvf build/rpi-cloud-init.tgz -C boot-part
|
|
umount ./boot-part
|
|
rmdir ./boot-part |