Revision d259b27c snf-image-host/common.sh.in
b/snf-image-host/common.sh.in | ||
---|---|---|
254 | 254 |
} |
255 | 255 |
|
256 | 256 |
do_debootstrap() { |
257 |
local target=$1
|
|
257 |
local target="$1"
|
|
258 | 258 |
|
259 | 259 |
echo "Debootstraping to create a new root filesystem:" |
260 | 260 |
|
... | ... | |
270 | 270 |
--include "$HELPER_EXTRA_PKGS" --variant=minbase stable "$target" \ |
271 | 271 |
"$HELPER_MIRROR" 2>&1 | sed -e 's/^/DEBOOTSTRAP: /g' |
272 | 272 |
|
273 |
# Save the package list |
|
274 |
chroot "$target" dpkg-query -W -f "\${Package}\n" > "$HELPER_CACHE_PKGS" |
|
275 |
|
|
273 | 276 |
rm "$target/usr/sbin/policy-rc.d" |
274 | 277 |
|
275 | 278 |
# remove the downloaded debs, as they are no longer needed |
... | ... | |
332 | 335 |
: ${HELPER_HARD_TIMEOUT:=5} |
333 | 336 |
: ${HELPER_USER:="nobody"} |
334 | 337 |
: ${HELPER_CACHE_FILE:="@HELPER_DIR@/cache.tar"} |
338 |
: ${HELPER_CACHE_PKGS:="@HELPER_DIR@/packages"} |
|
335 | 339 |
: ${HELPER_EXTRA_PKGS:="linux-image-amd64,e2fsprogs,ntfs-3g,ntfsprogs,xmlstarlet,python,parted,reglookup,chntpw,util-linux"} |
336 | 340 |
: ${HELPER_MIRROR:=""} |
337 | 341 |
: ${PITHOS_DB:="sqlite:////@localstatedir@/lib/pithos/backend.db"} |
Also available in: Unified diff