forked from suse-edge/edge-image-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
6 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
# Configure GRUB for first boot | ||
# - Without this, the values wouldn't be used until after the first time the | ||
# grub configuration is regenerated | ||
download /boot/grub2/grub.cfg /tmp/grub.cfg | ||
! sed -i '/ignition.platform/ s/$/ {{.KernelArgs}} /' /tmp/grub.cfg | ||
upload /tmp/grub.cfg /boot/grub2/grub.cfg | ||
|
||
# Configure GRUB defaults | ||
# - Without this, when `transactional-update grub.cfg` is run it will overwrite | ||
# settings used in the above change | ||
# - So that the update below, and later`transactional-update grub.cfg` will persist the changes | ||
download /etc/default/grub /tmp/grub | ||
! sed -i '/^GRUB_CMDLINE_LINUX_DEFAULT="/ s/"$/ {{.KernelArgs}} "/' /tmp/grub | ||
upload /tmp/grub /etc/default/grub | ||
upload /tmp/grub /etc/default/grub | ||
|
||
# Configure GRUB for first boot | ||
# - This re-generates the file applying the /etc/default/grub above | ||
sh "grub2-mkconfig -o /boot/grub2/grub.cfg" |