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>
18 lines
469 B
Text
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"
|