Commit a5acd603 authored by Anton Midyukov's avatar Anton Midyukov

bootloader: Cleanup splash in 50-bootargs

The 'splash' boot argument must be cleared so that it is not enabled for rootfs and livecd that do not have plymouth installed.
parent a6732245
#!/bin/sh -eu
if [ -n "${GLOBAL_BASE_BOOTARGS-}" ]; then
if [ -s /etc/sysconfig/grub2 ]; then
if [ -s /etc/sysconfig/grub2 ]; then
# Cleanup
sed -i "s/ splash//g" /etc/sysconfig/grub2
if [ -n "${GLOBAL_BASE_BOOTARGS-}" ]; then
sed -Ei \
"s/(GRUB_CMDLINE_LINUX_DEFAULT=)(.*)(['\"])/\1\2 $GLOBAL_BASE_BOOTARGS\3/" \
/etc/sysconfig/grub2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment