Skip to content

Commit

Permalink
Merge pull request #6 from tianon/xyz.sources-list
Browse files Browse the repository at this point in the history
Create "xyz.sources-list" files in "build.sh" as well (with the contents of "/etc/apt/sources.list")
  • Loading branch information
tianon authored May 30, 2017
2 parents 4e6bdec + ec66e40 commit ec828bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,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
Expand Down

0 comments on commit ec828bf

Please sign in to comment.