Commit Graph

991 Commits

Author SHA1 Message Date
Carl D. Roth
8bee5e7796 Refactor the unmount part of the initrd context shutdown 2016-11-30 18:23:34 -08:00
Carl D. Roth
15cbc92208 Handle failed installs 2016-11-30 18:23:17 -08:00
Carl D. Roth
1d8d72ce7f Import plugins from the loader runtime 2016-11-29 14:21:51 -08:00
Jeffrey Townsend
e21d14549b - Mount the ONL-BOOT context before accessing the default boot-config. 2016-11-29 17:40:05 +00:00
Jeffrey Townsend
f10add085e Plugins are optional. 2016-11-29 17:39:36 +00:00
Jeffrey Townsend
f64d0ff258 Allow subclasses to implement mode-methods. 2016-11-29 17:39:13 +00:00
Jeffrey Townsend
69b9ae8efb Merge branch 'roth_install_hook' of github.com:carlroth/OpenNetworkLinux 2016-11-28 22:50:10 +00:00
Carl D. Roth
ee551d5968 Updated plugin api docs 2016-11-28 13:34:08 -08:00
Carl D. Roth
6448819434 Updated plugin api docs 2016-11-28 13:31:34 -08: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
Jeffrey Townsend
c5fe127e67 Merge branch 'roth_install_hook' of github.com:carlroth/OpenNetworkLinux 2016-11-28 10:09:18 -08:00
Jeffrey Townsend
05f4490b67 - Set NETREQUIRED as a class variable for easier overrides.
- Allow NETAUTO=up
2016-11-28 08:34:59 -08:00
Jeffrey Townsend
a752807be4 Common Loader boot-config management and manipulation. 2016-11-27 16:17:55 +00:00
Jeffrey Townsend
c825d51bc8 Common architecture build makefiles. 2016-11-22 22:21:41 +00:00
Jeffrey Townsend
711b822dff Latest 2016-11-22 07:29:04 -08:00
Jeffrey Townsend
5c34495096 [SWL-3475] Fix Firmware upgrade after initial ONIE upgrade.
The ONIE firware upgrade staging area is not initialized properly if we don't first boot into ONIE after
the initial upgrade. This causes our workflow of ONIE then CPLD upgrade to fail the first time.

The onie-fwpkg script does not report an error about the staging area which is why our code
is not detecting the failure to install the firmware package.
2016-11-21 21:21:41 +00:00
Jeffrey Townsend
956a28678d Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux 2016-11-18 17:27:41 +00:00
Jeffrey Townsend
b39ac64355 Utility for resetting the boot swi. 2016-11-18 17:27:22 +00:00
Jeffrey Townsend
15724dbbd2 Merge pull request #133 from zhouzi88/master
support onlp_sfpi_dev_read[write] api in as5712, as5812-54x
2016-11-17 16:59:40 -08:00
Zi Zhou
b2fa0f4199 support onlp_sfpi_dev_read[write] api in as5712, as5812-54x 2016-11-17 14:32:02 -08:00
Carl D. Roth
df84b39c27 Added docs 2016-11-17 13:16:16 -08:00
Jeffrey Townsend
9a34feb98e Latest 2016-11-17 20:44:27 +00:00
Carl D. Roth
aea86e8726 Added sample hook scripts to u-boot installer 2016-11-17 12:20:51 -08:00
Jeffrey Townsend
31055e67ce - Support ONIE firmware upgrade packages.
- Use the new onl.grub interface
2016-11-17 19:31:56 +00:00
Jeffrey Townsend
ce2d20f93b This is really what onl-mounts should be called. 2016-11-17 19:31:31 +00:00
Jeffrey Townsend
bca8be69c8 Convenience tool to set the onie-boot-mode and reboot once into onie. 2016-11-17 19:31:01 +00:00
Jeffrey Townsend
877fff69e0 Use the new onl-onie-boot-mode tool. 2016-11-17 19:30:39 +00:00
Jeffrey Townsend
d6d89cc3cb - onie boot tool access
- boot selection
2016-11-17 19:29:31 +00:00
Jeffrey Townsend
8937a27afb Add OnlOnieBootContext
This context can be used to execute commands from /mnt/onie-boot.
2016-11-17 19:28:30 +00:00
Jeffrey Townsend
f6dc473cf8 - Always set the default boot selection to $saved_entry
- Always reset $saved_entry to the NOS boot selection.
  The purpose of this change is to make transitions to and from ONIE
  for update purposes more robust. Every boot selection to ONIE is
  automatically a boot-once choice.
2016-11-17 19:25:25 +00:00
Carl D. Roth
486f375b4a mkinstaller.py now handles pre/post hooks 2016-11-16 18:57:34 -08:00
Carl D. Roth
f1d0f414ef Added pre/post plugins
- move zip handler earlier in the process
- use onl.install.Plugin.Plugin api and introspection
2016-11-16 18:57:18 -08:00
Carl D. Roth
2dfb813f82 Add sample scripts to the ONL installer 2016-11-16 18:56:09 -08:00
Carl D. Roth
f088db5372 Support pre/post install scripts
- refactor unzip handling a bit
- better support for file excludes using a tempdir
- run pre/post hooks using well-known script names
2016-11-16 18:55:53 -08:00
Carl D. Roth
5aa3212f64 Sample pre/post scripts and plugins, needs docs 2016-11-16 18:54:54 -08:00
Carl D. Roth
3149627459 Initial plugin api, needs docs 2016-11-16 18:54:34 -08:00
Jeffrey Townsend
2a37f60622 Latest 2016-11-16 22:54:27 +00:00
Jeffrey Townsend
66334bf1c1 Latest 2016-11-16 20:58:00 +00:00
Jeffrey Townsend
4ffcc87549 Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux 2016-11-16 20:23:27 +00:00
Jeffrey Townsend
cc022b27a1 Latest 2016-11-16 20:23:19 +00:00
Jeffrey Townsend
218811da1b Use the CJSON module to generate JSON formatting instead of hand coding it. 2016-11-16 20:22:21 +00:00
Jeffrey Townsend
e51148bf55 Use the new module database infrastructure. 2016-11-16 20:21:18 +00:00
Jeffrey Townsend
ab24f9914e Use the new module database infrastructure. 2016-11-16 20:21:04 +00:00
Jeffrey Townsend
a022bf466a Merge pull request #130 from zhouzi88/master
add onlp_sfpi_dev_read[write] api support
2016-11-16 11:25:12 -08:00
Zi Zhou
28facefe44 minor fix 2016-11-16 10:48:59 -08:00
Zi Zhou
a2b8c1caeb add onlp_sfpi_dev_read[write] api support 2016-11-15 16:04:57 -08:00
Jeffrey Townsend
82eafedd6b CJSON Fix. 2016-11-13 07:37:26 -08:00
Jeffrey Townsend
69c3ca634d Latest 2016-11-11 07:57:38 -08:00
Jeffrey Townsend
7fcdf5c8e2 Merge pull request #129 from carlroth/master
Added support for legacy u-boot images, see SWL-3462
2016-11-11 07:51:00 -08:00