@@ -9,14 +9,14 @@ description: |-
99 <br /><br />
1010 Since plaintext passwords are a security risk, generate a hash for the password
1111 by running the following command:
12- {{% if product in ["sle12", "sle15", "sle16", "slmicro5", "slmicro6", "ubuntu2204", "ubuntu2404"] %}}
12+ {{% if "sle" in product or "slmicro" in product or product in [ "ubuntu2204", "ubuntu2404"] %}}
1313 <pre># grub2-mkpasswd-pbkdf2</pre>
1414 {{% else %}}
1515 <pre># grub2-setpassword</pre>
1616 {{% endif %}}
1717 When prompted, enter the password that was selected.
1818 <br /><br />
19- {{% if product in ["sle12", "sle15", "sle16", "slmicro5", "slmicro6", "ubuntu2204", "ubuntu2404"] %}}
19+ {{% if "sle" in product or "slmicro" in product or product in [ "ubuntu2204", "ubuntu2404"] %}}
2020 Using the hash from the output, modify the <tt>/etc/grub.d/40_custom</tt>
2121 file with the following content:
2222 <pre>set superusers="boot"
@@ -27,7 +27,7 @@ description: |-
2727 Once the superuser password has been added,
2828 update the
2929 <tt>grub.cfg</tt> file by running:
30- {{%- if "rhel" in product or product in ["sle12", "sle15", "sle16", "slmicro5", "slmicro6"] %}}
30+ {{%- if "rhel" in product or "sle" in product or "slmicro" in product %}}
3131 <pre>grub2-mkconfig -o /boot/grub2/grub.cfg</pre>
3232 {{%- else %}}
3333 <pre>{{{ grub_command("update") }}}</pre>
0 commit comments