Date: Wed, 30 Jan 2008 02:24:35 +0200 From: "Niki Denev" <nike_d@cytexbg.com> To: "John Baldwin" <jhb@freebsd.org> Cc: cvs-src@freebsd.org Subject: Re: cvs commit: src/lib/libstand Makefile src/sbin/gpt Makefile add.c boot.c gpt.8 gpt.c gpt.h show.c src/sys/boot/i386 Makefile src/sys/boot/i386/gptboot Makefile gptboot.c gptldr.S src/sys/boot/i386/libi386 biosdisk.c devicename.c ... Message-ID: <2e77fc10801291624rcd55d38sa67dce7787918a80@mail.gmail.com> In-Reply-To: <2e77fc10801291618r5ca9d23ah362e483d286b2df2@mail.gmail.com> References: <200801241942.m0OJgH5J000300@repoman.freebsd.org> <2e77fc10801291618r5ca9d23ah362e483d286b2df2@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 30, 2008 2:18 AM, Niki Denev <nike_d@cytexbg.com> wrote: > On Jan 24, 2008 9:42 PM, John Baldwin <jhb@freebsd.org> wrote: > > jhb 2008-01-24 19:42:17 UTC > > > > FreeBSD src repository > > > > Modified files: (Branch: RELENG_7) > > lib/libstand Makefile > > sbin/gpt Makefile add.c gpt.8 gpt.c gpt.h show.c > > sys/boot/i386 Makefile > > sys/boot/i386/libi386 biosdisk.c devicename.c > > sys/boot/pc98/libpc98 biosdisk.c > > sys/geom/part g_part.c g_part.h g_part_gpt.c > > sys/sys gpt.h > > Added files: (Branch: RELENG_7) > > sbin/gpt boot.c > > sys/boot/i386/gptboot Makefile gptboot.c gptldr.S > > sys/boot/i386/pmbr Makefile pmbr.s > > Log: > > MFC: Add support for booting from GPT-labeled disks from the BIOS. This > > includes /boot/pmbr, /boot/gptboot, and 'gpt boot'. > > Thanks! Works perfectly here! > > I believe only this little patch is needed for gpt to behave as > advertised in the manual page. > ( to be able to "add" gpt partitions of type "boot" ) > > --- sbin/gpt/gpt.c.orig 2008-01-30 02:05:44.000000000 +0200 > +++ sbin/gpt/gpt.c 2008-01-30 02:07:21.000000000 +0200 > @@ -268,6 +268,12 @@ > return (0); > > switch (*s) { > + case 'b': > + if (strcmp(s, "boot") == 0) { > + uuid_t boot = GPT_ENT_TYPE_FREEBSD_BOOT; > + *uuid = boot; > + return (0); > + } > case 'e': > if (strcmp(s, "efi") == 0) { > uuid_t efi = GPT_ENT_TYPE_EFI; > oops, forgot one "break" : --- sbin/gpt/gpt.c.orig 2008-01-30 02:05:44.000000000 +0200 +++ sbin/gpt/gpt.c 2008-01-30 02:23:06.000000000 +0200 @@ -268,6 +268,13 @@ return (0); switch (*s) { + case 'b': + if (strcmp(s, "boot") == 0) { + uuid_t boot = GPT_ENT_TYPE_FREEBSD_BOOT; + *uuid = boot; + return (0); + } + break; case 'e': if (strcmp(s, "efi") == 0) { uuid_t efi = GPT_ENT_TYPE_EFI;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2e77fc10801291624rcd55d38sa67dce7787918a80>