{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/rkt/issues/800","labels_url":"https://api.github.com/repos/coreos/rkt/issues/800/labels{/name}","comments_url":"https://api.github.com/repos/coreos/rkt/issues/800/comments","events_url":"https://api.github.com/repos/coreos/rkt/issues/800/events","html_url":"https://github.com/coreos/rkt/pull/800","id":69856175,"number":800,"title":"Build stage1 with some alternatives systemd","user":{"login":"alban","id":27575,"avatar_url":"https://avatars.githubusercontent.com/u/27575?v=3","gravatar_id":"","url":"https://api.github.com/users/alban","html_url":"https://github.com/alban","followers_url":"https://api.github.com/users/alban/followers","following_url":"https://api.github.com/users/alban/following{/other_user}","gists_url":"https://api.github.com/users/alban/gists{/gist_id}","starred_url":"https://api.github.com/users/alban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alban/subscriptions","organizations_url":"https://api.github.com/users/alban/orgs","repos_url":"https://api.github.com/users/alban/repos","events_url":"https://api.github.com/users/alban/events{/privacy}","received_events_url":"https://api.github.com/users/alban/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-04-21T14:09:45Z","updated_at":"2015-04-27T14:16:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/coreos/rkt/pulls/800","html_url":"https://github.com/coreos/rkt/pull/800","diff_url":"https://github.com/coreos/rkt/pull/800.diff","patch_url":"https://github.com/coreos/rkt/pull/800.patch"},"body":"### build: allow packagers to disable stage1 build\r\n\r\n```\r\n  $ RKT_STAGE1_USR_FROM=none ./build\r\n```\r\nWhen rkt is built in this way, users will need to get stage1.aci from another source and either move it to the correct directory or use the option \"-stage1-image=\".\r\n\r\n### build: ability to choose a different systemd version\r\n\r\nWhen building stage1 from sources with `RKT_STAGE1_USR_FROM=src`, it is now possible to choose which systemd tag or branch should be built:\r\n```\r\n  $ export RKT_STAGE1_USR_FROM=src\r\n  $ export RKT_STAGE1_SYSTEMD_SRC=git://anongit.freedesktop.org/systemd/systemd\r\n  $ export RKT_STAGE1_SYSTEMD_VER=v215\r\n  $ ./build\r\n```\r\nBy default, it still fetch the upstream git repository with tag v215 as before. So defining the new variables is not necessary. This should help developers to test newer systemd versions. The patches in stage1/rootfs/usr_from_src/patches/ are versioned.\r\n\r\n### Fixes to get stage1 working with systemd v219\r\n\r\n- build: systemd v219: add new patches\r\n- stage1: systemd: disable register\r\n- functional tests: add new systemd v219 dependencies\r\n\r\n### build: systemd: v215 -> v219\r\nUse the new version by default since it works now\r\n\r\n### Current issues\r\n\r\n- The functional tests pass on Debian with systemd v215 on the host, and on Semaphore (Ubuntu 14.04 LTS). But it has not been much tested otherwise.\r\n- I had to [revert a commit in systemd](http://lists.freedesktop.org/archives/systemd-devel/2015-April/030975.html) to make  [TestVolumes](https://github.com/coreos/rkt/blob/master/tests/rkt_volume_test.go) pass. I have not investigated enough to really understand the issue there."},"comment":{"url":"https://api.github.com/repos/coreos/rkt/issues/comments/96671005","html_url":"https://github.com/coreos/rkt/pull/800#issuecomment-96671005","issue_url":"https://api.github.com/repos/coreos/rkt/issues/800","id":96671005,"user":{"login":"alban","id":27575,"avatar_url":"https://avatars.githubusercontent.com/u/27575?v=3","gravatar_id":"","url":"https://api.github.com/users/alban","html_url":"https://github.com/alban","followers_url":"https://api.github.com/users/alban/followers","following_url":"https://api.github.com/users/alban/following{/other_user}","gists_url":"https://api.github.com/users/alban/gists{/gist_id}","starred_url":"https://api.github.com/users/alban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alban/subscriptions","organizations_url":"https://api.github.com/users/alban/orgs","repos_url":"https://api.github.com/users/alban/repos","events_url":"https://api.github.com/users/alban/events{/privacy}","received_events_url":"https://api.github.com/users/alban/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T14:16:57Z","updated_at":"2015-04-27T14:16:57Z","body":"@jonboulle : I updated the branch to be able to run tests in parallel. See `tests/README.md` for the configuration. The results are visible [in my semaphore account](https://semaphoreci.com/alban/rkt/branches/alban-systemd_alternatives).\r\n\r\nI previously had issues with \"disk full\" errors but adding `git clean -ffdx` (double `-f`) in the configuration seems to have fixed the issue. Semaphore cleans the source tree with `git clean -fdx` (single `-f`) between the builds, so it was not enough to get rid of the git-clone done for systemd and for the tests.\r\n\r\nThe Semaphore `Thread 1` and `Thread 2` are actually VMs so if we add some tests with `rmmod overlay` or `modprobe overlay`, the 2 (misnamed?) \"threads\" should not affect each other.\r\n"}}