mirror of
https://github.com/systemd/systemd.git
synced 2026-06-24 08:47:49 +00:00
This is analogous to a change in mkosi[1] with the same motivation: some
scripts are run to bootstrap the distribution tree and are thus running
directly on the host system which may not have `/bin/bash` (e.g. NixOS).
As with the `mkosi` change, do that for each shebang for consistency
reasons.
[1] 8d2cd50e51
19 lines
691 B
Bash
Executable File
19 lines
691 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: CC-0
|
|
set -e
|
|
|
|
touch -r "$BUILDROOT/usr" "$BUILDROOT/etc/.updated" "$BUILDROOT/var/.updated"
|
|
|
|
if [ -n "$EFI_ARCHITECTURE" ]; then
|
|
mkdir -p "$BUILDROOT/boot/loader/addons"
|
|
ukify build \
|
|
--stub "$BUILDROOT/usr/lib/systemd/boot/efi/addon${EFI_ARCHITECTURE}.efi.stub" \
|
|
--cmdline="addonfoobar" \
|
|
--output "$BUILDROOT/boot/loader/addons/test.addon.efi" \
|
|
--secureboot-certificate "$SRCDIR/mkosi/mkosi.crt" \
|
|
--secureboot-private-key "$SRCDIR/mkosi/mkosi.key"
|
|
fi
|
|
|
|
# Used to sign artifacts verified by kernel platform keyring
|
|
cp "$SRCDIR/mkosi/mkosi.crt" "$SRCDIR/mkosi/mkosi.key" "$BUILDROOT/usr/share/"
|