Commit Graph

910 Commits

Author SHA1 Message Date
Jeffrey Townsend
558e9f3d29 Merge pull request #121 from carlroth/master
Implement system upgrade for in-place re-partitioning
2016-11-09 09:16:48 -08:00
Jeffrey Townsend
e818f47df6 Merge pull request #125 from sonoble/deb8-fix
adds base-files dependency to faultd
2016-11-09 09:15:46 -08:00
Steven Noble
7ea57d959b adds base-files dependency to faultd 2016-11-09 02:18:31 +00:00
Jeffrey Townsend
76e0d24d10 Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux 2016-11-08 19:57:26 +00:00
Jeffrey Townsend
38297a63cf Latest 2016-11-08 19:57:17 +00:00
Jeffrey Townsend
c0562925d8 Merge pull request #124 from wilmo119/master
Latest bigcode.
2016-11-08 09:25:25 -08:00
Wilson Ng
82ba5faebd Latest bigcode. 2016-11-08 09:27:57 -08:00
Jeffrey Townsend
e2f9ea1fba Add Device Mapper/Crypt support. 2016-11-08 14:29:07 +00:00
Jeffrey Townsend
0508e7149c Latest 2016-11-08 14:28:57 +00:00
Carl D. Roth
d11513407c Merge branch 'master' of github.com:carlroth/OpenNetworkLinux 2016-11-07 13:13:41 -08:00
Carl D. Roth
19d19ef51c Fix swiget for if SWI is missing 2016-11-07 13:12:54 -08:00
Carl D. Roth
3dd8881921 Updates for review feedback
- use built-in mount context for ONL-BOOT
- fix logger handle
- minor nit for swiget if the SWI is missing
2016-11-07 13:12:42 -08: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
b699cdbe2d Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux 2016-11-04 21:32:32 +00: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
1ced5a5251 Merge pull request #123 from carlroth/roth_swl_3246
Handle unformatted/corrupted partition tables, see SWL-3246
2016-11-04 13:09:23 -07:00
Carl D. Roth
a676d8ed2c Fixed exception handler and log message 2016-11-04 12:53:48 -07:00
Carl D. Roth
6d1aaa134c Handle unformatted/corrupted partition tables, see SWL-3246
- handle more pyparted exceptions
- properly clobber the disk signature
2016-11-03 13:58:40 -07:00
Jeffrey Townsend
b390c54b6c Latest 2016-11-03 20:01:09 +00:00
Jeffrey Townsend
ac87756cda Patch CVE-2016-5195 (Dirty Cow). 2016-11-03 19:59:56 +00:00
Jeffrey Townsend
abf0e19cc6 Latest 2016-11-02 20:16:36 +00:00
Jeffrey Townsend
73969b5476 Merge pull request #122 from zhouzi88/master
support SMBus block read
2016-11-02 13:14:26 -07:00
Zi Zhou
b8669dc209 support SMBus block read 2016-11-01 15:22:20 -07:00
Jeffrey Townsend
955dccc63c Latest 2016-11-01 19:24:17 +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
de52642724 Latest 2016-10-31 22:01:55 +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
Jeffrey Townsend
3a660c0d38 Latest 2016-10-28 08:48:38 -07:00
Carl D. Roth
515a881bb5 Oops, botched merge 2016-10-26 17:33:29 -07:00
Carl D. Roth
9be51dc6a7 Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux
Conflicts:
	packages/base/all/vendor-config-onl/src/etc/onl/sysconfig/00-defaults.yml
	packages/base/all/vendor-config-onl/src/python/onl/install/BaseInstall.py
2016-10-26 13:30:23 -07:00
Carl D. Roth
12b7eb52df Move upgrade scripts to make room 2016-10-26 12:39:49 -07:00
Carl D. Roth
ac3475f215 Added upgrade-system step 2016-10-26 12:39:49 -07:00
Jeffrey Townsend
bff5e68d73 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:39:44 -07:00
Jeffrey Townsend
820cc3d973 - DHCP Timeout support in the Loader environment
When $NETAUTO=dhcp the transaction will now timeout after $NETRETRIES attempts.
  If the system has a local install or SWI then booting can continue.

  For systems which require DHCP to be functional before booting can continue
  (for example SWIs downloaded via URL rather than locally) then NETRETRIES=infinite should be set in the boot-config.

  NETRETRIES can be set to any number of attempts, or infinite. The default value is 5 attempts.

- Wait for ma1 linkup in the loader
  A short wait has been introduced to allow ma1 to linkup prior to continuing.
2016-10-26 12:39:26 -07:00
Jeffrey Townsend
1d52f43a0b Upgrade separation and cleanup. 2016-10-26 12:39:26 -07:00
Jeffrey Townsend
222ffd2504 Fix uninstallation. 2016-10-26 12:39:26 -07:00
Jeffrey Townsend
306842e7cc Latest 2016-10-26 12:39:26 -07:00
Jeffrey Townsend
b077ed028b Enable ONIE and Firmware Upgrade Package Support 2016-10-26 12:39:24 -07:00
Jeffrey Townsend
4a5732241c Add platform and firmware keys. 2016-10-26 12:38:34 -07:00
Jeffrey Townsend
b7879951f0 Commit the sysctl settings prior to first mount. 2016-10-26 12:38:34 -07:00
Jeffrey Townsend
03bb6b718d Add default ONIE upgrade package settings. 2016-10-26 12:38:32 -07:00
Jeffrey Townsend
df146fd122 Onie and Loader infrastructure improvements
- Loader and ONIE moved to importable classes for tool usage
- OnieUpgradeBase updated.
2016-10-26 12:37:24 -07:00
Carl D. Roth
6f9d993696 the --extract option is unimplemented 2016-10-26 12:37:24 -07:00
Carl D. Roth
06ad896fd4 Added system upgrade key 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