put EFI tools in tarball

This commit is contained in:
Harald Hoyer 2018-09-13 15:02:05 +02:00
parent 8d930e2784
commit 92ed642dde
2 changed files with 9 additions and 4 deletions

View file

@ -158,10 +158,10 @@ mount ${DEV_PART}1 "$MY_TMPDIR"/boot
mkdir -p "$MY_TMPDIR"/boot/EFI/Boot
mkdir -p "$MY_TMPDIR"/boot/EFI/FedoraBook
[[ -e ${CURDIR}/LockDown.efi ]] && cp ${CURDIR}/LockDown.efi "$MY_TMPDIR"/boot/
if [[ -e ${CURDIR}/Shell.efi ]] && [[ -e ${CURDIR}/startup.nsh ]]; then
cp ${CURDIR}/startup.nsh "$MY_TMPDIR"/boot/
cp ${CURDIR}/Shell.efi "$MY_TMPDIR"/boot/EFI/Boot/bootx64.efi
if [[ -e "${SOURCE}"/Shell.efi ]] && [[ -e "${SOURCE}"/startup.nsh ]] && [[ -e "${SOURCE}"/LockDown.efi ]]; then
cp "${SOURCE}"/startup.nsh "$MY_TMPDIR"/boot/
cp "${SOURCE}"/LockDown.efi "$MY_TMPDIR"/boot/
cp "${SOURCE}"/Shell.efi "$MY_TMPDIR"/boot/EFI/Boot/bootx64.efi
cp "$SOURCE"/bootx64.efi "$MY_TMPDIR"/boot/EFI/FedoraBook/bootx64.efi
else
cp "$SOURCE"/bootx64.efi "$MY_TMPDIR"/boot/EFI/Boot/bootx64.efi

View file

@ -524,6 +524,11 @@ mv "$MY_TMPDIR"/root-hash.txt \
"$MY_TMPDIR"/initrd \
"$OUTDIR"
for i in LockDown.efi Shell.efi startup.nsh; do
[[ -e "${BASEDIR}"/$i ]] || continue
cp "$i" "$OUTDIR"
done
chown -R "$USER" "$OUTDIR"
cat > "${OUTDIR%/*}/${NAME}-latest.json" <<EOF