Skip to content

Commit

Permalink
Create a subpackage that places systemd-boot as-if installed. (#39295)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Moore <[email protected]>
  • Loading branch information
mattmoor authored Jan 11, 2025
1 parent 626ec57 commit 7f1f46e
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion systemd.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package:
name: systemd
version: "257.2"
epoch: 2
epoch: 3
description: The systemd System and Service Manager
copyright:
- license: LGPL-2.1-or-later AND GPL-2.0-or-later
resources:
cpu: 4
memory: 12Gi

vars:
llvm-vers: 19
Expand Down Expand Up @@ -116,6 +119,31 @@ subpackages:
mkdir -p ${{targets.subpkgdir}}/usr/lib
cp ${{targets.destdir}}/usr/lib/systemd/libsystemd-shared-*.so ${{targets.subpkgdir}}/usr/lib/
- name: "systemd-boot-installed"
description: "systemd bootloader (installed for EFI)"
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/boot/efi/EFI/BOOT/
- if: ${{build.arch}} == 'aarch64'
runs: |
cp ${{targets.destdir}}/usr/lib/systemd/boot/efi/systemd-bootaa64.efi ${{targets.subpkgdir}}/boot/efi/EFI/BOOT/BOOTAA64.EFI
- if: ${{build.arch}} == 'x86_64'
runs: |
cp ${{targets.destdir}}/usr/lib/systemd/boot/efi/systemd-bootx64.efi ${{targets.subpkgdir}}/boot/efi/EFI/BOOT/BOOTX64.EFI
test:
environment:
contents:
packages:
- file
- grep
pipeline:
- if: ${{build.arch}} == 'aarch64'
runs: |
file /boot/efi/EFI/BOOT/BOOTAA64.EFI | grep "executable for EFI"
- if: ${{build.arch}} == 'x86_64'
runs: |
file /boot/efi/EFI/BOOT/BOOTX64.EFI | grep "executable for EFI"
- name: "systemd-boot"
description: "systemd bootloader"
dependencies:
Expand Down

0 comments on commit 7f1f46e

Please sign in to comment.