mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 06:22:43 +00:00
Allow for xz'd symvers file
The Fedora/ARK kernel is moving to removing gzip as a dependency and replacing it with xz. Use xz instead of gz as an extension for the symvers file. Signed-off-by: Prarit Bhargava <prarit@redhat.com>
This commit is contained in:
parent
81ed67d3a8
commit
78d64adfbe
1 changed files with 9 additions and 0 deletions
|
@ -75,6 +75,7 @@ case "$COMMAND" in
|
|||
command -v restorecon &>/dev/null && \
|
||||
restorecon "/boot/.${KERNEL_IMAGE##*/}-${KERNEL_VERSION}.hmac"
|
||||
fi
|
||||
# OLD method using gzip'd file (will be deprecated and removed in the future)
|
||||
# symvers is symvers-<version>.gz symlink, needs a special treatment
|
||||
i="$KERNEL_DIR/symvers.gz"
|
||||
if [[ -e "$i" ]]; then
|
||||
|
@ -83,6 +84,14 @@ case "$COMMAND" in
|
|||
command -v restorecon &>/dev/null && \
|
||||
restorecon "/boot/symvers-${KERNEL_VERSION}.gz"
|
||||
fi
|
||||
# symvers is symvers-<version>.bz symlink, needs a special treatment
|
||||
i="$KERNEL_DIR/symvers.bz"
|
||||
if [[ -e "$i" ]]; then
|
||||
rm -f "/boot/symvers-${KERNEL_VERSION}.bz"
|
||||
ln -s "$i" "/boot/symvers-${KERNEL_VERSION}.bz"
|
||||
command -v restorecon &>/dev/null && \
|
||||
restorecon "/boot/symvers-${KERNEL_VERSION}.bz"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "x${GRUB_ENABLE_BLSCFG}" = "xtrue" ]] || [[ ! -f /sbin/new-kernel-pkg ]]; then
|
||||
|
|
Loading…
Reference in a new issue