Skip to content

Commit

Permalink
[debian][centos] fix grub_cmdline_linux variable case
Browse files Browse the repository at this point in the history
  • Loading branch information
npf committed Nov 8, 2020
1 parent 484754f commit bfb2e42
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion from_scratch/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ global:
zerofree: false

# GRUB
GRUB_CMDLINE_LINUX: console=tty0 console=ttyS0,115200
grub_cmdline_linux: console=tty0 console=ttyS0,115200

http_directory: $${kameleon_cwd}/http_dir
http_pid: $${kameleon_cwd}/http.pid
Expand Down
6 changes: 3 additions & 3 deletions steps/setup/centos/configure_system.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# System configuration
- GRUB_CMDLINE_LINUX: ""
- grub_cmdline_linux: ""

# This will set the locals and the timezone
- set_locales:
Expand Down Expand Up @@ -69,6 +69,6 @@
- fix_NetworkManager_timeout:
- exec_in: sed -i "s/--timeout=30/--timeout=50/" /usr/lib/systemd/system/NetworkManager-wait-online.service

- configure_GRUB:
- exec_in: sed -i 's|^\(GRUB_CMDLINE_LINUX=\).*|\1"$${GRUB_CMDLINE_LINUX}"|' /etc/default/grub
- configure_grub:
- exec_in: sed -i 's|^\(GRUB_CMDLINE_LINUX=\).*|\1"$${grub_cmdline_linux}"|' /etc/default/grub
- exec_in: grub2-mkconfig -o "$(readlink -e /etc/grub2.cfg)"
6 changes: 3 additions & 3 deletions steps/setup/debian/configure_system.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# System Config
- GRUB_CMDLINE_LINUX: ""
- grub_cmdline_linux: ""

- configure_locales:
# set locales programtically, based on http://linux.livejournal.com/1880366.html
Expand All @@ -22,7 +22,7 @@
- /etc/initramfs-tools/conf.d/resume
- RESUME=none

- configure_GRUB:
- exec_in: sed -i 's|^\(GRUB_CMDLINE_LINUX=\).*|\1"$${GRUB_CMDLINE_LINUX}"|' /etc/default/grub
- configure_grub:
- exec_in: sed -i 's|^\(GRUB_CMDLINE_LINUX=\).*|\1"$${grub_cmdline_linux}"|' /etc/default/grub
- exec_in: update-grub

0 comments on commit bfb2e42

Please sign in to comment.