]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/grub-0.97-install.in.patch
Add recently changed files to core update.
[people/teissler/ipfire-2.x.git] / src / patches / grub-0.97-install.in.patch
CommitLineData
82705b6e
MT
1--- grub-0.97/util/grub-install.in.install 2005-12-12 18:15:45.000000000 -0500
2+++ grub-0.97/util/grub-install.in 2005-12-12 18:18:11.000000000 -0500
3@@ -324,6 +324,15 @@
4 test -d "$bootdir" || mkdir "$bootdir" || exit 1
5 test -d "$grubdir" || mkdir "$grubdir" || exit 1
6
7+# Copy the GRUB images to the GRUB directory.
8+for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do
9+ rm -f $file || exit 1
10+done
11+for file in \
12+ ${pkgdatadir}/stage1 ${pkgdatadir}/stage2 ${pkgdatadir}/*stage1_5; do
13+ cp -f $file ${grubdir} || exit 1
14+done
15+
16 # If --recheck is specified, remove the device map, if present.
17 if test $recheck = yes; then
18 rm -f $device_map
19@@ -406,15 +415,6 @@
20 exit 1
21 fi
22
23-# Copy the GRUB images to the GRUB directory.
24-for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do
25- rm -f $file || exit 1
26-done
27-for file in \
28- ${pkglibdir}/stage1 ${pkglibdir}/stage2 ${pkglibdir}/*stage1_5; do
29- cp -f $file ${grubdir} || exit 1
30-done
31-
32 # Make a default file.
33 ${grub_set_default} --root-directory=${rootdir} default
34