1
0
mirror of https://github.com/rancher/os.git synced 2025-07-12 14:18:01 +00:00
Commit Graph

156 Commits

Author SHA1 Message Date
Sven Dowideit
391082fa50 refactor a little and keep the datasource errors for later
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-03-04 08:05:28 +00:00
Sven Dowideit
a4e77692c4 My first pass at fixing the b2d autoformat
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-01-22 06:43:04 +00:00
Josh Curl
68f3b9cfda
Run bootstrap services even if autoformat isn't set 2017-01-04 16:18:33 -08:00
Josh Curl
40100ffa7c
Load modules after running PrepareFs 2016-12-01 11:27:33 -08:00
Josh Curl
d53452a7eb
Show output for modprobe calls 2016-12-01 11:16:53 -08:00
Sven Dowideit
4df962d4b6 make ros log to dmesg
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-11-30 10:51:30 +10:00
Josh Curl
a7c34b9855
Fix golint errors 2016-11-28 00:06:00 -08:00
Darren Shepherd
4479ff5cdb Merge pull request #1364 from joshwget/early-cloud-init
Early cloud-init
2016-11-16 17:05:03 -07:00
Josh Curl
13b34a6668
Early cloud-init 2016-11-09 11:08:30 -08:00
Josh Curl
bb4ad618e1
Implement bootcmd 2016-11-03 15:06:20 -07:00
Josh Curl
5ecbf19aa8 Merge pull request #1332 from joshwget/move-in-netconf-and-dfs
Move in code from netconf and docker-from-scratch
2016-10-19 17:56:30 -07:00
Josh Curl
691f7cb42c
Move in code from netconf and docker-from-scratch 2016-10-19 16:21:35 -07:00
Josh Curl
a7d405991c
Rewrite a few scripts in Go and remove unneeded services 2016-10-17 14:47:44 -07:00
Darren Shepherd
e5293ff926 Merge pull request #1239 from joshwget/docker-arguments-map
Use a map to configure Docker arguments
2016-09-26 21:36:36 -07:00
Darren Shepherd
e58a6a5433 Merge pull request #1252 from joshwget/ignore-mkdir-error
Ignore error creating /var/lib/system-docker if it already exists
2016-09-26 21:22:23 -07:00
Josh Curl
32b2ccda1e
Ignore error creating /var/lib/system-docker if it already exists 2016-09-25 20:37:55 -07:00
Josh Curl
065fe4a16e
Use a map to configure Docker arguments 2016-09-25 17:55:19 -07:00
Josh Curl
133c2610d1
Remove rancher.state.formatzero kernel parameter 2016-09-25 11:39:46 -07:00
Josh Curl
21cf86665b
Use runc exec to start User Docker 2016-09-09 09:06:23 -07:00
Josh Curl
6b4222888c
Refactor state 2016-07-27 23:25:08 -07:00
Josh Curl
73ea4c9bcd
Remove rkt support 2016-06-17 16:49:12 -07:00
Darren Shepherd
ecc8482666 Make /run shared, also don't rshare in initrd 2016-06-17 08:04:35 -07:00
Darren Shepherd
924e4b8aae /media and /mnt mounted as shared for console 2016-06-15 16:45:05 -07:00
Josh Curl
e4019385aa
Merge remote-tracking branch 'origin/v0.5' into HEAD 2016-06-13 22:00:34 -07:00
Josh Curl
3153c28e86
Support switching to the default console 2016-06-12 12:02:07 -07:00
Josh Curl
4cb1d26cf9
Fix 'rancher.log' 2016-06-06 15:31:34 -07:00
Darren Shepherd
8ab32c820f Docker 1.11.1 2016-06-03 11:38:25 -07:00
Darren Shepherd
71c8f40ffe Merge pull request #972 from joshwget/boot-with-invalid-config
Fix boot issues due to invalid configs
2016-06-02 19:27:23 -06:00
Josh Curl
08f40ad3e7
Fix boot issues due to invalid configs 2016-06-01 18:41:55 -07:00
Josh Curl
e51c5409aa
Move default hostname and network under common key 2016-05-31 22:27:04 -07:00
Josh Curl
95d8ebe146
Simplify configuration 2016-05-31 14:34:04 -07:00
Josh Curl
42e48476e7 Sync with libcompose 2016-05-23 17:21:28 -07:00
Josh Curl
2968bed32e Revert "/media and /mnt mounted as shared for console" 2016-05-07 15:08:39 -07:00
Darren Shepherd
a9ca80d47d Merge pull request #917 from joshwget/proxy-settings
HTTP proxy settings can be set in cloud config
2016-05-07 12:56:52 -07:00
Josh Curl
ae543ab167 HTTP proxy settings can be set in cloud config 2016-05-06 16:25:07 -07:00
Josh Curl
7241390042 /media and /mnt mounted as shared for console 2016-05-04 16:18:24 -07:00
Josh Curl
8862878337 Remove DHCP override flag 2016-04-15 10:38:31 -07:00
Josh Curl
97774f78a9 Remove --boot flag in ros config export 2016-04-11 22:07:59 -07:00
Josh Curl
f28d463504 Enable SELinux 2016-02-19 16:11:32 -08:00
Ivan Mikushin
2f27271a2c Multi-arch build
Currently, for amd64 (the default) and arm.
Run `dapper make ARCH=arm rootfs` to build rootfs.tar.gz for arm.
2016-02-08 16:49:49 -08:00
Ivan Mikushin
0e949dfba4 Merge pull request #748 from datawolf/master
do not print success info when loading images error
2016-02-04 18:34:19 -08:00
Darren Shepherd
77242012e7 Change OEM log message 2016-02-04 09:06:16 -07:00
Darren Shepherd
8ac9b1137b Set signal channel to a sufficiently large buffer size 2016-02-04 09:06:15 -07:00
Wang Long
db49753d1a do not print success info when loading images error
when the client.LoadImage return an error, there should not be print
success info like the following:

    "INFO[0000] Done loading images from /usr/share/ros/images.tar"

