From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Metgp-0008K7-3T for mharc-grub-devel@gnu.org; Sat, 22 Aug 2009 12:43:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Metgn-0008JE-1h for grub-devel@gnu.org; Sat, 22 Aug 2009 12:43:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Metgi-0008HM-28 for grub-devel@gnu.org; Sat, 22 Aug 2009 12:43:36 -0400 Received: from [199.232.76.173] (port=45839 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Metgh-0008HG-Sp for grub-devel@gnu.org; Sat, 22 Aug 2009 12:43:31 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:56601) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Metgh-0004s5-HA for grub-devel@gnu.org; Sat, 22 Aug 2009 12:43:31 -0400 Received: by ewy7 with SMTP id 7so1386980ewy.31 for ; Sat, 22 Aug 2009 09:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type; bh=apQqJQqssu0fv0wg38Ncy28rF5z64f1n00bHugFd2X8=; b=yEKCdcMjzbbCIATKUh2QiG9MM4vKVZjh5A87hFz5/KRS0CIx2rRZf5bsc2ijhfSicH Uwutj61fpq5tUh7HncIR2NV8do0+pLqjUSLRN8zFJxbXcJ+n4Sy4dSfiILexeJopRtCT 52nUFhQEAZ+iIzidZqV+BRMq6ZY0Mg+cVWuzs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=eTAt6SOOjxX84+40dHRrcIJdYCDMDB4vCyg9om48SFojLsa/KwSLCo3owIcQ4chKyS J7Zs9bQrXIimN/WFgjsWjOYfMeXVmaUb0pjavNimWharDeBsOVHNYzd0rBmSFT1EymE5 yUkOt/+yY7Q2F3475cYlmZFpZ4UUTgeOr5Gso= Received: by 10.210.38.5 with SMTP id l5mr2953371ebl.64.1250959410446; Sat, 22 Aug 2009 09:43:30 -0700 (PDT) Received: from ?79.149.39.62? (62.Red-79-149-39.staticIP.rima-tde.net [79.149.39.62]) by mx.google.com with ESMTPS id 24sm6256763eyx.13.2009.08.22.09.43.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 22 Aug 2009 09:43:29 -0700 (PDT) Message-ID: <4A901D94.3090406@gmail.com> Date: Sat, 22 Aug 2009 18:32:20 +0200 From: adrian15 User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: The development of GRUB 2 Content-Type: multipart/mixed; boundary="------------020907090900000607090206" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: os-detect lua uuid fix X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2009 16:43:37 -0000 This is a multi-part message in MIME format. --------------020907090900000607090206 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Here you a have a patch that fixes the error that osdetect.lua script had uuid not being set. Now the linux kernel does not complain about not finding root device. The only problem that this patch has is that is made with grub shell in mind instead of lua. I suppose that we can do the same thing but getting the uuid values from lua script itself. If I am able to do so I will also send a patch for it. adrian15 -- Support free software. Donate to Super Grub Disk. Apoya el software libre. Dona a Super Grub Disk. http://www.supergrubdisk.org/index.php?pid=10 --------------020907090900000607090206 Content-Type: text/plain; name="os_detect.lua.uuid_fix_way1.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="os_detect.lua.uuid_fix_way1.diff" diff -urN original/osdetect.lua uuid_fix/osdetect.lua --- original/osdetect.lua 2009-08-22 17:42:43.000000000 +0200 +++ uuid_fix/osdetect.lua 2009-08-22 18:23:12.000000000 +0200 @@ -156,9 +156,11 @@ local initrd title = "Linux " .. kernels[i] + uuid_setup = "search --set=sgd_linux_kernel -f /boot/" .. kernelnames[i] .. "\n" + uuid_set = "probe -u ($sgd_linux_kernel) --set=sgd_root_uuid" .. "\n" source = "set root=" .. device .. "\nlinux /boot/" .. kernelnames[i] .. - " root=UUID=" .. " ro" + " root=UUID=" .. "$sgd_root_uuid" .. " ro" if grub.file_exist (root .. "boot/initrd-" .. kernels[i] .. ".img") then @@ -171,7 +173,7 @@ initrd = "" end - grub.add_menu (source .. initrd, title) + grub.add_menu (uuid_setup .. uuid_set .. source .. initrd, title) grub.add_menu (source .. " single" .. initrd, title .. " (single-user mode)") end --------------020907090900000607090206--