From eugen@kuzbass.ru  Mon Jun 22 14:25:44 2009
Return-Path: <eugen@kuzbass.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6AE251065675;
	Mon, 22 Jun 2009 14:25:44 +0000 (UTC)
	(envelope-from eugen@kuzbass.ru)
Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80])
	by mx1.freebsd.org (Postfix) with ESMTP id CAF468FC16;
	Mon, 22 Jun 2009 14:25:43 +0000 (UTC)
	(envelope-from eugen@kuzbass.ru)
Received: from www.svzserv.kemerovo.su (eugen@localhost [127.0.0.1])
	by www.svzserv.kemerovo.su (8.13.8/8.13.8) with ESMTP id n5MDu0x2041533;
	Mon, 22 Jun 2009 21:56:00 +0800 (KRAST)
	(envelope-from eugen@www.svzserv.kemerovo.su)
Received: (from eugen@localhost)
	by www.svzserv.kemerovo.su (8.13.8/8.13.8/Submit) id n5MDu0sE041532;
	Mon, 22 Jun 2009 21:56:00 +0800 (KRAST)
	(envelope-from eugen)
Message-Id: <200906221356.n5MDu0sE041532@www.svzserv.kemerovo.su>
Date: Mon, 22 Jun 2009 21:56:00 +0800 (KRAST)
From: Eugene Grosbein <eugen@kuzbass.ru>
Reply-To: Eugene Grosbein <eugen@kuzbass.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: luigi@freebsd.org
Subject: [patch] Make BootEasy compatible with NT Drive Serial Number by default
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         135918
>Category:       bin
>Synopsis:       [boot0] [patch] Make BootEasy compatible with NT Drive Serial Number by default
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    luigi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 22 14:30:05 UTC 2009
>Closed-Date:    Mon Apr 08 15:28:46 UTC 2013
>Last-Modified:  Mon Apr 08 15:28:46 UTC 2013
>Originator:     Eugene Grosbein
>Release:        FreeBSD 7-STABLE
>Organization:
Svyaz-Service JSC
>Environment:
System: FreeBSD/Windows multiboot system

>Description:
	Release Notes for 7.2 say:

"The boot(8) now supports 4-byte volume ID that certain versions of Windows.
put into the MBR",

http://www.freebsd.org/releases/7.2R/relnotes-detailed.html#BOOT

	However, this support is not compiled by default and
	7.2 still destroys Serial Number that Windows Vista and later
	needs unconditionally (Windows XP needs it when its boot disk
	is not C:), so let's enable it. It works perfectly.
	
>How-To-Repeat:

	Make backup of MBR when your system has Windows Vista or later
	installed in one of slices then install BootEasy. Your Windows
	won't boot until MBR contents restored.

>Fix:

Index: src/sys/boot/i386/boot0/Makefile
===================================================================
RCS file: /home/ncvs/src/sys/boot/i386/boot0/Makefile,v
retrieving revision 1.32
diff -u -r1.32 Makefile
--- src/sys/boot/i386/boot0/Makefile	25 Apr 2005 17:41:35 -0000	1.32
+++ src/sys/boot/i386/boot0/Makefile	22 Jun 2009 13:51:23 -0000
@@ -52,6 +52,7 @@
 
 CFLAGS+=-DFLAGS=${BOOT_BOOT0_FLAGS} \
 	-DTICKS=${BOOT_BOOT0_TICKS} \
+	-DVOLUME_SERIAL \
 	-DCOMSPEED=${BOOT_BOOT0_COMCONSOLE_SPEED}
 
 LDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-S,--oformat,binary



Eugene Grosbein
>Release-Note:
>Audit-Trail:

From: Valentin Davydov <sp@m.davydov.spb.su>
To: bug-followup@FreeBSD.org, eugen@kuzbass.ru
Cc:  
Subject: Re: bin/135918: [patch] Make BootEasy compatible with NT Drive Serial Number by default
Date: Tue, 23 Jun 2009 14:39:55 +0400 (MSD)

 Patch tested with FreeBSD RELENG_7 and Windows 7 beta on an i386 machine. 
 Works perfectly.
 
 Valentin Davydov.

From: Alexander Best <alexbestms@wwu.de>
To: <bug-followup@FreeBSD.org>
Cc: Eugene Grosbein <eugen@kuzbass.ru>
Subject: Re: bin/135918: [boot0] [patch] Make BootEasy compatible with NT
 Drive Serial Number by default
Date: Mon, 22 Mar 2010 14:10:31 +0100 (CET)

 fixed in r185579, not yet mfc'ed to 7 and 6.
 
 -- 
 Alexander Best
State-Changed-From-To: open->patched 
State-Changed-By: brucec 
State-Changed-When: Sat Apr 3 10:45:31 UTC 2010 
State-Changed-Why:  
Fixed in HEAD. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135918 
Responsible-Changed-From-To: freebsd-bugs->luigi 
Responsible-Changed-By: arundel 
Responsible-Changed-When: Thu Jul 29 22:50:22 UTC 2010 
Responsible-Changed-Why:  
Over to luigi as MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135918 

From: Eugene Grosbein <egrosbein@rdtc.ru>
To: bug-followup@FreeBSD.ORG
Cc:  
Subject: bin/135918: [boot0] [patch] Make BootEasy compatible with NT Drive
 Serial Number by default
Date: Mon, 01 Aug 2011 00:20:39 +0700

 Hi!
 
 Please close this PR as problem is already resolved for RELENG_8 branch
 (fix hit HEAD before it was branched).
 
 Note, 7.x and 6.x were not fixed.
 
 Eugene Grosbein
State-Changed-From-To: patched->closed 
State-Changed-By: emaste 
State-Changed-When: Mon Apr 8 15:28:05 UTC 2013 
State-Changed-Why:  
Close per submitter request; all supported branches are fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=135918 
>Unformatted:
