Commit Graph

109 Commits

Author SHA1 Message Date
Jeffrey Townsend
8d13652eb6 - Support Debian9
- Deprecate Debian7
2017-08-24 03:22:53 +00:00
Andreas Rammhold
a4cefaf8f5 tools: use /usr/bin/python2 instead of /usr/bin/python
python3 is starting to become the default on all major distributions.
Using `/usr/bin/python2` should be safe for the near future.
2017-06-30 11:40:29 +02:00
Jeffrey Townsend
fbc38a58b5 Change extract message from warn to info. 2017-05-23 08:12:43 -07:00
Jeffrey Townsend
79a9f9b459 Add post-install update hook.
TODO: parameterize
2017-05-15 14:31:24 -07:00
Jeffrey Townsend
f0c01c6955 The base-files package has a known incompatible assumption about /var/run which fails to work properly when the system was built using multistrap.
This change patches the base-files.postinst script to fix this issue prior to calling dpkg --configure.
2017-05-02 22:52:49 +00:00
Jeffrey Townsend
48bd05aca5 Build missing packages. 2017-02-22 02:10:22 +00:00
Jeffrey Townsend
61686c5b50 Improve output. 2017-02-21 18:43:35 +00:00
Jeffrey Townsend
5b46c04e24 Allow absolute paths (relative to the package root). 2017-02-15 18:36:53 +00:00
Jeffrey Townsend
61f9268995 Allow optional files in package declarations.
Files listed in the new 'optional-files' key will be included if present
but will not report packaging errors if missing.
2017-02-15 15:58:31 +00:00
Jeffrey Townsend
395108618c Add local device tree compiler to support out-of-tree DTS compilation. 2017-02-15 15:56:25 +00:00
Jeffrey Townsend
0b3dd1ba6a Add --ky to add YAML data. 2017-02-08 15:51:06 +00:00
Jeffrey Townsend
4391aed630 Improve comment. 2017-01-08 20:12:37 +00:00
Jeffrey Townsend
f6f9cdc99a - Allow building individual source files
- Allow direct specification of the kernel build tree.
2017-01-01 18:02:19 +00:00
Jeffrey Townsend
216e4f0eed Platform Kernel Module Support
Per-platform kernel modules can now be built out of tree against multiple kernel mbuild packages.
2016-12-31 20:59:27 +00:00
Jeffrey Townsend
d3a1f1546d Allow comma-separated package lists in prerequisites. Makes some templating easier. 2016-12-31 20:58:20 +00:00
Jeffrey Townsend
d332bcc21b Spelling. 2016-12-22 18:13:20 +00:00
Jeffrey Townsend
35f6859251 - Allow comments
- Add patch separator
2016-12-21 22:12:39 +00:00
Jeffrey Townsend
efe66c755b Add newline to issue.net. 2016-12-05 23:02:49 +00:00
Jeffrey Townsend
f10add085e Plugins are optional. 2016-11-29 17:39:36 +00:00
Carl D. Roth
d7958005f3 Updated plugin api
- single run() method is called with a mode argument
- plugin objects are persistent (re-entrant) for the lifetime of the install
- installer grovels the filesystem and/or zip file for plugin files
2016-11-28 12:06:22 -08:00
Carl D. Roth
c50cb2da27 Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux into roth_install_hook 2016-11-28 10:32:31 -08:00
Carl D. Roth
486f375b4a mkinstaller.py now handles pre/post hooks 2016-11-16 18:57:34 -08:00
Jeffrey Townsend
ab24f9914e Use the new module database infrastructure. 2016-11-16 20:21:04 +00:00
Jeffrey Townsend
0353c52c9d Make boot-config files optional. 2016-11-09 22:23:16 +00:00
Carl D. Roth
001aa48a45 Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux
Conflicts:
	packages/base/all/vendor-config-onl/src/python/onl/install/BaseInstall.py
