-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit introduces an arm-firmware feature adding the required after-* hooks to ensure the RPi firmware is copied to the EFI partition. It could be, eventually, extended to support other boards and it does not harm systems which are not including RPi firmware. Signed-off-by: David Cassany <dcassany@suse.com>
- Loading branch information
1 parent
fa0ff06
commit d1e51eb
Showing
4 changed files
with
26 additions
and
13 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
20 changes: 20 additions & 0 deletions
20
pkg/features/embedded/arm-firmware/system/oem/00_armfirmware.yaml
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 @@ | ||
name: "Set ARM Firmware" | ||
stages: | ||
after-install-chroot: | ||
- &pifirmware | ||
name: Raspberry PI post hook | ||
if: '[ -d "/boot/vc" ]' | ||
commands: | ||
- cp -rf /boot/vc/* /run/elemental/efi/ | ||
|
||
after-upgrade-chroot: | ||
- <<: *pifirmware | ||
|
||
after-reset-chroot: | ||
- <<: *pifirmware | ||
|
||
after-disk: | ||
- name: Raspberry PI post hook | ||
if: '[ -d "/run/elemental-build/workingtree/boot/vc" ]' | ||
commands: | ||
- cp -rf /run/elemental-build/workingtree/boot/vc/* /run/elemental-build/efi/ |
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