mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-06-28 16:07:12 +00:00
Use ext3 for partitions Do not let the rpi4 script recreate the mapping Only call dmsetup if we are on rpi3 Try to remove the final image loop device as well Signed-off-by: Itxaka <itxaka@kairos.io>
21 lines
249 B
Bash
Executable File
21 lines
249 B
Bash
Executable File
#!/bin/bash
|
|
|
|
partprobe
|
|
|
|
image=$1
|
|
|
|
if [ -z "$image" ]; then
|
|
echo "No image specified"
|
|
exit 1
|
|
fi
|
|
|
|
set -ax
|
|
TEMPDIR="$(mktemp -d)"
|
|
echo $TEMPDIR
|
|
mount "${device}p1" "${TEMPDIR}"
|
|
|
|
# Copy all rpi files
|
|
cp -rfv /rpi/* $TEMPDIR
|
|
|
|
umount "${TEMPDIR}"
|