Skip to contentSkip to conversation

Add --root=DEVICE parameter support when boot NetBSD.

PATCH In review Vladimir 'phcoder' Serbinenko 1 participant 2 messages Aug 23, 2009 – Aug 24, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add --root=DEVICE parameter support when boot NetBSD.

Currently grub2 tries to guess root device name in OS notation basing on BIOS number. This fails in multiple cases. This patch lets user specify root device.

Signature · 4 lines
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git
ChangeLog +11 -0
index a00842c..04e2e17 100644
@@ -1,5 +1,16 @@
 2009-08-23  Vladimir Serbinenko  <[email protected]>
 
+	Let user specify NetBSD root device.
+
+	* loader/i386/bsd.c (netbsd_root): New variable.
+	(netbsd_opts): New option 'root'.
+	(NETBSD_ROOT_ARG): New macro.
+	(grub_netbsd_boot): Use 'netbsd_root'.
+	(grub_bsd_unload): Free 'netbsd_root'.
+	(grub_cmd_netbsd): Fill 'netbsd_root'.
+
+2009-08-23  Vladimir Serbinenko  <[email protected]>
+
 	* commands/search.c (search_fs): Try searching without autoload first.
 	* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
 	filesystem module explicitly for faster booting.
loader/i386/bsd.c +34 -10

87 lines not on this page · raw message

#1 lore raw

Committed as approved by Robert Millan for fast-track acception.

Quoted 10 lines · Vladimir 'phcoder' Serbinenko

Currently grub2 tries to guess root device name in OS notation basing on BIOS number. This fails in multiple cases. This patch lets user specify root device.

--
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git

Signature · 4 lines
Regards
Vladimir 'phcoder' Serbinenko

Personal git repository: http://repo.or.cz/w/grub2/phcoder.git