From f968140ade1092b1d5fe9bca949a1efb16ac1b2d Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Tue, 16 Jul 2019 09:31:45 -0400 Subject: [PATCH] grub: drop 02_ignition_firstboot Now that FCOS no longer regenerates GRUB2 configs, this logic was moved to the static one in coreos-assembler: https://github.com/coreos/coreos-assembler/pull/616 --- grub/02_ignition_firstboot | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 grub/02_ignition_firstboot diff --git a/grub/02_ignition_firstboot b/grub/02_ignition_firstboot deleted file mode 100755 index cb54e79..0000000 --- a/grub/02_ignition_firstboot +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -exec tail -n +3 $0 -# We store the file on the /boot/ partition so find the -# boot partition. On UEFI this may different than the grub -# $root so we search for it here. -# https://github.com/coreos/ignition-dracut/issues/51 -search --set=bootpart --label boot -# Determine if this is a first boot and set the variable -# to be used later on the kernel command line. -set ignition_firstboot="" -if [ -f "(${bootpart})/ignition.firstboot" ]; then - # default to dhcp networking parameters to be used with ignition - set ignition_network_kcmdline='rd.neednet=1 ip=dhcp' - - # source in the `ignition.firstboot` file which could override the - # above $ignition_network_kcmdline with static networking config. - # This override feature is primarily used by coreos-installer to - # persist static networking config provided during install to the - # first boot of the machine. - source "(${bootpart})/ignition.firstboot" - - # we support setting variables in the - set ignition_firstboot="ignition.firstboot $ignition_network_kcmdline" -fi