]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core149: add grub and install it at update
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 14 Aug 2020 15:16:57 +0000 (15:16 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 14 Aug 2020 15:16:57 +0000 (15:16 +0000)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/core/149/filelists/aarch64/grub [new symlink]
config/rootfiles/core/149/filelists/i586/grub [new symlink]
config/rootfiles/core/149/filelists/x86_64/grub [new symlink]
config/rootfiles/core/149/update.sh

diff --git a/config/rootfiles/core/149/filelists/aarch64/grub b/config/rootfiles/core/149/filelists/aarch64/grub
new file mode 120000 (symlink)
index 0000000..40ae85f
--- /dev/null
@@ -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 (symlink)
index 0000000..feb236a
--- /dev/null
@@ -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 (symlink)
index 0000000..78d3bd7
--- /dev/null
@@ -0,0 +1 @@
+../../../../common/x86_64/grub
\ No newline at end of file
index b1dfa97c9a1f680630075ba06a56aacf3fc733b2..d7067a4cc922d1367b722d3a6063bd97e3fa9c31 100644 (file)
@@ -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