summaryrefslogtreecommitdiffstats
path: root/patches/grub-0.97/0002-Add-hack-for-default-partition.patch
blob: 6fd31df5e5a9ec2a761c1e5d806155d41e2e852a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Sascha Hauer <s.hauer@pengutronix.de>
Date: Tue, 22 Nov 2011 15:19:52 +0100
Subject: [PATCH] Add hack for default partition

Let grub find the default partition the rootfs is installed
on. There must be a better (proper) way to archieve this,
but I don't know any.

Signed-off-by: (not for upstream)
---
 stage2/asm.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stage2/asm.S b/stage2/asm.S
index 34b6e7d..bf157cf 100644
--- a/stage2/asm.S
+++ b/stage2/asm.S
@@ -86,7 +86,7 @@ ENTRY(main)
 	. = EXT_C(main) + 0x8
 
 VARIABLE(install_partition)
-	.long	0xFFFFFF
+	.long	0x00FFFF
 /* This variable is here only because of a historical reason.  */
 VARIABLE(saved_entryno)
 	.long	0