This patch fix it by move the log.Infof() after the err check.

Signed-off-by: Wang Long <long.wanglong@huawei.com>
2016-02-03 20:24:12 +08:00
Darren Shepherd
7e4f8fe87d Merge pull request #704 from ibuildthecloud/one
Remove unneeded code
2015-12-22 17:12:19 -07:00
Darren Shepherd
ee257f944e Remove unneeded code 2015-12-22 17:11:25 -07:00
Darren Shepherd
1a95080522 Support OEM partition and oem-config.yml 2015-12-22 17:03:50 -07:00
Darren Shepherd
cd2829d220 Farewell PID one
This change no longer runs Docker as PID 1.  Instead PID 1 is a very
simple zombie reaper and Docker is moved as a child of that PID.
2015-12-22 15:38:32 -07:00
Darren Shepherd
808fbdbe1f Use a subdirectory of the state partition 2015-12-22 15:16:22 -07:00
Ivan Mikushin
44b705c525 Merge pull request #597 from imikushin/usr-dev
remove boot behaviour dependency on version string
2015-10-13 11:13:31 +05:00
Wang Long
9e15059789 Replace rancherio with rancher
Signed-off-by: Wang Long <long.wanglong@huawei.com>
2015-10-12 19:50:57 +08:00
Ivan Mikushin
c79a64e42e remove dependency on version string
using rancher.rm_usr kernel param instead
2015-10-07 14:02:17 +05:00
Darren Shepherd
2966ef8e5d Fix loading network files from ros service compose commands 2015-10-02 00:57:13 -07:00
Ivan Mikushin
338abb758f Reshuffle cloud-config
Read files cloud-config.d in alphanumeric order, then cloud-config.yml
`ros config` writes to cloud-config.yml (and cloud-config.d/private.yml - only private keys)

Add (c *CloudConfig) Save() method, use it to save the changed config

Read and apply metadata as part of LoadConfig()

