Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MhHPu-0002Vf-6j for mharc-grub-devel@gnu.org; Sat, 29 Aug 2009 02:28:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhHPr-0002VB-AZ for grub-devel@gnu.org; Sat, 29 Aug 2009 02:27:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MhHPm-0002Uq-JS for grub-devel@gnu.org; Sat, 29 Aug 2009 02:27:58 -0400 Received: from [199.232.76.173] (port=51824 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhHPm-0002Un-Be for grub-devel@gnu.org; Sat, 29 Aug 2009 02:27:54 -0400 Received: from mail-bw0-f222.google.com ([209.85.218.222]:37842) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MhHPl-0008AD-Vl for grub-devel@gnu.org; Sat, 29 Aug 2009 02:27:54 -0400 Received: by bwz22 with SMTP id 22so2340308bwz.42 for ; Fri, 28 Aug 2009 23:27:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=7fFGJXCBsqh6jNPQYqBUX4X01GCOB6UFxdfjy3D19PM=; b=SCFxOJDDjUuYVSIYtcYXgVguxjJDIrJ9aRfGTG08Is0vZYJelBiomujcCyCHjt1pVi SIPvlvnjA5/x8itd2BjHdDdrlTKDgebOcMD0CqkoGBB516Q2ML7FmxTWuIxsjZUvL7cN HUk9F553NWwhSlxl2GZ55gdy7TRZF19mWVAGE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=kSZNlHhtX0q+kLysSIjBMykkvX4OHRB1QqevE+D0xGEGG9nE14GKrgqeHcVai5m3bO 9D6AE/NfL+4EY6FhRyhAfBzQn7cgDd7GNB9QzTckZv89YSRF/oMByNQ4gZeG+85Mubrc PMNO8CTvw+mwFCKMVXmfGivvTpD2fUCq93Ffo= MIME-Version: 1.0 Received: by 10.204.48.131 with SMTP id r3mr1666931bkf.195.1251527272820; Fri, 28 Aug 2009 23:27:52 -0700 (PDT) In-Reply-To: References: <48f46e890904182151t55ad5e29sd7a280c62574ba40@mail.gmail.com> <48f46e890904190626l78773fdbp17f4ddd18566cdec@mail.gmail.com> Date: Sat, 29 Aug 2009 08:27:52 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] bless command 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, 29 Aug 2009 06:27:59 -0000 >> Wouldn't it be reasonable to bless both the file and the directory? > > Hi, > > Actually, I think the correct handling is to first bless a boot > directory (storing the directory id in header), then bless a boot file > (add +tbxi attribute), that's why the bless command in OSX needs needs > both --folder and --file option. AFAIK --file has no effect for intel macs. > >> >>> intelmacbless and ppcmacbless both accepting file as an argument. First one >>> updates finderInfo[1] and the second one updates finderInfo[0] and sets >>> filetype of given file to tbxi and if any other file has the type tbxi in >>> the same directory then change it to any other value (e.g. tbxj) >> >> Couldn't the bless command check the machine type of the file and >> change file type on ppc files and bless the file for i386 files? >> >> It's OK if the command has parameters that specify what to do and are >> explained in the help but it should just do the right thing when you >> specify the file to bless. >> >> Would it be possible to make an i386+ppc efi boot CD this way? Would >> the i386 grub boot on 64bit systems or are two CDs needed for i386 and >> amd64? > > Yeah, osx support fat binaries that contains code from multiple architecture. > In the case of OFW (and not EFI) boot for ppc macs You can (and have to) specify a completely different file. OSX bootable disks and partitions do it that way > -- > Bean > > gitgrub home: http://github.com/grub/grub/ > my fork page: http://github.com/bean123/grub/ > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git