Files
odroid-stamper/fixups/S20-install-packages
Dongjin Kim eb32064c8a fixup: add install 'gnupg' by default before package update
Generating locales (this might take a while)...
Generation complete.
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Iae93556895653c4fa09fa8946b5ee4c5c2669430
2024-06-21 12:23:21 +09:00

39 lines
945 B
Bash
Executable File

#!/bin/sh
export DEBIAN_FRONTEND=noninteractive
rm -f /etc/apt/sources.list.d/launchpad-hardkernel-ppa.list
if [ "x@@OSNAME@@" = "xdebian" ]; then
apt update --allow-releaseinfo-change
apt install @@DEFAULT_APT_OPTIONS@@ gnupg || exit 1
fi
apt-key adv --keyserver keyserver.ubuntu.com \
--recv-keys 4F71126C02B8F823
apt purge -y linux-image-arm64
apt update --allow-releaseinfo-change \
&& apt upgrade -y
apt install @@DEFAULT_APT_OPTIONS@@ \
odroid-alsa \
odroid-base \
flash-kernel \
rsync \
@@DEFAULT_FLAVOUR_PACKAGES@@ \
linux-image-@@DEFAULT_KERNEL_PACKAGE@@ \
@@DEFAULT_BOOTSCRIPT_PACKAGE@@ || exit 1
if [ "x@@BUILD_DKMS@@" = "xtrue" ]; then
apt install @@DEFAULT_APT_OPTIONS@@ \
linux-headers-@@DEFAULT_KERNEL_PACKAGE@@
fi
if ls /overlay/host/debs/*.deb 1>/dev/null 2>&1; then
dpkg -i $(ls /overlay/host/debs/*.deb)
apt install --fix-broken @@DEFAULT_APT_OPTIONS@@
fi
apt remove -y @@DEFAULT_BLACKLIST_PACKAGES@@