-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 Add raw image target to earthly (#1675)
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
build/*iso | ||
# this is created by the strat_vm_qemu.sh script | ||
disk.img | ||
*.raw |
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,33 @@ | ||
#cloud-config | ||
# same config as in the docs: https://kairos.io/docs/advanced/build/#build-a-cloud-image | ||
# This is the default for cloud images which only come with the recovery partition and the workflow | ||
# is to boot from them and do a reset to get the latest system installed | ||
|
||
users: | ||
- name: "kairos" | ||
passwd: "kairos" | ||
name: "Default deployment" | ||
stages: | ||
boot: | ||
- name: "Repart image" | ||
layout: | ||
device: | ||
label: COS_RECOVERY | ||
add_partitions: | ||
- fsLabel: COS_STATE | ||
size: 16240 # At least 16gb | ||
pLabel: state | ||
- name: "Repart image" | ||
layout: | ||
device: | ||
label: COS_RECOVERY | ||
add_partitions: | ||
- fsLabel: COS_PERSISTENT | ||
pLabel: persistent | ||
size: 0 # all space | ||
- if: '[ -f "/run/cos/recovery_mode" ] && [ ! -e /usr/local/.deployed ]' | ||
name: "Deploy kairos" | ||
commands: | ||
- kairos-agent --debug reset --unattended | ||
- touch /usr/local/.deployed | ||
- reboot |