summaryrefslogtreecommitdiff
path: root/config/chroot_local-hooks/xx-sources.list
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2025-02-08 08:08:31 +0100
committerHolger Paradies <retabell@gmx.de>2025-04-26 14:56:24 +0200
commitce45f552e6ec5837ed6d8ce19dec6f591e561dbb (patch)
treec38c59f85b373bc6260aac5f2c5ee312b0a0e607 /config/chroot_local-hooks/xx-sources.list
parent026d1954028477d94ae69a9f05346e0095e34a48 (diff)
downloadkanotix-ce45f552e6ec5837ed6d8ce19dec6f591e561dbb.zip
kanotix-ce45f552e6ec5837ed6d8ce19dec6f591e561dbb.tar.gz
Signed by in sources.list
Diffstat (limited to 'config/chroot_local-hooks/xx-sources.list')
-rwxr-xr-xconfig/chroot_local-hooks/xx-sources.list31
1 files changed, 31 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/xx-sources.list b/config/chroot_local-hooks/xx-sources.list
index 337385d..caf7cd6 100755
--- a/config/chroot_local-hooks/xx-sources.list
+++ b/config/chroot_local-hooks/xx-sources.list
@@ -12,8 +12,39 @@ esac
sed -i -e "s#${LB_MIRROR_CHROOT}#http://deb.debian.org/debian#"g /etc/apt/sources.list
# update apt index debpool
+# live is already signed-by
cp -f /etc/apt/sources.list /etc/apt/sources.list.bak
sed -i '/live/!d' /etc/apt/sources.list
apt-get update -y
cp -f /etc/apt/sources.list.bak /etc/apt/sources.list
rm -f /etc/apt/sources.list.bak
+
+case "${LB_DISTRIBUTION}" in
+ stretch|buster|bullseye) exit ;;
+esac
+
+# add signed-by to sources.list
+# TODO dep822
+# TODO wine
+# TODO fix it
+
+#sed -i 's/^deb-src/dummy/g' /etc/apt/sources.list
+
+#sed -i '/kanotix/s/^deb/deb [signed-by=\/usr\/share\/keyrings\/kanotix25.asc]/g' /etc/apt/sources.list
+#sed -i '/debian.org/s/^deb/deb [signed-by=\/usr\/share\/keyrings\/debian-archive-keyring.gpg]/g' /etc/apt/sources.list
+#sed -i '/dl.winehq/s/^deb/deb [signed-by=\/etc\/apt\/keyrings\/wine-staging.key.asc]/g' /etc/apt/sources.list
+
+#sed -i 's/^dummy/deb-src/g' /etc/apt/sources.list
+#sed -i '/kanotix/s/^deb-src/deb-src [signed-by=\/usr\/share\/keyrings\/kanotix25.asc]/g' /etc/apt/sources.list
+#sed -i '/debian.org/s/^deb-src/deb-src [signed-by=\/usr\/share\/keyrings\/debian-archive-keyring.gpg]/g' /etc/apt/sources.list
+#sed -i '/dl.winehq/s/^deb-src/deb-src [signed-by=\/etc\/apt\/keyrings\/wine-staging.key.asc]/g' /etc/apt/sources.list
+
+#if [ -e /etc/apt/trusted.gpg.d/wine-staging.key.asc ]; then
+# cp -f /etc/apt/trusted.gpg.d/wine-staging.key.asc /etc/apt/keyrings/wine-staging.key.asc
+#fi
+
+# key.asc is kanotix spec
+# debian keys needed by live-build ?
+rm -f /etc/apt/trusted.gpg.d/*.key.asc
+# test if we need debian-keys
+rm -f /etc/apt/trusted.gpg.d/*