From 6881726cb771aa966afa92498c8616ec5d0b5862 Mon Sep 17 00:00:00 2001 From: Jay Faulkner Date: Fri, 6 Feb 2015 10:28:26 -0800 Subject: [PATCH] Prevent CoreOS from using configdrive in ramdisk Without this change, coreos-cloudinit will read and try to perform init actions while we're provisioning. Under no circumstances (especially in things like cleaning), do we want any contents of the disk to modify ramdisk behavior. Masking these units removes them at boot before it has an opportunity to run. Change-Id: Icd93954f0e4a76a7285d2914b9626b03fd457b9d --- imagebuild/coreos/oem/cloud-config.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/imagebuild/coreos/oem/cloud-config.yml b/imagebuild/coreos/oem/cloud-config.yml index 2ff4006c5..01c61f122 100755 --- a/imagebuild/coreos/oem/cloud-config.yml +++ b/imagebuild/coreos/oem/cloud-config.yml @@ -2,6 +2,21 @@ coreos: units: + - name: user-configdrive.service + mask: true + + - name: user-configvirtfs.service + mask: true + + - name: user-configdrive.path + mask: true + + - name: media-configdrive.mount + mask: true + + - name: media-configvirtfs.mount + mask: true + - name: ironic-python-agent-embed-ssh-keys.service command: start content: |