Add NetBSD support into grub-install.
This commit is contained in:
parent
f70e5d2409
commit
aaccdfc4ba
4 changed files with 24 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
|
||||
|
||||
From John Goerzen <jgoerzen@complete.org>:
|
||||
* util/grub-install.in (convert): Added NetBSD support.
|
||||
|
||||
2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
|
||||
|
||||
* util/grub-install.in: Set GRUB_PREFIX and BOOTDIR to "/grub"
|
||||
|
|
1
THANKS
1
THANKS
|
@ -45,6 +45,7 @@ Jason Thomas <jason@topic.com.au>
|
|||
Jeremy Katz <katzj@redhat.com>
|
||||
Jochen Hoenicke <jochen@gnu.org>
|
||||
Johannes Kroeger <hanne@squirrel.owl.de>
|
||||
John Goerzen <jgoerzen@complete.org>
|
||||
John Tobey <spam@john-edwin-tobey.org>
|
||||
Josip Rodin <joy@cibalia.gkvk.hr>
|
||||
Julien Bordet <julien.bordet@int-evry.fr>
|
||||
|
|
9
TODO
9
TODO
|
@ -53,10 +53,9 @@ Things that must _not_ be done before 1.0:
|
|||
|
||||
Things that may be done anytime:
|
||||
|
||||
* Port the script ``grub-install'' to FreeBSD, NetBSD and OpenBSD. At
|
||||
least you will have to modify the function `convert' so that it can
|
||||
translate a native device name into the corresponding GRUB drive
|
||||
representation. !
|
||||
* Port the script ``grub-install'' to OpenBSD. At least you will have to
|
||||
modify the function `convert' so that it can translate a native device
|
||||
name into the corresponding GRUB drive representation. !
|
||||
|
||||
* Add a command to run a GRUB script file. !!
|
||||
|
||||
|
@ -84,7 +83,7 @@ Things that may be done anytime:
|
|||
|
||||
* Add more remote console support (parallel and net).
|
||||
|
||||
* Add RAID support.
|
||||
* Add (real) RAID support.
|
||||
|
||||
? Add a partition naming syntax that means ``the first partition of
|
||||
this type''. We need this for clean Hurd install floppies.
|
||||
|
|
|
@ -96,6 +96,12 @@ convert () {
|
|||
| sed "s%.*/r\{0,1\}[saw]d[0-9]\(s[0-9]*[a-h]\)%\1%" \
|
||||
| sed "s%.*/r\{0,1\}da[0-9]\(s[0-9]*[a-h]\)%\1%"`
|
||||
;;
|
||||
netbsd*)
|
||||
tmp_disk=`echo "$1" | sed 's%r\{0,1\}\([sw]d[0-9]*\).*$%r\1d%' \
|
||||
| sed 's%r\{0,1\}\(fd[0-9]*\).*$%r\1a%'`
|
||||
tmp_part=`echo "$1" \
|
||||
| sed "s%.*/r\{0,1\}[sw]d[0-9]\([abe-p]\)%\1%"`
|
||||
;;
|
||||
*)
|
||||
echo "grub-install does not support your OS yet." 1>&2
|
||||
exit 1 ;;
|
||||
|
@ -145,6 +151,14 @@ convert () {
|
|||
| sed "s%)%,$tmp_bsd_partition)%"`
|
||||
fi
|
||||
echo "$tmp_drive" ;;
|
||||
netbsd*)
|
||||
if echo $tmp_part | grep "^[abe-p]$" >/dev/null; then
|
||||
tmp_bsd_partition=`echo "$tmp_part" \
|
||||
| sed "s%\([a-p]\)$%\1%"`
|
||||
tmp_drive=`echo "$tmp_drive" \
|
||||
| sed "s%)%,$tmp_bsd_partition)%"`
|
||||
fi
|
||||
echo "$tmp_drive" ;;
|
||||
esac
|
||||
else
|
||||
# If no partition is specified, just print the drive name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue