Commit Graph

72 Commits

Author SHA1 Message Date
Carl D. Roth
e17ea293e2 Refactor boot, boot1, implement directory-based installs 2016-05-26 14:06:00 -07:00
Carl D. Roth
c2e6da45a4 Factored out swi unpack/mount/overlay stuffs 2016-05-26 14:03:50 -07:00
Carl D. Roth
8041b7bf7c Deprecate initnetdev
- moved to onl-vendor-config-onl
- onl-loader-initscripts is now deprecated
2016-05-25 11:48:34 -07:00
Carl D. Roth
dbb2989314 Refactor to use swiget and swimount
- working (almost) support for persistent installs
2016-05-25 11:13:46 -07:00
Carl D. Roth
168495e04b Move 'latest' SWI calculation into swiget 2016-05-25 11:13:46 -07:00
Carl D. Roth
6a17f71234 Factor out the SWI retrieval and directory mounting 2016-05-25 11:13:45 -07:00
Carl D. Roth
f9b67ae99c Added 'installed' bootmode with inspiration from @sonoble
- refactor to leverage /bootmodes/swi
- splice in some of the /etc muckery from /bin/boot
- added consistency checks
- put some temp files on the flash
2016-05-25 11:13:45 -07:00
Carl D. Roth
d72cfb61a0 Added HostInfo parser to help with IPv6 addresses and authentiation creds 2016-05-25 11:13:45 -07:00
Carl D. Roth
aacb668932 Don't remount the filesystem if it is the root filesystem 2016-05-25 11:13:45 -07:00
Carl D. Roth
912602b697 Set hostDir to None to skip cleanup 2016-05-25 11:13:45 -07:00
Jeffrey Townsend
c568351d91 Remove comments. 2016-05-25 11:13:45 -07:00
Carl D. Roth
87ae54e79c loader init files depend on onl-vendor-config-onl 2016-05-25 11:13:45 -07:00
Carl D. Roth
76eb1099d9 Updatef for review feedback 2016-05-18 13:30:42 -07:00
Carl D. Roth
27c18755db Deprecated /etc/onl/mounts, /etc/onl/net
- also make the platform boot hooks optional
2016-05-18 12:52:17 -07:00
Carl D. Roth
ea201e8729 Deprecated in favor of onl-vendor-config-onl versions 2016-05-18 12:51:46 -07:00
Carl D. Roth
c5febda73d Include sample configs for fw_env.config and interface name mappings
- default mapping (eth0 --> ma1) should just work
2016-05-17 19:23:31 -07:00
Carl D. Roth
4946198b5e Include initnetdev and initubootenv in loader init 2016-05-17 19:21:47 -07:00
Carl D. Roth
6f5361ca9d Canonicalize ma1 based on OnlPlatform data 2016-05-17 19:21:25 -07:00
Carl D. Roth
b928972521 Initialize /etc/fw_env.config from OnlPlatform data 2016-05-17 19:20:58 -07:00
Jeffrey Townsend
76ed0a772c Merge branch 'master' of github.com:opencomputeproject/OpenNetworkLinux
Conflicts:
	builds/any/rootfs/jessie/common/common-packages.yml
	builds/any/rootfs/wheezy/common/common-packages.yml
2016-05-16 14:18:18 -07:00
Carl D. Roth
e11a5bd0cd Propagate the '--force' flag properly 2016-05-13 11:53:57 -07:00
Carl D. Roth
082789b012 Back out onlyaml rewrite to another branch 2016-05-13 10:20:46 -07:00
Carl D. Roth
19a8e75036 Optionally mount tmpfs within the loader
- XXX DANGER @jnealtowns be advised
2016-05-11 13:57:22 -07:00
Carl D. Roth
bb1c556cc4 Better error handling for failed connections
Export debug and verbosity settings
2016-05-11 13:47:32 -07:00
Carl D. Roth
5e35ea9192 Installer updates
- initial support for self-updating within ONL via a URL
- lazy unpack support
2016-05-10 18:28:16 -07:00
Carl D. Roth
7166dce5c6 Updated chroot utils
- Set up /run properly
- copy in /etc/onl files for self-update
2016-05-10 18:25:20 -07:00
Carl D. Roth
1f4a489421 Better error reporting for missing tools 2016-05-10 12:03:10 -07:00
Carl D. Roth
c640ddb751 Handle install from within ONL 2016-05-10 12:02:56 -07:00
Carl D. Roth
51550a194e Make sure onl directories are unmounted 2016-05-10 12:02:45 -07:00
Carl D. Roth
0cf41fd6d9 Re-write shell functions to use OnlPlatform data 2016-05-06 11:27:26 -07:00
Carl D. Roth
9c383236bb Update/refactor, u-boot install is now a thing 2016-05-06 11:26:54 -07:00
Carl D. Roth
089f5be4d9 Added mkfs commands 2016-05-06 11:13:49 -07:00
Carl D. Roth
07e68fe666 Working powerpc template, also include arm 2016-05-06 11:09:57 -07:00
Carl D. Roth
161b8e48d8 Revert dumb python path hack 2016-05-06 11:07:10 -07:00
Carl D. Roth
9127a94cf5 Add python compatibility path for debian-derived installs 2016-05-06 11:05:37 -07:00
Carl D. Roth
87fbe5d56f Sample templates for platform configs 2016-05-02 12:56:59 -07:00
Carl D. Roth
2a1bb49f18 Helper shell code for new installer 2016-05-02 12:55:53 -07:00
Carl D. Roth
a780c0b5eb Userland tools for new installer 2016-05-02 12:55:05 -07:00
Carl D. Roth
15c7af3999 Platform config updates
- get the platform type from /etc/machine.conf if run from ONIE
2016-05-02 12:53:33 -07:00
Carl D. Roth
972f2cdf6f Update the YAML loader for platform configs 2016-05-02 12:53:01 -07:00
Carl D. Roth
90a45eff50 Yaml helper module
- util for loading the mongrel YAML platform definitons
2016-05-02 12:52:13 -07:00
Carl D. Roth
dc0178c984 Initial checkin of pythonic installer library
- u-boot is currently broken
2016-05-02 12:42:37 -07:00
Carl D. Roth
58cf4e5036 Updated install template for vendor-config-onl
- Include stub shell file for new installer
- put Python files in a proper site install location
2016-05-02 12:41:21 -07:00
Jeffrey Townsend
2640aec6d8 ONL-CONFIG datastore and PKI infrastructure. 2016-04-21 01:00:04 +00:00
Jeffrey Townsend
16284d277f Run pki --init 2016-04-21 00:58:55 +00:00
Jeffrey Townsend
889d8d7282 The ONL-CONFIG partition should not be mounted. 2016-04-21 00:58:05 +00:00
Jeffrey Townsend
6c471976bc Move the onl-mibs package to 'all'. 2016-04-15 19:45:56 +00:00
Jeffrey Townsend
d837ea6d6e Mount quiet with status. 2016-04-13 18:50:08 -07:00
Jeffrey Townsend
c9ba39388d Updates for new partition layout and mount management. 2016-04-13 18:37:24 -07:00
Jeffrey Townsend
a920b9ae63 Loader mount policies. 2016-04-13 18:36:54 -07:00