Caching debootstrap
This commit is contained in:
parent
f498b8f0e3
commit
c8367a5e68
|
@ -25,16 +25,18 @@ clean_workspace() {
|
||||||
}
|
}
|
||||||
|
|
||||||
debootstrap() {
|
debootstrap() {
|
||||||
sudo debootstrap \
|
if [ ! -d "$TARGET.debootstrap" ]; then
|
||||||
--arch="$ARCH" \
|
sudo debootstrap \
|
||||||
--variant="$VARIANT" \
|
--arch="$ARCH" \
|
||||||
--components="$COMPONENTS" \
|
--variant="$VARIANT" \
|
||||||
--include="$PKGS_INCLUDE" \
|
--components="$COMPONENTS" \
|
||||||
--foreign \
|
--include="$PKGS_INCLUDE" \
|
||||||
"$VERSION" \
|
"$VERSION" \
|
||||||
"$TARGET" \
|
"$TARGET.debootstrap" \
|
||||||
"$MIRROR" \
|
"$MIRROR" \
|
||||||
"$SCRIPT"
|
"$SCRIPT"
|
||||||
|
fi
|
||||||
|
rsync -aHAX "$TARGET.debootstrap/" "$TARGET/"
|
||||||
}
|
}
|
||||||
|
|
||||||
upgrade_debs() {
|
upgrade_debs() {
|
||||||
|
@ -44,7 +46,8 @@ upgrade_debs() {
|
||||||
|
|
||||||
secondstage() {
|
secondstage() {
|
||||||
# This step could be done directly by removing
|
# This step could be done directly by removing
|
||||||
sudo chroot "$TARGET" /debootstrap/debootstrap --second-stage
|
# do_in_target /debootstrap/debootstrap --second-stage
|
||||||
|
echo "Not needed anymore (removed the --foreign option)"
|
||||||
}
|
}
|
||||||
|
|
||||||
patch_target() {
|
patch_target() {
|
||||||
|
|
Loading…
Reference in New Issue