Simplify ros config export logic
2015-09-30 23:59:22 +05:00
Darren Shepherd
3a3270f2c6 Fix systemd emulation 2015-09-18 22:27:53 -07:00
Ivan Mikushin
65da0341eb Fix mounting /usr filesystem in non-dev RancherOS versions 2015-09-01 12:16:38 +05:00
Darren Shepherd
0f1b7741d7 Fix setting up state partition 2015-08-28 21:17:30 -07:00
Darren Shepherd
72be1d11e6 Revert "Revert "Storage""
This reverts commit 7b2bf93271.
2015-08-27 12:24:26 -07:00
Ivan Mikushin
7b2bf93271 Revert "Storage" 2015-08-27 18:33:26 +05:00
Darren Shepherd
ab6eb58167 Run user docker with a configurable storage context 2015-08-27 02:52:12 -07:00
Ivan Mikushin
aa1af05d46 do not panic 2015-08-20 18:06:48 +05:00
Darren Shepherd
9d76b79ac3 Refactor to use libcompose 2015-08-06 00:05:25 -07:00
Darren Shepherd
19f9a1b281 Rebase on docker-from-scratch 2015-08-06 00:05:25 -07:00
Ivan Mikushin
7ad60c07bd make cloud-config the configuration mechanism for RancherOS 2015-08-05 19:48:25 +05:00
Ivan Mikushin
ca54b617a0 try mount state
run bootstrap if failed (and autoformat if we can), then try again
2015-07-22 21:14:39 +05:00
Ivan Mikushin
890052273e log bootstrap and autoformat services 2015-07-22 19:18:43 +05:00
Ivan Mikushin
a636157882 only run bootstrap (including auto-formatter) if we can not resolve state drive 2015-07-22 18:44:56 +05:00
Ivan Mikushin
d33698d17b move auto-formatter drive selection logic to os-autoformat container
and get rid of:
- machine-rancheros.iso,
- special case in build-images,
- some bootstrap.go code
2015-07-22 17:47:24 +05:00
Ivan Mikushin
ad832471a1 isolate and mark platform dependent code
now unit tests compile on OS X and (some of them) work
2015-07-17 16:43:09 +05:00
Ivan Mikushin
e8513c8e97 fix machine 2015-07-02 14:06:12 +05:00
Ivan Mikushin
dff70f8362 latest rancher-compose, default.go -> os-config.yml
also, gofmt
2015-06-29 12:00:41 +05:00
Darren Shepherd
7f4c339034 Update to newer compose 2015-05-11 01:18:42 -07:00
Darren Shepherd
6b929abdea Updates for refactored rancher-compose 2015-05-05 13:36:52 -07:00
Darren Shepherd
375fcd0787 Merge pull request #270 from ibuildthecloud/stuff
Manual merge of PR 255
2015-05-01 11:58:38 -07:00
deniseschannon
0e4f0fe292 Changes required due to labels type change in ServiceConfig 2015-04-29 20:48:57 -07:00
wlan0
81040243d7 Fix #253: Do not fail boot if module cannot be loaded 2015-04-29 03:13:59 -07:00
wlan0
bc9efaa22d make modules settable through rancherctl config 2015-04-28 18:38:15 -07:00
wlan0
1626247f48 machine support for rancherOS 2015-04-28 10:22:13 -07:00
Darren Shepherd
9116652561 Fix autoformat 2015-04-20 16:58:55 -07:00
Darren Shepherd
0b5eb352ba Services in compose format 2015-04-15 23:17:01 -07:00
Darren Shepherd
be8fa8e5b7 Services as compose format 2015-04-15 23:17:00 -07:00
Darren Shepherd
bedb10c85e Rename addon to service 2015-04-06 07:28:17 -07:00
Darren Shepherd
1de6e898a7 setup groups and socket files on startup 2015-04-04 14:21:13 -07:00
Darren Shepherd
af272e92ca Add networking to system docker 2015-04-04 12:18:44 -07:00
Darren Shepherd
96dff754c4 Rebase to disable 2015-04-04 10:10:04 -07:00
Darren Shepherd
8dad5598b5 Change boot up message 2015-04-04 05:42:48 -07:00
Darren Shepherd
c7ae14cc13 Refactor configuration to compose syntax 2015-04-04 05:42:48 -07:00
Darren Shepherd
e34c3a5e2d Create but do not start udev on system-docker
Eventually this container will be replaced with udev hotplug
2015-03-19 14:58:50 -07:00
Darren Shepherd
4e668e6e30 Don't symlink docker location, store at /var/lib/[system-]docker 2015-03-19 11:41:47 -07:00
Darren Shepherd
91dd56e595 Add bootstrap phase to handle udev and auto-format 2015-03-18 06:45:22 -07:00
Darren Shepherd
ac2459ba37 Refactor configuration 2015-03-18 06:45:21 -07:00
Darren Shepherd
dfeb26eecf Temporary fix for VMware mounting state partition 2015-02-24 10:45:17 -07:00
Darren Shepherd
dc59b3c724 Cleanup logging 2015-02-21 00:34:23 -07:00
Darren Shepherd
045130a830 General cleanup 2015-02-19 11:27:23 -07:00
Darren Shepherd
529ce4336d Implement rancherctl config import 2015-02-17 18:42:26 -07:00
Darren Shepherd
f47ea34ac4 Refactor configuration 2015-02-17 14:31:20 -07:00
Darren Shepherd
9d8110513e Some refactoring 2015-02-17 01:18:48 -07:00
Darren Shepherd
76e5cf8d50 Merge power funcs and fix build issues 2015-02-16 22:09:26 -07:00
sidharthamani
56a4f96b24 add power functions - down, restart, halt 2015-02-16 17:17:43 -07:00
sidharthamani
70b376ce6a find fs type of device automatically 2015-02-16 16:44:59 -07:00