Hotfix
OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Images:openSUSE-Tumbleweed/kiwi-templates-Minimal?expand=0&rev=59
This commit is contained in:
parent
f1b7f10e0b
commit
9250f7fd24
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user