mkimage-profiles/features.in/bootloader/rootfs/image-scripts.d/50-bootargs
Anton Midyukov a5acd603e5 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.
2020-11-24 21:13:54 +07:00

12 lines
310 B
Bash
Executable File

#!/bin/sh -eu
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
fi
fi