-
Notifications
You must be signed in to change notification settings - Fork 7
Copy over the osbuilder-tools image assets and merge with auroraboot #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
9621455
Copy over the osbuilder-tools image assets and merge with auroraboot
jimmykarily b7188a9
Print command output when things fail
jimmykarily 0e345ff
Build versioned image with earthly
jimmykarily 113faa4
Fix ARG being in the global scope and not visible in the stage
jimmykarily 612c813
Set the correct arg in pipeline
jimmykarily 95ddc80
Add back qemu (needed by some test)
jimmykarily 98c1d3f
Remove duplicate block in dockerfile and keep luet repos up to date
jimmykarily e9104f6
Support images in the form of "dir:", in build-iso
jimmykarily e0c10a1
Let elemental handle the schema and create missing tmp dir
jimmykarily af3cad4
Remove not necessary flag
jimmykarily File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a TODO here to track grub artifacts here and below? We may not need some of them anymore with aurora bundling the iso cd images