Skip to content

Commit

Permalink
FP4: Add bootloader unlock check & set_active for postmarketOS
Browse files Browse the repository at this point in the history
Similar to the Ubuntu Touch installation steps, for postmarketOS the
bootloader needs to be unlocked. Also making sure we use the _a
partition can't be a bad idea.
  • Loading branch information
z3ntu authored and amartinz committed Mar 11, 2024
1 parent 2a9e84b commit 01dbaf9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions v2/devices/FP4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,28 @@ operating_systems:
postmarketos:interfaces:
prerequisites: []
steps:
### Ensure we always start in bootloader mode
- actions:
- adb:reboot:
to_state: "bootloader"
fallback:
- core:user_action:
action: "bootloader"
### Ensure the bootloader has been unlocked already
- actions:
- fastboot:wait:
- actions:
- fastboot:assert_var:
variable: "unlocked"
value: "yes"
fallback:
- core:user_action:
action: "unlock_phone"
### As this is an A/B device, force all future operations in "a" slot.
- actions:
- fastboot:set_active:
slot: "a"
### Flash partitions
- actions:
- postmarketos:download:
- fastboot:erase:
Expand Down

0 comments on commit 01dbaf9

Please sign in to comment.