[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] Make knetbsd pass the root device

From: Grégoire Sutre
Subject: [patch] Make knetbsd pass the root device
Date: Wed, 21 Sep 2011 01:25:04 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110831 Iceowl/1.0b2 Icedove/3.1.13


The attached patch adds bootdisk and bootwedge to the bootinfo
passed to NetBSD kernels by knetbsd.  These fields indicate to
the kernel which is the root device. The patch sets them to
GRUB's root device.

This way, specifying --root for knetbsd is no longer necessary
for common cases.


- Root device is partition f: of the NetBSD label in hd0:
  insmod part_bsd
  set root=(hd0,netbsd6)

- Root device is partition a: of the NetBSD label in hd1 (*):
  insmod part_bsd
  set root=(hd1,netbsd1)

- Root device is first GPT partition of hd1:
  insmod part_gpt
  set root=(hd1,gpt1)
  Here, the NetBSD kernel will detect the root device as a disk

- Root device is 2nd DOS partition of hd0:
  set root=(hd0,msdos2)
  As in the previous case, the kernel will detect the root device
  as a disk wedge (if it is built with the appropriate option).

(*) Assuming that a: is the root partition of the NetBSD slice
contained in, say, (hd1,msdos3), one should specify (hd1,netbsd1)
and not (hd1,msdos3).  The latter would be ignored by the kernel
(or, possibly, detected as a wedge).

Comments welcome.


Attachment: netbsd-btinfo.diff
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]