Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cy8vM-0003W3-Vl for mharc-grub-devel@gnu.org; Tue, 11 Apr 2017 23:26:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60218) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cy8vJ-0003Vv-JV for grub-devel@gnu.org; Tue, 11 Apr 2017 23:26:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cy8vG-0007Gg-Cv for grub-devel@gnu.org; Tue, 11 Apr 2017 23:26:25 -0400 Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:34545) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cy8vG-0007GW-3R for grub-devel@gnu.org; Tue, 11 Apr 2017 23:26:22 -0400 Received: by mail-lf0-x22d.google.com with SMTP id t144so7654245lff.1 for ; Tue, 11 Apr 2017 20:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=IXtnECbneVLnFDD/EJb3hnR68V93TK9Sc/kft+ZEIIE=; b=MizWBn7XKCy5OppkiKTFp8GAHit2EIdQufcNkYo3EWllzRMOPI5IOlaLXU71rm05Bg 36j/dUFfWR7ZidtfqnJyfCttWyvOTveFqRXuqJyaEwhyjnxVsKTvyUbO3/05Gje/KNmF hvp5l6sMq2rd0c433X7PQPzQRI/iVqy2qsW8CH6AQ1IvUazqwdAx3HOlifkvu15wld4s CSxzoV427t0al4e/jgbWVdAlxp87GvJxBzf+RK30f25Gwq54DRmbtn+fFudINvf6DfeY i1ZdxLOsORX+yJP1gDW+mRWAj0ngPvOw7/rN+LS1cnelLCJb1vqGuh9h3SSoCKRyZwKe ZA9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=IXtnECbneVLnFDD/EJb3hnR68V93TK9Sc/kft+ZEIIE=; b=ZMWVsfhapfUrxjPRlGpeyt4X6lIkfcH/6FyMdMYFsL6sPKOLVOuL+KRH2G0+Ct/ihm Mtgx8gG4ulps7aIgUSeH5TNKUDUW17m6CJ4I5OC6jAFaFSJM75foeuC4K6cnzDgmgR+Q D/ZLwPBIlQojLDRpADLjKpONynsxfbsR3kuOE2YpcZd/WuGPvCCQ5gaopei1BhM07G/D Mizq8ETzH5tSmpT7nK5HBgYjQyjulwumMniqIwTeOlnsQmWkqPiY/IpYtiDVbImqtQpK bF+8U/1kCR38QKVtn4NC2qMh8Li/EI3412x3GcUHsODfSa8i5G8ZZG5ib3QHZFFkgxtW AhRQ== X-Gm-Message-State: AN3rC/4EgE3/Uu89+K+UkoQpnyNAdQsVQL3BWMr07NWh6SPD1nRhEvbWJI+Zz2MHTmOQgg== X-Received: by 10.25.92.82 with SMTP id q79mr6115714lfb.121.1491967580487; Tue, 11 Apr 2017 20:26:20 -0700 (PDT) Received: from [192.168.1.5] (ppp109-252-90-38.pppoe.spdop.ru. [109.252.90.38]) by smtp.gmail.com with ESMTPSA id 207sm355130ljj.56.2017.04.11.20.26.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Apr 2017 20:26:19 -0700 (PDT) Subject: Re: Grub2, can the following be done To: grub-devel@gnu.org References: <1491947516.31748.4.camel@gmail.com> From: Andrei Borzenkov Message-ID: <19ced075-c8ea-d5bd-489e-5e57a87bd9d5@gmail.com> Date: Wed, 12 Apr 2017 06:26:18 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::22d X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2017 03:26:26 -0000 12.04.2017 02:28, Vladimir 'phcoder' Serbinenko пишет: > I documented this in the manual. See "standalone multi-OS setup" > There is no such section. You probably mean Configuration - Multi-boot manual config. Unfortunately this is not as simple. 1. Sourcing full configuration file from another distribution is not safe. It may refer to components (modules, fonts, themes, ...) not present in "parent" grub. We do not change $prefix when executing different config. And even if we did we cannot obviously load modules from completely different build. 2. The most generic is to load another GRUB, but for now there is no cross-platform method to do it. Chainloader, multiboot, efi - pick your choice. We probably need platform independent "grub" loader that resolves to whatever method is valid for current platform. For PCBIOS having each distribution install its GRUB in own partition and chainloading it is well understood and established practice, but it makes it rather hard to auto-detect and incorporate such boot blocks. For EFI the problem starts already with the fact that we are using distribution name as \EFI subdirectory, so it is impossible to install several instances of the same distribution side by side. Some (like SUSE) expose GRUB_DISTRIBUTOR in system configuration tools, but as it is also used to build menu, we get something like openSUSE_1 with linux ... which is not ideal either. We probably need to have separate configuration option for subdirectory that can be then set to something like \EFI\\ where UUID is machine UUID or even simply root filesystem. Of course existence of secure boot and shim do not make auto-detection easier. > On Wed, Apr 12, 2017, 09:27 Leslie Satenstein > wrote: > >> Current-Setup >> ============= >> SYSTEM-A Grub2 >-----+ Points to A,B,C,D,E >> +-->SYSTEM-B Grub2 Points to B,A,C,D,E >> +-->SYSTEM-C Grub2 Points to C,A,B,D,E >> +-->SYSTEM-D Grub2 Points to D,A,B,C,E >> +-->SYSTEM-E Grub2 Points to E,A,B,C,D >> >> Problem >> ======= >> any update to A,B.C.D.E needs a recreation of grub.cfg for each (all) >> the others >> >> >> Is it possible to do the following? >> >> SYSTEM-A Grub2 >-----+A,[MASTER=Grub2] >> +-->SYSTEM-B Grub2 Points to B,[MASTER=Grub2] >> +-->SYSTEM-C Grub2 Points to C,[MASTER=Grub2] >> +-->SYSTEM-D Grub2 Points to D,[MASTER=Grub2] >> +-->SYSTEM-E Grub2 Points to E,[MASTER=Grub2] >> >> [Master-Grub2] >> Copy of all Grub.cfgs, neatly organized? >> >> Any update of any system must also update MASTER-GRUB2 >> >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> https://lists.gnu.org/mailman/listinfo/grub-devel >> > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >