Skip to content

Commit 1cb867e

Browse files
committed
move sources.list download to updatebase hook
1 parent f0b0da7 commit 1cb867e

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

config/hooks/REFORM/updatebase

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
set -u
4+
set -e
5+
6+
# shellcheck source=/dev/null
7+
. "$GRML_LIVE_CONFIG"
8+
9+
# FAI sets $target, but shellcheck does not know that.
10+
target=${target:?}
11+
12+
mkdir -p "$GRML_FAI_CONFIG"/files/REFORM/etc/apt/sources.list.d/
13+
/usr/lib/apt/apt-helper \
14+
download-file \
15+
https://reform.debian.net/reform_trixie.sources \
16+
"$GRML_FAI_CONFIG"/files/REFORM/etc/apt/sources.list.d/reform_trixie.sources \
17+
"SHA1:3d453dbf355beebf494ce6f61d2110b98e92fcf5"
18+
19+
# install all apt related files
20+
fcopy -M -i -B -v -r /etc/apt
21+
fcopy -M -i -B -v -r /usr/share/keyrings

test/gha-build-iso.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ cat >build-gha-ci-test-config-initial <<EOT
1818
last_release: "2024.12"
1919
EOT
2020

21-
mkdir -p config/files/REFORM/etc/apt/sources.list.d/
22-
/usr/lib/apt/apt-helper \
23-
download-file \
24-
https://reform.debian.net/reform_trixie.sources \
25-
config/files/REFORM/etc/apt/sources.list.d/reform_trixie.sources \
26-
"SHA1:3d453dbf355beebf494ce6f61d2110b98e92fcf5"
27-
2821
run_build() {
2922
local config_filename
3023
config_filename=$1

0 commit comments

Comments
 (0)