2016-11-04 16:02:18 -07:00
Jeffrey Townsend
d3c65d04dd Remove output. 2016-11-04 21:32:08 +00:00
Jeffrey Townsend
54e292f0ba Factor out file delivery so it can be shared between packaging and release. 2016-11-04 21:16:03 +00:00
Jeffrey Townsend
08977b8e4c Use new unified infra asr too. 2016-11-01 19:23:55 +00:00
Jeffrey Townsend
51f23a3c7a Make asre generation configurable. 2016-10-31 22:10:47 +00:00
Jeffrey Townsend
b87ec658e0 Add option to generate ASRE documentation from the root filesystem. 2016-10-31 22:02:16 +00:00
Jeffrey Townsend
cd61449e52 Automatically generate ASRE documentation for each package. 2016-10-31 20:22:53 +00:00
Jeffrey Townsend
65af997801 Add support for priority, replaces, provides, conflicts, and virtual (all three). 2016-10-31 18:31:04 +00:00
Jeffrey Townsend
384f4d24b4 Support automatic service install/remove scripts. 2016-10-31 09:41:55 -07:00
Carl D. Roth
6f9d993696 the --extract option is unimplemented 2016-10-26 12:37:24 -07:00
Jeffrey Townsend
f8f2975121 New SYSTEM_COMPATIBILITY_VERSION (SCV) key
This key is designed to indicate the overall system compatibility between different installations.
For example, the system configuration in ONL2.0 is different from ONL 1.0 (partition scheme, loader/version management, etc) and attempting to boot a 1.0 switch image on a 2.0 system will not work properly.

This key exists to facilitate operational compatibility and upgrade steps. When a switch image is booted against a loader with an SCV different than it expects then a full re-install will need to be performed in order to upgrade the system before that image can run. If the SCV is different then an in-place loader-upgrade cannot be performed either.

The upgrade process will be updated to include an SCV check and perform a re-install.
The loader upgrade sequence will be predicated on SCV equality.

If the SCV is not equal after all upgrade operations then switch has the option of rebooting instead of continuing the init process.
This will be configured through the sysconfig interface.
2016-10-26 12:37:24 -07:00
Jeffrey Townsend
a707bec39a New SYSTEM_COMPATIBILITY_VERSION (SCV) key
This key is designed to indicate the overall system compatibility between different installations.
For example, the system configuration in ONL2.0 is different from ONL 1.0 (partition scheme, loader/version management, etc) and attempting to boot a 1.0 switch image on a 2.0 system will not work properly.

This key exists to facilitate operational compatibility and upgrade steps. When a switch image is booted against a loader with an SCV different than it expects then a full re-install will need to be performed in order to upgrade the system before that image can run. If the SCV is different then an in-place loader-upgrade cannot be performed either.

The upgrade process will be updated to include an SCV check and perform a re-install.
The loader upgrade sequence will be predicated on SCV equality.

If the SCV is not equal after all upgrade operations then switch has the option of rebooting instead of continuing the init process.
This will be configured through the sysconfig interface.
2016-10-25 18:07:26 +00:00
Jeffrey Townsend
6095635ce5 Convert /etc/os-release to /etc/os-release.json. 2016-10-06 16:30:05 +00:00
Jeffrey Townsend
c4d3eab661 Add the ability to add custom data to manifest files. 2016-10-03 19:30:53 +00:00
Jeffrey Townsend
2d3475b97f Enhance variable processing.
Variable elements are now allowed to be dicts or arbitrary lists of dicts.
2016-09-08 15:43:34 +00:00
Jeffrey Townsend
060958edd0 Option to add additional custom files. 2016-08-28 18:44:23 +00:00
Jeffrey Townsend
e74b124329 Option to allow additional custom files to be added to the image. 2016-08-27 15:06:59 +00:00
Jeffrey Townsend
6e85a367f8 The patch series file is now a parameter. 2016-08-18 13:19:38 -07:00
Shengzhou Liu
1ed3041b9d Add arm64 support for build and installer 2016-08-17 00:57:01 +08:00
Jeffrey Townsend
665641c75a The SSH PermitRootLogin setting is now an RFS option. 2016-08-15 19:07:45 +00:00
Jeffrey Townsend
a71c786f47 Modified to support absolute paths. 2016-08-12 20:55:33 +00:00
Jeffrey Townsend
e508a8160b Add option to include directory contents in the installer image. 2016-08-12 19:02:13 +00:00
Carl D. Roth
50f43798e9 Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux
Conflicts:
	builds/any/installer/grub/builds/Makefile
	builds/any/installer/uboot/builds/Makefile
	packages/base/all/initrds/loader-initrd-files/src/lib/boot1
	packages/base/all/vendor-config-onl/PKG.yml
	packages/base/all/vendor-config-onl/src/python/onl/mounts/__init__.py
2016-07-21 12:39:10 -07:00
Jeffrey Townsend
e87e30a31e Fix user uid and gid generation. 2016-07-19 14:38:12 +00:00
Jeffrey Townsend
147e638f7d Fix filesystem clean option. 2016-07-15 08:02:04 -07:00
Jeffrey Townsend
14dd72b0ed mkinstaller
New script to automate the installer generation and inputs for different build configurations.
2016-07-11 21:54:50 +00:00