summaryrefslogtreecommitdiff
path: root/release/INSTALL-GRUB-MBR
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-04-16 19:53:41 +0000
committerThomas Bushnell <thomas@gnu.org>1997-04-16 19:53:41 +0000
commit30f268f8a13209f720dc4879e1dde8e8319ebcb8 (patch)
tree1085d9f7c6b3971f69745d4f180775b0a8ebdc46 /release/INSTALL-GRUB-MBR
parent2e77e9a4d22a5e29af1b9d8d4d24ed7e35b94325 (diff)
Fri Apr 11 14:21:29 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* SETUP: Comment out frobbing of BOOT_DEV; grub does that on it's own now. * INSTALL-GRUB-MBR: Delete file. * Makefile (dist-files): Omit INSTALL-GRUB-MBR. (install-dist): Likewise. * menu.lst (title): Replace install entries with new versions. * INSTALL-binary (STEP IV): Revised instructions to correspond to new reality, with Grub 0.4.
Diffstat (limited to 'release/INSTALL-GRUB-MBR')
-rw-r--r--release/INSTALL-GRUB-MBR41
1 files changed, 0 insertions, 41 deletions
diff --git a/release/INSTALL-GRUB-MBR b/release/INSTALL-GRUB-MBR
deleted file mode 100644
index fa4e2c6e..00000000
--- a/release/INSTALL-GRUB-MBR
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/bash
-# Install grub stage1 as the MBR, copying the dos partition table from the
-# existing MBR.
-
-DEV="$1"
-STAGE1=/boot/grub/stage1
-
-if [ ! "$DEV" -o ! -w "$DEV" ]; then
- echo 2>&1 "Usage: $0 DEVICE"
- exit 1
-fi
-
-case "$DEV" in
- *d[0-9])
- ;;
- *)
- echo "The device $DEV doesn't seem to be a whole-disk raw device; continue? [n] "
- read C
- case "$C" in
- [Yy]*)
- ;;
- *)
- echo 2>&1 "$0: Aborting";
- exit 2
- ;;
- esac
- ;;
-esac
-
-cd /tmp
-
-dd if="$DEV" of=,mbr bs=512 count=1 \
-&& /bin/cp $STAGE1 ,stage1 \
-&& dd if=,mbr of=,stage1 conv=notrunc bs=1 seek=446 skip=446 count=64 \
-&& dd if=,stage1 of="$DEV" bs=512 count=1 \
-|| { echo 2>&1 "$0: Install failed!" ; exit 5 ; }
-
-rm ,mbr ,stage1
-
-echo "$0: $STAGE1 installed in MBR"
-echo "$0: Don't forget to use the grub \`install=' command to install stage2"