Merge pull request #2251 from dm0-/gce

Allow the GCE agent to create home directories
This commit is contained in:
David Michael 2016-10-20 17:38:21 -07:00 committed by GitHub
commit f336d78ce8
3 changed files with 6 additions and 12 deletions

View File

@ -13,21 +13,16 @@
"group": "0", "group": "0",
"mountPoints": [ "mountPoints": [
{
"name": "baselayout",
"path": "/usr/share/baselayout",
"readOnly": true
},
{
"name": "cacertificates",
"path": "/usr/share/ca-certificates",
"readOnly": true
},
{ {
"name": "etc", "name": "etc",
"path": "/etc", "path": "/etc",
"readOnly": false "readOnly": false
}, },
{
"name": "home",
"path": "/home",
"readOnly": false
},
{ {
"name": "runsystemd", "name": "runsystemd",
"path": "/run/systemd", "path": "/run/systemd",

View File

@ -17,9 +17,8 @@ ExecStart=/usr/bin/rkt run \
--insecure-options=image \ --insecure-options=image \
--net=host \ --net=host \
--stage1-path=/usr/lib/rkt/stage1-images/stage1-fly.aci \ --stage1-path=/usr/lib/rkt/stage1-images/stage1-fly.aci \
--volume=baselayout,kind=host,source=/usr/share/baselayout,readOnly=true \
--volume=cacertificates,kind=host,source=/usr/share/ca-certificates,readOnly=true \
--volume=etc,kind=host,source=/etc,readOnly=false \ --volume=etc,kind=host,source=/etc,readOnly=false \
--volume=home,kind=host,source=/home,readOnly=false \
--volume=runsystemd,kind=host,source=/run/systemd,readOnly=false \ --volume=runsystemd,kind=host,source=/run/systemd,readOnly=false \
/usr/share/oem/coreos-oem-gce.aci /usr/share/oem/coreos-oem-gce.aci