Skip to content

Commit

Permalink
Use deb822.sources
Browse files Browse the repository at this point in the history
* replaced all sources.list's with deb822.sources - sources.list(5) deb822(5)
* grml-archive-keyring.gpg: move to usr/share/keyrings - apt-secure(8)
* patched wayback(snapshot) hook and 33apt-setup to work with .sources
* grml-live: added the wayback date to the configuration output as confirmation
  • Loading branch information
crpb committed Jan 23, 2025
1 parent 9c9e4a1 commit 0d3e025
Show file tree
Hide file tree
Showing 20 changed files with 168 additions and 57 deletions.

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions config/files/etc/apt/sources.list.d/debian.list/DEBIAN_STABLE

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions config/files/etc/apt/sources.list.d/debian.list/DEBIAN_TRIXIE

This file was deleted.

This file was deleted.

28 changes: 28 additions & 0 deletions config/files/etc/apt/sources.list.d/debian.sources/DEBIAN_BOOKWORM
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Types: deb deb-src
URIs: http://deb.debian.org/debian/
Suites:
bookworm
# bookworm-updates
# bookworm-proposed-updates
# bookworm-backports
Components:
main
contrib
non-free-firmware
non-free
Enabled: yes
Signed-By:
/usr/share/keyrings/debian-archive-keyring.gpg

Types: deb deb-src
URIs: http://deb.debian.org/debian-security
Suites: bookworm-security
Components:
main
contrib
non-free-firmware
non-free
Enabled: yes
Signed-By:
/usr/share/keyrings/debian-archive-keyring.gpg

26 changes: 26 additions & 0 deletions config/files/etc/apt/sources.list.d/debian.sources/DEBIAN_BULLSEYE
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Types: deb deb-src
URIs: http://deb.debian.org/debian/
Suites:
bullseye
# bullseye-updates
# bullseye-proposed-updates
# bullseye-backports
Components:
main
contrib
non-free
Enabled: yes
Signed-By:
/usr/share/keyrings/debian-archive-keyring.gpg

Types: deb deb-src
URIs: http://deb.debian.org/debian-security
Suites: bullseye-security
Components:
main
contrib
non-free
Enabled: yes
Signed-By:
/usr/share/keyrings/debian-archive-keyring.gpg

28 changes: 28 additions & 0 deletions config/files/etc/apt/sources.list.d/debian.sources/DEBIAN_STABLE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Types: deb deb-src
URIs: http://deb.debian.org/debian/
Suites:
stable
# stable-updates
# stable-proposed-updates
stable-backports
Components:
main
contrib
non-free-firmware
non-free
Enabled: yes
Signed-By:
/usr/share/keyrings/debian-archive-keyring.gpg

Types: deb deb-src
URIs: http://deb.debian.org/debian-security
Suites: stable-security
Components:
main
contrib
non-free-firmware
non-free
Enabled: yes
Signed-By:
/usr/share/keyrings/debian-archive-keyring.gpg

28 changes: 28 additions & 0 deletions config/files/etc/apt/sources.list.d/debian.sources/DEBIAN_TESTING
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Types: deb deb-src
URIs: http://deb.debian.org/debian/
Suites:
testing
# testing-updates
# testing-proposed-updates
# testing-backports
Components:
main
contrib
non-free-firmware
non-free
Enabled: yes
Signed-By:
/usr/share/keyrings/debian-archive-keyring.gpg

Types: deb deb-src
URIs: http://deb.debian.org/debian-security
Suites: testing-security
Components:
main
contrib
non-free-firmware
non-free
Enabled: yes
Signed-By:
/usr/share/keyrings/debian-archive-keyring.gpg

28 changes: 28 additions & 0 deletions config/files/etc/apt/sources.list.d/debian.sources/DEBIAN_TRIXIE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Types: deb deb-src
URIs: http://deb.debian.org/debian/
Suites:
trixie
# trixie-updates
# trixie-proposed-updates
# trixie-backports
Components:
main
contrib
non-free-firmware
non-free
Enabled: yes
Signed-By:
/usr/share/keyrings/debian-archive-keyring.gpg

Types: deb deb-src
URIs: http://deb.debian.org/debian-security
Suites: trixie-security
Components:
main
contrib
non-free-firmware
non-free
Enabled: yes
Signed-By:
/usr/share/keyrings/debian-archive-keyring.gpg

