summaryrefslogtreecommitdiff
path: root/tools/build-on-freebsd
Commit message (Collapse)AuthorAgeFilesLines
* replace usage of dmidecode with kenv on FreeBSD (#621)Mina Galić2020-11-061-1/+0
| | | | | | | | FreeBSD lets us read out kernel parameters with kenv(1), a user-space utility that's shipped in "base" We can use it in place of dmidecode(8), thus removing the dependency on sysutils/dmidecode, and the restrictions to i386 and x86_64 architectures that this utility imposes on FreeBSD. Co-authored-by: Scott Moser <smoser@brickies.net>
* tools/build-on-freebsd: fix comment explaining purpose of the script (#635)Mina Galić2020-10-291-3/+6
| | | | | | Since there is now an official port for cloud-init in FreeBSD, this script has a different purpose. It's an interface between cloud-init maintainers, and the FreeBSD port maintainers for quickly seeing which dependencies have changed.
* freebsd: py37-serial is now py37-pyserial (#492)Gonéri Le Bouder2020-07-151-1/+1
| | | | | The package has been renamed. See: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246546
* cloudinit: remove six from packaging/tooling (#253)Daniel Watkins2020-03-171-1/+0
|
* set_passwords: support for FreeBSD (#46)Igor Galić2019-11-261-1/+0
| | | | | | | | | | | | | | Allow setting of user passwords on FreeBSD The www/chpasswd utility which we depended on for FreeBSD installations does *not* do the same thing as the equally named Linux utility. For FreeBSD, we now use the pw(8) utility (which can only process one user at a time) Additionally, we abstract expire passwd into a function, and override it in the FreeBSD distro class. Co-Authored-By: Chad Smith <chad.smith@canonical.com>
* tools/build-on-freebsd: update to python3Gonéri Le Bouder2019-06-171-33/+40
| | | | | | | | | - use python3 by default - ability to use any Python version through the PYTHON env-var - indent with 4 spaces - use 'set -eux' - remove trailing whitespace - drop the cheetah dep, Jinja2 is enough
* freebsd: add chpasswd pkg in the imageGonéri Le Bouder2019-05-091-5/+4
| | | | cc_set_passwords.py depends on chpasswd binary.
* Remove prettytable dependency, introduce simpletableAndrew Jorgensen2017-10-021-1/+0
| | | | | | | The first revision of this rendered tables with less decoration but there was a desire upstream to avoid possibly breaking some parsing someone might be doing, so it has been revised to render the same as prettytable for the cases cloud-init actually uses.
* FreeBSD: Make freebsd a variant, fix unittests and tools/build-on-freebsd.Scott Moser2017-06-151-4/+2
| | | | | | | | | | | | - Simplify the logic of 'variant' in util.system_info much of the data from https://github.com/hpcugent/easybuild/wiki/OS_flavor_name_version - fix get_resource_disk_on_freebsd when running on a system without an Azure resource disk. - fix tools/build-on-freebsd to replace oauth with oauthlib and add bash which is a dependency for tests. - update a fiew places that were checking for freebsd but not using the util.is_FreeBSD()
* FreeBSD: improvements and fixes for use on AzureHongjiang Zhang2017-05-101-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This patch targets to make FreeBSD 10.3 or 11 work on Azure. The modifications abide by the rule of: * making as less modification as possible * delegate to the distro or datasource where possible. The main modifications are: 1. network configuration improvements, and movement into distro path. 2. Fix setting of password. Password setting through "pw" can only work through pipe. 3. Add 'root:wheel' to syslog_fix_perms field. 4. Support resizing default file system (ufs) 5. copy cloud.cfg for freebsd to /etc/cloud/cloud.cfg rather than /usr/local/etc/cloud/cloud.cfg. 6. Azure specific changes: a. When reading the azure endpoint, search in a different path and read a different option name (option-245 vs. unknown-245). so, the lease file path should be generated according to platform. b. adjust the handling of ephemeral mounts for ufs filesystem and for finding the ephemeral device. c. fix mounting of cdrom LP: #1636345
* tools/build-on-freebsd: e2fsprogs provides blkidScott Moser2014-09-291-1/+0
|
* tools/build-on-freebsd: add blkid and e2fsprogrsScott Moser2014-09-291-0/+2
|
* tools/build-on-freebsd: sort pkgs listScott Moser2014-09-291-7/+14
|
* fix: Since these now actually exist in ports, install them properlyHarm Weites2014-09-031-0/+1
| | | | (with pkg).
* change: Rename the config file to cloud.cfg-freebsd so it doesn'tHarm Weites2014-08-231-2/+2
| | | | | get copied per default. Packaging will take care of installing this configfile on the BSD platform.
* fix: Use the correct variable.Harm Weites2014-08-231-2/+2
|
* build-on-freebsd: minor cleanups/bikesheddingScott Moser2014-08-221-3/+16
|
* fix: Install the python package that will install the required link toHarm Weites2014-08-141-4/+1
| | | | the python2.7 binary. This defaults to 2.7, which is fine.
* change: Install everything in the right location on both Linux (whichHarm Weites2014-08-101-3/+1
| | | | | ofcourse already was good) and FreeBSD (which realy likes /usr/local for this).
* change: Save and restore the SSH keys between builds.Harm Weites2014-08-101-0/+6
|
* change: Make note of another python lib pypi takes care of.Harm Weites2014-08-091-1/+1
|
* change: Create a symlink to python2.7, to make sure running plain pythonHarm Weites2014-08-091-0/+3
| | | | works.
* new: Some datasources (like Smartos) use dmidecode to gather some specificHarm Weites2014-08-091-1/+1
| | | | information, so install it.
* fix: More dependencies.Harm Weites2014-08-091-1/+1
|
* new: Buildscript for installing on FreeBSD. This should do until aHarm Weites2014-08-091-0/+40
proper port is created.