Closed devstein closed 2 months ago
To address the errors and warnings encountered during the upgrade on Alpine ARM using the kairos-agent upgrade
command, follow these steps:
Ensure Required Properties in Configuration:
'users'
) indicates that the JSON schema validation requires a users
section. Ensure your configuration includes this section:
users:
- name: "kairos"
passwd: "kairos"
Check Installation State:
/run/initramfs/cos-state/state.yaml
is missing. Ensure that the state is mounted correctly at /run/initramfs/cos-state
and is read-only:
stateAssertVM(vm, "state.mounted", "true")
stateAssertVM(vm, "state.mount_point", "/run/initramfs/cos-state")
stateAssertVM(vm, "state.read_only", "true")
<sup>[[1]](https://github.com/Itxaka/kairos/blob/master/tests/autoinstall_test.go)</sup>
Troubleshoot Mount Failures:
exit status 32
) indicates an issue with mounting /dev/sda2
to /run/cos/state
. Gather more information using the following diagnostic commands:
df -h > /run/disk
mount > /run/mounts
blkid > /run/blkid
dmesg > /run/dmesg.log
Verify Partition Labels and Sizes:
stages:
boot:
- name: "Repart image"
layout:
device:
label: COS_RECOVERY
add_partitions:
- fsLabel: COS_STATE
size: 16240 # At least 16gb
pLabel: state
<sup>[[3]](https://github.com/Itxaka/kairos/blob/master/tests/assets/raw_image.yaml)</sup>
By following these steps, you should be able to resolve the errors and warnings encountered during the upgrade process on Alpine ARM using the kairos-agent upgrade
command.
To continue talking to Dosu, mention @dosu.
This is what the state directory looks like: