Skip to content

Commit

Permalink
Work around initrd issue in sle11sp4
Browse files Browse the repository at this point in the history
  • Loading branch information
Bischoff committed May 21, 2021
1 parent cdfe5ec commit 4c48413
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions salt/default/grub.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{% if grains['osfullname'] == 'SLES' %}

{% if grains['osrelease'] == '11.4' %}
# This problem should probably be fixed when generating the images
grub_hack:
file.replace:
- name: /boot/grub/menu.lst
- pattern: ^(title.*)$
- count: 1
- repl: |
title sles11sp4_fixed
root (hd0,0)
kernel /boot/vmlinuz-3.0.101-108.126-default vga=0x314 splash=silent console=tty0 console=ttyS0,115200 root=/dev/vda1 disk=/dev/vda nomodeset elevator=noop showopts
initrd /boot/initrd-3.0.101-108.126-default
\1
{% endif %}

{% endif %}
1 change: 1 addition & 0 deletions salt/default/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ include:
- default.locale
- default.minimal
- default.pkgs
- default.grub
{% if grains.get('reset_ids') | default(false, true) %}
- default.ids
{% endif %}
Expand Down

0 comments on commit 4c48413

Please sign in to comment.