From 67cd15b932f5cc5df2367cb28d8eb845d0bc9e0c Mon Sep 17 00:00:00 2001 From: aptalca Date: Tue, 21 Sep 2021 13:14:52 -0400 Subject: [PATCH] standardize apt-get --- root/etc/cont-init.d/94-mesa-repo | 7 +++++++ root/etc/cont-init.d/95-apt-get | 3 +++ root/etc/cont-init.d/98-mesa | 3 --- 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 root/etc/cont-init.d/94-mesa-repo create mode 100644 root/etc/cont-init.d/95-apt-get diff --git a/root/etc/cont-init.d/94-mesa-repo b/root/etc/cont-init.d/94-mesa-repo new file mode 100644 index 0000000..08b9258 --- /dev/null +++ b/root/etc/cont-init.d/94-mesa-repo @@ -0,0 +1,7 @@ +#!/usr/bin/with-contenv bash + +if [ ! -f "/etc/apt/sources.list.d/kisak-mesa-focal.list" ]; then + echo "**** Adding kisak-mesa repo ****" + apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F63F0F2B90935439 + echo "deb http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal main" > /etc/apt/sources.list.d/kisak-mesa-focal.list +fi \ No newline at end of file diff --git a/root/etc/cont-init.d/95-apt-get b/root/etc/cont-init.d/95-apt-get new file mode 100644 index 0000000..5b1a21c --- /dev/null +++ b/root/etc/cont-init.d/95-apt-get @@ -0,0 +1,3 @@ +#!/usr/bin/with-contenv bash + +apt-get update diff --git a/root/etc/cont-init.d/98-mesa b/root/etc/cont-init.d/98-mesa index 681df21..900084e 100644 --- a/root/etc/cont-init.d/98-mesa +++ b/root/etc/cont-init.d/98-mesa @@ -19,8 +19,5 @@ done if "$install"; then echo "**** Installing mesa ****" - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F63F0F2B90935439 - echo "deb http://ppa.launchpad.net/kisak/kisak-mesa/ubuntu focal main" > /etc/apt/sources.list.d/kisak-mesa-focal.list - apt-get update apt-get install -y $pkgs fi