From e92e41b93760a456f7b433c22571aeb5e5302b55 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 --- coreos/oem/cloud-config.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/coreos/oem/cloud-config.yml b/coreos/oem/cloud-config.yml index 2ff4006..01c61f1 100755 --- a/coreos/oem/cloud-config.yml +++ b/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: |