From ec66e4023c19019fcd51e7d06744d3dd7e49b838 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 30 May 2017 13:20:05 -0700 Subject: [PATCH] Create "xyz.sources-list" files in "build.sh" as well (with the contents of "/etc/apt/sources.list") --- build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 85296a4f3..db0a76783 100755 --- a/build.sh +++ b/build.sh @@ -109,9 +109,10 @@ docker run \ echo "$epoch" > "$targetBase.debuerreotype-epoch" touch_epoch "$targetBase.manifest" "$targetBase.debuerreotype-epoch" - for f in debian_version os-release; do - cp "$rootfs/etc/$f" "$targetBase.$f" - touch_epoch "$targetBase.$f" + for f in debian_version os-release apt/sources.list; do + targetFile="$targetBase.$(basename "$f" | sed -r "s/[^a-zA-Z0-9_-]+/-/g")" + cp "$rootfs/etc/$f" "$targetFile" + touch_epoch "$targetFile" done done } >&2