Skip to content

/etc/sysconfig/bootloader can be empty #2773

@aplanas

Description

@aplanas

When the bootloader is configured by the user, or grub2-bls is used, the file /etc/sysconfig/bootloader can be present in the final image, but empty.

A workaround is fill it in disk.sh. For example:

loader_type="grub2-bls"
rpm -q systemd-boot && loader_type="systemd-boot"
if [ -s /etc/sysconfig/bootloader ]; then
    sed -i "s/^LOADER_TYPE=.*$/LOADER_TYPE=\"$loader_type\"/g" /etc/sysconfig/bootloader
else
    echo "LOADER_TYPE=\"${loader_type}\"" > /etc/sysconfig/bootloader
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions