apenwarr-redo/docs/cookbook/container/debootstrap.fs.do
Avery Pennarun 537866b871 cookbook/container: remove unexplained "exec >&2" lines.
These are often a good idea, but not necessary here and are distracting
to the tutorial, so let's just take them out.

Reported-by: Jeff Stearns <jeff.stearns@gmail.com>
2019-01-14 02:03:19 -05:00

18 lines
469 B
Text

fs=${1%.fs}
rm -rf "$fs" "$fs.fakeroot"
redo-ifchange debdownload.fs debootstrap.options
cp -a debdownload/. "$fs"
eatmydata \
fakechroot \
fakeroot -s "$fs.fakeroot" \
debootstrap $(cat debootstrap.options) "$fs" >&2
# Clean up installed package files
rm -f "$fs"/var/cache/apt/archives/*.deb \
"$fs"/var/cache/apt/*.bin \
"$fs"/var/lib/apt/lists/*Packages \
"$fs"/var/lib/apt/lists/*Sources \
"$fs"/var/lib/apt/lists/debootstrap*
redo-ifchange "$fs/bin/sh"