13 changes: 13 additions & 0 deletions config/files/etc/apt/sources.list.d/debian.sources/DEBIAN_UNSTABLE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Types: deb deb-src
URIs: http://deb.debian.org/debian/
Suites:
unstable
Components:
main
contrib
non-free-firmware
non-free
Enabled: yes
Signed-By:
/usr/share/keyrings/debian-archive-keyring.gpg

3 changes: 0 additions & 3 deletions config/files/etc/apt/sources.list.d/grml-live.list/GRMLBASE

This file was deleted.

3 changes: 0 additions & 3 deletions config/files/etc/apt/sources.list.d/grml-stable.list/GRMLBASE

This file was deleted.

This file was deleted.

9 changes: 9 additions & 0 deletions config/files/etc/apt/sources.list.d/grml.sources/GRMLBASE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Types: deb deb-src
URIs: http://deb.grml.org/
Suites:
grml-stable
grml-testing
grml-live
Components: main
Enabled: yes
Signed-By: /usr/share/keyrings/grml-archive-keyring.gpg
8 changes: 4 additions & 4 deletions config/hooks/updatebase.GRMLBASE
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ fcopy -M -i -B -v -r /etc/apt
if [ -n "${WAYBACK_DATE:-}" ] ; then
echo "Wayback date '$WAYBACK_DATE' identified, enabling for snapshot.debian.org usage."

perl -pi -e "s#^(\s+)(deb.* )(.*://deb.debian.org.*?)\s+([a-z-]+)\s+(.*)\$#\$1\$2 [check-valid-until=no] http://snapshot.debian.org/archive/debian/$WAYBACK_DATE/ \$4 \$5#" \
"${target}/etc/apt/sources.list.d/debian.list"
perl -pi -e 'BEGIN { $d="'"$WAYBACK_DATE"'"; }
s#^(URIs:)\s+(.*://deb.debian.org.*?)$#$1 http://snapshot.debian.org/archive/debian/$d/#' \
"${target}/etc/apt/sources.list.d/debian.sources"

perl -pi -e "s#^(\s+)(deb.* )(.*://security.debian.org.*?)\s+([a-z-/]+)\s+(.*)\$#\$1\$2 [check-valid-until=no] http://snapshot.debian.org/archive/debian-security/$WAYBACK_DATE/ \$4 \$5#" \
"${target}/etc/apt/sources.list.d/debian.list"
sed -i '/^Suites/a Check-Valid-Until: no' "${target}/etc/apt/sources.list.d/debian.sources"
fi

## END OF FILE #################################################################
Expand Down
5 changes: 3 additions & 2 deletions config/scripts/GRMLBASE/33-aptsetup
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ target=${target:?}
if ifclass RELEASE ; then
set -u
current_date=$(date +%Y%m%d)
perl -pi -e 'BEGIN { $d="'"$current_date"'"; } s#^(\s+)(deb.* )(.*://deb.debian.org.*?)\s+([a-z-]+)\s+(.*)$#$1$2http://snapshot.debian.org/archive/debian/$d/ $4 $5#' \
"${target}/etc/apt/sources.list.d/debian.list"
perl -pi -e 'BEGIN { $d="'"$current_date"'"; } \
s#^(URIs:)\s+(.*://deb.debian.org.*?)$#$1 http://snapshot.debian.org/archive/debian/$d/#' \
"${target}/etc/apt/sources.list.d/debian.sources"
fi

## END OF FILE #################################################################
Expand Down
1 change: 1 addition & 0 deletions grml-live
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ echo " main directory: $OUTPUT"
[ -n "$GRML_NAME" ] && echo " Grml name: $GRML_NAME"
[ -n "$RELEASENAME" ] && echo " Release name: $RELEASENAME"
[ -n "$DATE" ] && echo " Build date: $DATE"
[ -n "$WAYBACK_DATE" ] && echo " Wayback date: $WAYBACK_DATE"
[ -n "$VERSION" ] && echo " Grml version: $VERSION"
[ -n "$SUITE" ] && echo " Debian suite: $SUITE"
[ -n "$ARCH" ] && echo " Architecture: $ARCH"
Expand Down

0 comments on commit 0d3e025

Please sign in to comment.