From c77c5376e458c2ae7ae0d54cae5d8f9ade2582ee Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Fri, 14 Aug 2020 15:16:57 +0000 Subject: [PATCH] core149: add grub and install it at update Signed-off-by: Arne Fitzenreiter --- config/rootfiles/core/149/filelists/aarch64/grub | 1 + config/rootfiles/core/149/filelists/i586/grub | 1 + config/rootfiles/core/149/filelists/x86_64/grub | 1 + config/rootfiles/core/149/update.sh | 5 +++++ 4 files changed, 8 insertions(+) create mode 120000 config/rootfiles/core/149/filelists/aarch64/grub create mode 120000 config/rootfiles/core/149/filelists/i586/grub create mode 120000 config/rootfiles/core/149/filelists/x86_64/grub diff --git a/config/rootfiles/core/149/filelists/aarch64/grub b/config/rootfiles/core/149/filelists/aarch64/grub new file mode 120000 index 000000000..40ae85fb6 --- /dev/null +++ b/config/rootfiles/core/149/filelists/aarch64/grub @@ -0,0 +1 @@ +../../../../common/aarch64/grub \ No newline at end of file diff --git a/config/rootfiles/core/149/filelists/i586/grub b/config/rootfiles/core/149/filelists/i586/grub new file mode 120000 index 000000000..feb236a22 --- /dev/null +++ b/config/rootfiles/core/149/filelists/i586/grub @@ -0,0 +1 @@ +../../../../common/i586/grub \ No newline at end of file diff --git a/config/rootfiles/core/149/filelists/x86_64/grub b/config/rootfiles/core/149/filelists/x86_64/grub new file mode 120000 index 000000000..78d3bd784 --- /dev/null +++ b/config/rootfiles/core/149/filelists/x86_64/grub @@ -0,0 +1 @@ +../../../../common/x86_64/grub \ No newline at end of file diff --git a/config/rootfiles/core/149/update.sh b/config/rootfiles/core/149/update.sh index b1dfa97c9..d7067a4cc 100644 --- a/config/rootfiles/core/149/update.sh +++ b/config/rootfiles/core/149/update.sh @@ -57,6 +57,11 @@ sed -i /var/spool/cron/root.orig \ -e "s/GeoIP/location/" fcrontab -z +# Install updated grub +if [ -e /boot/grub/grub.cfg ]; then + /usr/bin/install-bootloader +fi + # This update needs a reboot... #touch /var/run/need_reboot