From cb7081569d00f1107fe803ceb82c04844044b332 Mon Sep 17 00:00:00 2001 From: valentin <valentinb@fsmpi.rwth-aachen.de> Date: Sat, 16 Oct 2021 23:05:19 +0200 Subject: [PATCH] changed offline repo directory name: include DISTRIB_CODENAME --- preseed/lip-early.sh | 2 +- scripts/liprepoctl.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/preseed/lip-early.sh b/preseed/lip-early.sh index 7f1fbad..145c0fc 100755 --- a/preseed/lip-early.sh +++ b/preseed/lip-early.sh @@ -1,7 +1,7 @@ #!/bin/sh sed -i -e '/ubuntu\.com/d' -e '/^$/d' /root/etc/apt/sources.list sed -i -e 's/lsb_release\.get_lsb_information()/lsb_release.get_distro_information()/g' /root/usr/bin/apt-clone # only relevant for kubuntu <= 20.04 -echo "deb [ arch=amd64 trusted=yes ] file:///isodevice/archives $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release) lip" >> /root/etc/apt/sources.list +echo "deb [ arch=amd64 trusted=yes ] file:///isodevice/archives-$(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release) $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release) lip" >> /root/etc/apt/sources.list echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release) main restricted universe multiverse" >> /root/etc/apt/sources.list echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release)-security main restricted universe multiverse" >> /root/etc/apt/sources.list echo "deb http://ftp.halifax.rwth-aachen.de/ubuntu/ $(sed -n 's/DISTRIB_CODENAME=\([a-z]\+\)/\1/p' /root/etc/lsb-release)-updates main restricted universe multiverse" >> /root/etc/apt/sources.list diff --git a/scripts/liprepoctl.sh b/scripts/liprepoctl.sh index d5a14c3..a750a57 100644 --- a/scripts/liprepoctl.sh +++ b/scripts/liprepoctl.sh @@ -11,7 +11,7 @@ DIST_VERSION=$DISTRIB_RELEASE function install_repo() { echo "# offline repository of the linux install party -deb [ arch=amd64 trusted=yes ] file://$1/archives $DIST_CODENAME lip" > "$FILENAME" +deb [ arch=amd64 trusted=yes ] file://$1/archives-$DIST_CODENAME $DIST_CODENAME lip" > "$FILENAME" } function uninstall_repo() -- GitLab