freebsd-skq/release
cperciva 8b1726e8cc Change how packages are installed into VM images: Rather than chrooting
into the image and running 'pkg install' from there, use 'pkg fetch' to
download packages into a temporary location and then 'pkg add' to install
them into the image.

This simplifies the code by avoiding the need to copy /etc/resolv.conf
into the image and then delete it later, and makes it possible to cross
build (e.g., to create an amd64 image when running on i386 hardware; or
in the future for building disk images for embedded platforms).

Because pkg was implicitly installed when VM_EXTRA_PACKAGES was non-empty,
add it to VM_EXTRA_PACKAGES in azure.conf and openstack.conf to maintain
the current behaviour.

By default repo-FreeBSD.sqlite is copied into the image, (a) to match
previous behaviour, where the file would be downloaded by the chrooted
pkg invocation; and (b) because it may be useful for testing purposes,
e.g., to see why a package didn't get installed.  Because this file is
large (46 MB) and not likely to be useful in -RELEASE images which are
being launched into Clouds several months later, it can be disabled by
setting NOREPOSQLITE.

As far as I know this commit does not change the disk images produced in
any filesystem-visible way.
2014-11-21 02:13:12 +00:00
..
amd64 Initial rewrite to consolidate VM image build scripts into one. 2014-11-05 13:22:19 +00:00
arm Set a static revision of the Crochet checkout to avoid 2014-09-16 15:35:13 +00:00
doc Include urndis(4) in list of devices for which we generate hardware notes. 2014-10-04 23:56:25 +00:00
i386 Initial rewrite to consolidate VM image build scripts into one. 2014-11-05 13:22:19 +00:00
pc98 Move ^/user/gjb/hacking/release-embedded up one directory, and remove 2014-02-21 03:35:43 +00:00
picobsd simple_httpd: cosmetic cleanups. 2014-09-18 16:53:44 +00:00
pkg_repos Move ^/user/gjb/hacking/release-embedded up one directory, and remove 2014-02-21 03:35:43 +00:00
powerpc Use mkimg instead of md(4) and gpart. 2014-05-01 03:24:41 +00:00
scripts Unmount filesystem and destroy md before we read the vnode from disk and 2014-11-20 00:16:55 +00:00
sparc64 Move ^/user/gjb/hacking/release-embedded up one directory, and remove 2014-02-21 03:35:43 +00:00
tools Change how packages are installed into VM images: Rather than chrooting 2014-11-21 02:13:12 +00:00
Makefile Add glue to allow enabling building cloud provider 2014-10-29 15:52:17 +00:00
Makefile.vm Merge duplicative vm-CLOUDTYPE targets before additional duplication gets 2014-11-20 03:46:35 +00:00
rc.local Create /tmp/bsdinstall_etc even if we aren't starting the installer so that 2014-09-13 20:09:02 +00:00
release.conf.sample Add examples for WITH_CLOUDWARE to release.conf.sample. 2014-11-04 00:02:23 +00:00
release.sh Add examples for WITH_CLOUDWARE to release.conf.sample. 2014-11-04 00:02:23 +00:00