Fabian Vogt 2025-02-21 16:12:22 +00:00 committed by Git OBS Bridge
parent f1b7f10e0b
commit 9250f7fd24

View File

@ -139,10 +139,11 @@ if [[ -e /etc/selinux/config ]]; then
"/etc/selinux/config"
fi
if [ -e /etc/default/grub ]; then
sed -i "s#^GRUB_CMDLINE_LINUX_DEFAULT=.*\$#GRUB_CMDLINE_LINUX_DEFAULT=\"${cmdline[*]}\"#" /etc/default/grub
elif rpm -q sdbootutil; then
if rpm -q sdbootutil; then
mkdir -p /etc/kernel
echo "${cmdline[*]}" > /etc/kernel/cmdline
elif [ -e /etc/default/grub ]; then
sed -i "s#^GRUB_CMDLINE_LINUX_DEFAULT=.*\$#GRUB_CMDLINE_LINUX_DEFAULT=\"${cmdline[*]}\"#" /etc/default/grub
else
echo "Unknown bootloader"
exit 1