From 4f969c020289112ed79fc4d62f2d3397611a19e8 Mon Sep 17 00:00:00 2001 From: Mischa Taylor <57647141+taylorific@users.noreply.github.com> Date: Sun, 11 Feb 2024 10:03:22 -0500 Subject: [PATCH] See if it is possible to set firstboot on a hosted runner --- cookbooks/boxcutter_init/kitchen.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cookbooks/boxcutter_init/kitchen.yml b/cookbooks/boxcutter_init/kitchen.yml index 0bff429..14c8d61 100644 --- a/cookbooks/boxcutter_init/kitchen.yml +++ b/cookbooks/boxcutter_init/kitchen.yml @@ -18,6 +18,14 @@ transport: verifier: name: inspec +lifecycle: + post_create: + - remote: | + bash -c -x ' + # Force firstboot + touch /root/firstboot_os + ' + platforms: # @see https://github.com/chef-cookbooks/testing_examples/blob/main/kitchen.dokken.yml # @see https://hub.docker.com/u/dokken