{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/bugs/issues/1426","repository_url":"https://api.github.com/repos/coreos/bugs","labels_url":"https://api.github.com/repos/coreos/bugs/issues/1426/labels{/name}","comments_url":"https://api.github.com/repos/coreos/bugs/issues/1426/comments","events_url":"https://api.github.com/repos/coreos/bugs/issues/1426/events","html_url":"https://github.com/coreos/bugs/issues/1426","id":162080674,"number":1426,"title":"grub.cfg in CoreOS stable (1010.5.0) does not properly trigger first_boot from UUID","user":{"login":"spkane","id":129629,"avatar_url":"https://avatars.githubusercontent.com/u/129629?v=3","gravatar_id":"","url":"https://api.github.com/users/spkane","html_url":"https://github.com/spkane","followers_url":"https://api.github.com/users/spkane/followers","following_url":"https://api.github.com/users/spkane/following{/other_user}","gists_url":"https://api.github.com/users/spkane/gists{/gist_id}","starred_url":"https://api.github.com/users/spkane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spkane/subscriptions","organizations_url":"https://api.github.com/users/spkane/orgs","repos_url":"https://api.github.com/users/spkane/repos","events_url":"https://api.github.com/users/spkane/events{/privacy}","received_events_url":"https://api.github.com/users/spkane/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/bugs/labels/area/usability","name":"area/usability","color":"bfe5bf"},{"url":"https://api.github.com/repos/coreos/bugs/labels/component/ignition","name":"component/ignition","color":"0052cc"},{"url":"https://api.github.com/repos/coreos/bugs/labels/kind/question","name":"kind/question","color":"c7def8"},{"url":"https://api.github.com/repos/coreos/bugs/labels/team/os","name":"team/os","color":"ffffff"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-24T05:50:49Z","updated_at":"2016-06-27T15:15:50Z","closed_at":null,"body":"# Issue Report #\r\n\r\n## Bug ##\r\n\r\nThe grub.cfg file in grub.cfg.tar has an error which prevents first_boot from being set when a partition has the magic UUID\r\n\r\n### CoreOS Version ###\r\n\r\nCoreOS stable (1010.5.0)\r\n\r\n### Environment ###\r\n\r\nDell r420\r\n\r\n### Expected Behavior ###\r\n\r\nIf a filesystem has the UUID 00000000-0000-0000-0000-000000000001, then first_boot should be set and things like ignition should run in the initrd.\r\n\r\n### Actual Behavior ###\r\n\r\nfirst_boot is not set when the UUID exists, and the system does not run ignition.\r\n\r\n### Reproduction Steps ###\r\n\r\n  1. Install coreos onto the boot drive of a Dell r420, with an ignition config\r\n  2. Set the ROOT parition's UUID to 00000000-0000-0000-0000-000000000001\r\n  3. Reboot, and notice that ignition is never run.\r\n\r\n### Other Information ###\r\n\r\nThe default grub.cfg looks like this:\r\n\r\n```\r\nsearch --no-floppy --set first_boot --disk-uuid 00000000-0000-0000-0000-000000000001\r\nif [ -n \"$first_boot\" ]; then\r\n  # Note we explicitly request the disk-guid randomization, first_boot only triggers ignition.\r\n  set first_boot=\"coreos.first_boot=1 coreos.randomize_disk_guid=00000000-0000-0000-0000-000000000001\"\r\nfi\r\n```\r\n\r\nwhen, in fact, it should read like this:\r\n\r\n```\r\nsearch --no-floppy --set first_boot --fs-uuid 00000000-0000-0000-0000-000000000001\r\nif [ -n \"$first_boot\" ]; then\r\n  # Note we explicitly request the disk-guid randomization, first_boot only triggers ignition.\r\n  set first_boot=\"coreos.first_boot=1 coreos.randomize_disk_guid=00000000-0000-0000-0000-000000000001\"\r\nfi\r\n```"},"comment":{"url":"https://api.github.com/repos/coreos/bugs/issues/comments/228776821","html_url":"https://github.com/coreos/bugs/issues/1426#issuecomment-228776821","issue_url":"https://api.github.com/repos/coreos/bugs/issues/1426","id":228776821,"user":{"login":"spkane","id":129629,"avatar_url":"https://avatars.githubusercontent.com/u/129629?v=3","gravatar_id":"","url":"https://api.github.com/users/spkane","html_url":"https://github.com/spkane","followers_url":"https://api.github.com/users/spkane/followers","following_url":"https://api.github.com/users/spkane/following{/other_user}","gists_url":"https://api.github.com/users/spkane/gists{/gist_id}","starred_url":"https://api.github.com/users/spkane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spkane/subscriptions","organizations_url":"https://api.github.com/users/spkane/orgs","repos_url":"https://api.github.com/users/spkane/repos","events_url":"https://api.github.com/users/spkane/events{/privacy}","received_events_url":"https://api.github.com/users/spkane/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T15:15:50Z","updated_at":"2016-06-27T15:15:50Z","body":"Ok. That makes sense. I had to try to get this working myself, because the coreos-install script does not set this GUID anywhere, even when you inject an ignition script, so ignition is not triggered on reboot. We can close this in favor of #1425, but there should be a way to set this GUID on the install device, via that script."}}
{"actor":{"display_login":"spkane"}}