Use the old 10_sortix when upgrading without a new grub port.
This commit is contained in:
parent
f1ed3194cb
commit
a2a790a336
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (c) 2023 Jonas 'Sortie' Termansen.
|
# Copyright (c) 2023, 2024 Jonas 'Sortie' Termansen.
|
||||||
#
|
#
|
||||||
# Permission to use, copy, modify, and distribute this software for any
|
# Permission to use, copy, modify, and distribute this software for any
|
||||||
# purpose with or without fee is hereby granted, provided that the above
|
# purpose with or without fee is hereby granted, provided that the above
|
||||||
|
@ -24,6 +24,14 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# If the new system root doesn't contain the grub port, use the old 10_sortix
|
||||||
|
# script instead since we're not upgrading to a new version of the bootloader.
|
||||||
|
if [ ! -e /sysmerge/etc/default/grub.d/10_sortix -a \
|
||||||
|
-e /etc/default/grub.d/10_sortix ]; then
|
||||||
|
mkdir -p /sysmerge/etc/default/grub.d
|
||||||
|
cp /etc/default/grub.d/10_sortix /sysmerge/etc/default/grub.d/10_sortix
|
||||||
|
fi
|
||||||
|
|
||||||
# The old system has copied the new kernel and initrd files from /sysmerge/boot
|
# The old system has copied the new kernel and initrd files from /sysmerge/boot
|
||||||
# to /boot/sysmerge and we need to configure grub to boot them.
|
# to /boot/sysmerge and we need to configure grub to boot them.
|
||||||
/sysmerge/etc/default/grub.d/10_sortix --sysmerge
|
/sysmerge/etc/default/grub.d/10_sortix --sysmerge
|
||||||
|
|
Loading…
Reference in New Issue