1 --- grub-0.94/util/grub-install.in.copyonly 2004-02-02 16:33:29.172127985 -0500
2 +++ grub-0.94/util/grub-install.in 2004-02-02 16:34:26.027454320 -0500
9 # look for secure tempfile creation wrappers on this platform
10 if test -x /bin/tempfile; then
16 + # Copy the GRUB images to the GRUB directory.
17 + for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do
18 + rm -f $file || exit 1
21 + ${pkgdatadir}/stage1 ${pkgdatadir}/stage2 ${pkgdatadir}/*stage1_5; do
22 + cp -f $file ${grubdir} || exit 1
26 # Check the arguments.
27 for option in "$@"; do
30 force_lba="--force-lba" ;;
35 # This is an undocumented feature...
42 -if test "x$install_device" = x; then
43 - echo "install_device not specified." 1>&2
48 # If the debugging feature is enabled, print commands.
49 if test $debug = yes; then
52 grubdir=${bootdir}/grub
53 device_map=${grubdir}/device.map
55 +# if they just want the images copied, copy the images and then exit
56 +if test $justcopy = yes; then
61 +if test "x$install_device" = x; then
62 + echo "install_device not specified." 1>&2
67 # Check if GRUB is installed.
68 # This is necessary, because the user can specify "grub --read-only".
71 test -d "$bootdir" || mkdir "$bootdir" || exit 1
72 test -d "$grubdir" || mkdir "$grubdir" || exit 1
74 -# Copy the GRUB images to the GRUB directory.
75 -for file in ${grubdir}/stage1 ${grubdir}/stage2 ${grubdir}/*stage1_5; do
76 - rm -f $file || exit 1
79 - ${pkgdatadir}/stage1 ${pkgdatadir}/stage2 ${pkgdatadir}/*stage1_5; do
80 - cp -f $file ${grubdir} || exit 1
84 # If --recheck is specified, remove the device map, if present.
85 if test $recheck = yes; then