Commit Graph

277 Commits

Author SHA1 Message Date
Jeffrey Townsend
afbfb5d1f2 Purge any existing firmware packages before requesting upgrade.
Allows recovery if upgrades were previously scheduled but not executed.
2017-01-18 00:03:11 +00:00
Jeffrey Townsend
e0d494faa0 Add network attribute get() methods. 2017-01-13 16:54:01 +00:00
Jeffrey Townsend
4fcc589cbf Update insmod_platform() for new module paths. 2017-01-12 21:22:59 +00:00
Jeffrey Townsend
339b55d248 Remove debug message. 2017-01-09 22:35:43 +00:00
Jeffrey Townsend
e6df746ff0 - New module search paths
- Module parameter support.
2017-01-08 23:02:33 +00:00
Jeffrey Townsend
ada99bfaf2 Convenience method for inserting all platform-specific modules. 2017-01-03 19:47:54 +00:00
Jeffrey Townsend
3678d85b9b The Loader and Kernel upgrade stage must now be performed prior to platform baseconfig.
This avoids the possibility of inserting incompatible kernel modules built for the new kernel
into the old one.
2017-01-01 18:37:29 +00:00
Jeffrey Townsend
2afe7d78c5 System, Loader and Kernel upgrades are now required. 2017-01-01 18:36:59 +00:00
Jeffrey Townsend
31b6766dc9 Improve module search. 2017-01-01 18:09:44 +00:00
Jeffrey Townsend
bb37da9ad9 New method to support platform-specific kernel modules. 2016-12-31 20:57:59 +00:00
Jeffrey Townsend
b5b429af3b Convenience tool for manual kernel replacement. 2016-12-31 19:55:39 +00:00
Jeffrey Townsend
7428d3505c - Fix timeout processing. 2016-12-31 19:55:23 +00:00
Jeffrey Townsend
604af0c9b3 The 3.16+deb8 package has been replaced by the 3.16 LTS package. 2016-12-22 18:13:22 +00:00
Jeffrey Townsend
44a1a63936 Add 3.16 LTS as a kernel option. 2016-12-21 22:44:45 +00:00
Jeffrey Townsend
fa2bf42480 Add method to rewrite eeprom.json 2016-12-15 13:31:11 -08:00
Jeffrey Townsend
d4d574e351 Add subcommand "rw"
This subcommand can be used to execute a shell command under read-write context.

For example:
  #> onlfs rw images rm /mnt/onl/images/*.swi
2016-12-15 16:09:50 +00:00
Jeffrey Townsend
2018320174 Except only if required. 2016-12-13 21:32:08 +00:00
Jeffrey Townsend
aada217a4c Use /bin/sh instead of /bin/bash (for execution under the loader). 2016-12-13 21:31:41 +00:00
Sung-Kuang (Max) Chung
f7cc57aced Merge branch 'master' of https://github.com/opencomputeproject/OpenNetworkLinux 2016-12-07 22:07:57 -08:00
Sung-Kuang (Max) Chung
1a90e3c514 Added community support email opennetworklinux@googlegroups.com,
as support@bigswitch.com "is a support line for commercial Big Switch
products for customer with paid licenses."
2016-12-07 21:56:03 -08:00
Jeffrey Townsend
a0e4cae7c4 Support manual uninstall mode as a last resort. 2016-12-08 03:46:36 +00:00
Jeffrey Townsend
f6cc003469 Provide common access to machine.conf and the output of onie-syseeprom.
Some platforms do not provide direct device access to the ONIE system eeprom.
The only way these systems can export their system data under ONL is by scraping it
from the output of onie-syseeprom and/or reading fields from machine.conf.

These new platform methods can be called in a platform's baseconfig() to
populate the cached version of these values for later use, or used
to access that cached data at a later time.
2016-12-07 20:14:03 +00:00
Jeffrey Townsend
2241b65dfa Set upgrade ONIE and Firmware upgrade policy from sysconfig. 2016-12-07 17:55:27 +00:00
Jeffrey Townsend
add948d33f Add force_overrite paramater and return whether the file was re-written or not.
This functionality is useful for upgrade scenarios.
2016-12-01 18:20:14 +00:00
Jeffrey Townsend
f8df569c2d Tolerate missing dmidecode module amd missing platform info object. 2016-12-01 17:14:04 +00:00
Jeffrey Townsend
cbec27d710 Handle empty images. 2016-12-01 17:13:32 +00:00
Jeffrey Townsend
96cf925350 Merge branch 'master' of github.com:carlroth/OpenNetworkLinux 2016-11-30 19:34:27 -08:00
Carl D. Roth
0f2b922be8 attach, then shutdown, the internal components 2016-11-30 18:24:32 -08:00
Carl D. Roth
271434a71c Oops, unmount the contents of this (temporary) onie boot context 2016-11-30 18:23:58 -08:00
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
Jeffrey Townsend
b5a3ff7e1f Add DMI information for x86_64 platforms. 2016-11-30 22:56:18 +00:00
Jeffrey Townsend
176d9f6449 The imported module name must be unique. Otherwise the existing import will just be reused. 2016-11-30 22:12:27 +00:00
Jeffrey Townsend
56b2ca49f9 Don't take an exception if the manifest doesn't exist.
- This is useful particularly for imports from the loader.
2016-11-30 22:10:29 +00: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
f64d0ff258 Allow subclasses to implement mode-methods. 2016-11-29 17:39:13 +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
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
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
b39ac64355 Utility for resetting the boot swi. 2016-11-18 17:27:22 +00: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