-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy over the osbuilder-tools image assets and merge with auroraboot (#…
…110) * Copy over the osbuilder-tools image assets and merge with auroraboot So we can deprecate the osbuilder-tools image in favor of this one. Part of kairos-io/kairos#1633 Signed-off-by: Dimitris Karakasilis <[email protected]> * Print command output when things fail Signed-off-by: Dimitris Karakasilis <[email protected]> * Build versioned image with earthly Signed-off-by: Dimitris Karakasilis <[email protected]> * Fix ARG being in the global scope and not visible in the stage this making the `auroraboot --version` command fail https://docs.docker.com/build/building/variables/#scoping Signed-off-by: Dimitris Karakasilis <[email protected]> * Set the correct arg in pipeline Signed-off-by: Dimitris Karakasilis <[email protected]> * Add back qemu (needed by some test) Signed-off-by: Dimitris Karakasilis <[email protected]> * Remove duplicate block in dockerfile and keep luet repos up to date Signed-off-by: Dimitris Karakasilis <[email protected]> * Support images in the form of "dir:", in build-iso Signed-off-by: Dimitris Karakasilis <[email protected]> * Let elemental handle the schema and create missing tmp dir Signed-off-by: Dimitris Karakasilis <[email protected]> * Remove not necessary flag it seems that it only fails when the user building is not the same as the owner of the .git directory: golang/go#53532 I only saw it when running: ``` docker run --rm -it -v $PWD:/work --workdir /work golang go build . ``` With `docker build` it just works (maybe that command handles the users differently?). In any case, it doesn't affect CI or anything else so I'll remove it. Signed-off-by: Dimitris Karakasilis <[email protected]> --------- Signed-off-by: Dimitris Karakasilis <[email protected]>
- Loading branch information
1 parent
6e2c15c
commit cc8b857
Showing
30 changed files
with
1,176 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
examples/airgap/build | ||
examples/airgap/data | ||
dist/ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# docker run --entrypoint /add-cloud-init.sh -v $PWD:/work -ti --rm test https://github.com/kairos-io/kairos/releases/download/v1.1.2/kairos-alpine-v1.1.2.iso /work/test.iso /work/config.yaml | ||
|
||
set -ex | ||
|
||
ISO=$1 | ||
OUT=$2 | ||
CONFIG=$3 | ||
|
||
case ${ISO} in | ||
http*) | ||
curl -L "${ISO}" -o in.iso | ||
ISO=in.iso | ||
;; | ||
esac | ||
|
||
# Needs xorriso >=1.5.4 | ||
xorriso -indev $ISO -outdev $OUT -map $CONFIG /config.yaml -boot_image any replay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
image=$1 | ||
|
||
if [ -z "$image" ]; then | ||
echo "No image specified" | ||
exit 1 | ||
fi | ||
|
||
# conv=notrunc ? | ||
dd if=/firmware/odroid-c2/bl1.bin.hardkernel of=$image conv=fsync bs=1 count=442 | ||
dd if=/firmware/odroid-c2/bl1.bin.hardkernel of=$image conv=fsync bs=512 skip=1 seek=1 | ||
dd if=/firmware/odroid-c2/u-boot.odroidc2 of=$image conv=fsync bs=512 seek=97 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
image=$1 | ||
|
||
if [ -z "$image" ]; then | ||
echo "No image specified" | ||
exit 1 | ||
fi | ||
|
||
LOADER_OFFSET=${LOADER_OFFSET:-"64"} | ||
LOADER_IMAGE=${LOADER_IMAGE:-"idbloader.img"} | ||
UBOOT_IMAGE=${UBOOT_IMAGE:-"u-boot.itb"} | ||
UBOOT_OFFSET=${UBOOT_OFFSET:-"16384"} | ||
|
||
echo "Writing idbloader" | ||
dd conv=notrunc if=/pinebookpro/u-boot/usr/lib/u-boot/pinebook-pro-rk3399/${LOADER_IMAGE} of="$image" conv=fsync seek=${LOADER_OFFSET} | ||
echo "Writing u-boot image" | ||
dd conv=notrunc if=/pinebookpro/u-boot/usr/lib/u-boot/pinebook-pro-rk3399/${UBOOT_IMAGE} of="$image" conv=fsync seek=${UBOOT_OFFSET} | ||
sync $image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
partprobe | ||
|
||
kpartx -va $DRIVE | ||
|
||
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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/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}" |
Oops, something went wrong.