mkimage-profiles/features.in/bootloader/rootfs/image-scripts.d/50-bootargs

10 lines
249 B
Plaintext
Raw Normal View History

#!/bin/sh -eu
if [ -n "${GLOBAL_BASE_BOOTARGS-}" ]; then
if [ -s /etc/sysconfig/grub2 ]; then
sed -Ei \
"s/(GRUB_CMDLINE_LINUX_DEFAULT=)(.*)(['\"])/\1\2 $GLOBAL_BASE_BOOTARGS\3/" \
/etc/sysconfig/grub2
fi
fi