I’m installing CoreOS on bare metal. It installs from the live-iso and boots the new system happily. However, most of my ignition file gets ignored. What’s really confusing is that some of the file gets read – it creates my user account and adds my SSH keys. But I also provide a password-hash for that user and it does not get copied. I also define some disks, filesystems, files, directories, and systemd units, and none of them appear.
As far as I can tell, there’s no error, either. I look at the journald lines for ignition and it says that it created the user, set the ssh keys, and now it’s done.
I’m really puzzled, and I’m not sure what else I can investigate. I can see that /boot/ignition/config.ign
matches what I expected (has all my configuration).
Can anyone suggest what I could do to figure out why most of the ignition file seems to be silently ignored?
My ignition file (with a few values masked):
/boot/ignition/config.ign
{"ignition":{"version":"3.1.0"},"passwd":{"users":[{"groups":["sudo","docker"],"name":"waisbrot","passwordHash":"$1$k3TL2wq/$a...","sshAuthorizedKeys":["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDyQC...","ssh-rsa AAAAB3NzaC1yc2EAAAADAQ...","ssh-rsa AAAAB3NzaC1yc2EAAAADAQ...","ssh-rsa AAAAB3NzaC1yc2EAAAADAQ..."]}]},"storage":{"directories":[{"group":{"id":0},"overwrite":false,"path":"/k8s","user":{"id":0},"mode":777},{"group":{"id":0},"overwrite":false,"path":"/install","user":{"id":0},"mode":777}],"disks":[{"device":"/dev/disk/by-id/ata-ST750LX003...","partitions":[{"label":"var","number":1,"shouldExist":true,"sizeMiB":358400,"startMiB":0,"wipePartitionEntry":true},{"label":"local-config","number":2,"shouldExist":true,"sizeMiB":0,"startMiB":0,"wipePartitionEntry":true}],"wipeTable":true}],"files":[{"group":{"id":0},"overwrite":false,"path":"/etc/sudoers.d/00-waisbrot.conf","user":{"id":0},"contents":{"source":"data:,waisbrot%20%20%20%20ALL%3D(ALL%3AALL)%20NOPASSWD%3A%20ALL%0A"},"mode":600},{"group":{"id":0},"overwrite":false,"path":"/install/hello","user":{"id":0},"contents":{"source":"data:,hello%20world%0A"},"mode":666},{"group":{"id":0},"overwrite":false,"path":"/install/cni-plugins","user":{"id":0},"contents":{"source":"https://github.com/containernetworking/plugins/releases/download/v0.8.2/cni-plugins-linux-amd64-v0.8.2.tgz"},"mode":666}],"filesystems":[{"device":"/dev/disk/by-partlabel/var","format":"ext4","label":"var","path":"/var"},{"device":"/dev/disk/by-partlabel/local-config","format":"ext4","label":"k8sConfig","path":"/k8s"}]},"systemd":{"units":[{"contents":"[Unit]\nBefore=local-fs.target\n[Mount]\nWhere=/var\nWhat=/dev/disk/by-partlabel/var\n[Install]\nWantedBy=local-fs.target\n","enabled":true,"name":"var.mount"},{"contents":"[Unit]\nBefore=local-fs.target\n[Mount]\nWhere=/k8s\nWhat=/dev/disk/by-partlabel/local-config\n[Install]\nWantedBy=local-fs.target\n","enabled":true,"name":"k8s.mount"}]}}