From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VlhWm-0004dv-SF for mharc-grub-devel@gnu.org; Wed, 27 Nov 2013 10:59:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlhWf-0004V0-9u for grub-devel@gnu.org; Wed, 27 Nov 2013 10:59:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlhWZ-0004fD-4k for grub-devel@gnu.org; Wed, 27 Nov 2013 10:59:41 -0500 Received: from mail-wi0-f176.google.com ([209.85.212.176]:62126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlhWY-0004ez-PV for grub-devel@gnu.org; Wed, 27 Nov 2013 10:59:35 -0500 Received: by mail-wi0-f176.google.com with SMTP id hq4so6992156wib.3 for ; Wed, 27 Nov 2013 07:59:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=3KUr5VbyIkwJSdfnNZCDd9X7Mok3Zowax3U2gJo0zHM=; b=g4kmFT3qBa86a2vcfEodr7yRLqUnc3eS2kUTkkl4UFfOFaQDiu5zYz9/kwtTenTLtz SlKnQ4fXQ3N8wsn0m4k4G04A0eElUYbWTchShSd3JTPG9FW4/qsmCnqT0mN64g97aAkU hh2RZIWwexl4O9FpYNcX8nzY4yWuYR7cwsixGo1Rk8GFeUmZCpb95Rssq6o3MJwmH91O DPcfNQ9dM2JWgkAdjX7hQSLybvXIgiNFWTD8ArNQarbk5zx6hnX2fiDb9fNkaaVqU2VQ sboqRzlF7w2eu+meGEcYUI/CArK2t06ydIIJ6kQHVSGsXM5mM+6XgY5+1FK8rboH45Bu SjzA== X-Gm-Message-State: ALoCoQljA8EqbeMYCjTtivV/4yKMQCq++WRE2Z1abFPphqQ7i5lSZKSFhk0CcFL2LrSKw91A/5mq X-Received: by 10.180.97.5 with SMTP id dw5mr23165620wib.42.1385567973734; Wed, 27 Nov 2013 07:59:33 -0800 (PST) Received: from [192.168.1.26] (ip-73-126.sn2.eutelia.it. [83.211.73.126]) by mx.google.com with ESMTPSA id e10sm50242183wiy.7.2013.11.27.07.59.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 27 Nov 2013 07:59:33 -0800 (PST) Message-ID: <529616EA.4000504@m2r.biz> Date: Wed, 27 Nov 2013 16:59:38 +0100 From: Fabio Fantoni User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= Subject: Re: [Xen-devel] pvgrub2 is merged References: <527EA084.6000706@gmail.com> <20131110084753.540b0107@opensuse.site> <5283DD8F.5080103@gmail.com> <52850918.1040406@gmail.com> <52851D28.1090905@gmail.com> <52851D77.6060203@gmail.com> <5285440B.2040301@gmail.com> <5293733B.3090604@m2r.biz> <5294E157.90708@m2r.biz> <20131126221221.3fe316e3@opensuse.site> <5295D867.9050306@m2r.biz> <5295DCA0.2010805@gmail.com> In-Reply-To: <5295DCA0.2010805@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.176 Cc: Andrey Borzenkov , The development of GNU GRUB , "xen-devel@lists.xen.org" , M A Young X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2013 15:59:47 -0000 Il 27/11/2013 12:50, Vladimir 'φ-coder/phcoder' Serbinenko ha scritto: > On 27.11.2013 12:32, Fabio Fantoni wrote: >> Il 26/11/2013 19:12, Andrey Borzenkov ha scritto: >>> В Tue, 26 Nov 2013 18:58:47 +0100 >>> Fabio Fantoni пишет: >>> >>>> I have also another question: >>>> Is possible specify multiple path where search the grub.cfg for support >>>> all mainly distributions and add a custom cfg path support taking it >>>> from arguments? >>>> >>> You can do something like >>> >>> if search --set root --file /boot/grub2/grub.cfg ; then >>> configfile /boot/grub2/grub.cfg >>> elif search --set root --file /boot/grub/grub.cfg ; then >>> configfile /boot/grub/grub.cfg >>> elif ... >>> ... >>> fi >> I tried with this: >> cat > boot/grub/grub.cfg <> insmod lvm >> insmod ext2 >> insmod part_msdos >> insmod part_gpt >> if search --set root --file /boot/grub2/grub.cfg ; then >> configfile /boot/grub2/grub.cfg >> elif search --set root --file /boot/grub/grub.cfg ; then >> configfile /boot/grub/grub.cfg >> fi >> EOF >> >> But it's not working and it prints this line indefinitely in loop: >> error: no such device: /boot/grub2/grub.cfg. >> > That pretty much explains what happened: you don't have any > /boot/grub2/grub.cfg and when looking for /boot/grub/grub.cfg GRUB found > its own memdisk and fell into recursion. I'm not sure what should be the > proper way to solve this recursion. Ok, now I understand with this: cat > boot/grub/grub.cfg < boot/grub/grub.cfg <> I also tried with only these lines instead of conditions: >> search -s root -f /boot/grub/grub.cfg >> configfile /boot/grub/grub.cfg >> >> But all I get is the line "Welcome to GRUB!" followed by a white screen >> on xl console. >> >> I don't know what else to try :( >> >> Thanks for any reply. >> >>> If xen provides way to pass arguments to kernel, it sure could be >>> implemented as arguments to grub. Actually someone asked for a way to >>> pass arguments to grub on EFI, so this could share implementation. >> >