From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1W0XbE-0002WU-7l for mharc-grub-devel@gnu.org; Tue, 07 Jan 2014 09:25:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0Xb2-0002Ri-FF for grub-devel@gnu.org; Tue, 07 Jan 2014 09:25:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0Xat-0001xN-U4 for grub-devel@gnu.org; Tue, 07 Jan 2014 09:25:32 -0500 Received: from mail-ea0-x234.google.com ([2a00:1450:4013:c01::234]:48587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0Xat-0001xC-MR for grub-devel@gnu.org; Tue, 07 Jan 2014 09:25:23 -0500 Received: by mail-ea0-f180.google.com with SMTP id f15so243414eak.39 for ; Tue, 07 Jan 2014 06:25:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=87BLH/6Gv4dwm0s5NDOgv9M9Dq67EY3deBU5YSKEZ+s=; b=DsXfHL8uQK6OPrgIVOUwoRWb0O2XBsOj1AUTJhJexDBZMgmj5Z72YHvZYW7x+P+lyl QuKJ5WQYbCBXMw/iwpiuOYf5yd7dk9nIn/qdr7acvg7YeIO69E1jgUvK+mScRPHWkRuB yxdfNd4t/6BPtjzo6tzAfLNUDpC32lJLvE+pB6q+qLzv4T92Nrwb53novrIZJ6dDLmpR +usIY6nCUjLpSse3cf9cRCtyDVgr9/93XrEv3w1DrffxNrQsrdCJTcZRz3PISP9W6FcL zPnWAcS0NmPYKmjFw8q+VfSsgOzz7OTdC1xQowldSZCcEb6B37nJMXmh8+UTE/c/5AU6 16qQ== X-Received: by 10.14.209.129 with SMTP id s1mr94162200eeo.21.1389104722925; Tue, 07 Jan 2014 06:25:22 -0800 (PST) Received: from [192.168.42.236] (161-225.197-178.cust.bluewin.ch. [178.197.225.161]) by mx.google.com with ESMTPSA id n1sm180574479eep.20.2014.01.07.06.25.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Jan 2014 06:25:21 -0800 (PST) Message-ID: <52CC033A.2040505@gmail.com> Date: Tue, 07 Jan 2014 14:38:02 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: [PATCH] Add apple_set_os command References: <1388419466-2023-1-git-send-email-andreas@heider.io> In-Reply-To: <1388419466-2023-1-git-send-email-andreas@heider.io> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VtGR75ADc3ptrKBHX3FhcrhCk5al5NuoG" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::234 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: Tue, 07 Jan 2014 14:25:41 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --VtGR75ADc3ptrKBHX3FhcrhCk5al5NuoG Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 30.12.2013 17:04, Andreas Heider wrote: > +static const grub_efi_char8_t apple_os_version[] =3D "Mac OS X 10.9"; > +static const grub_efi_char8_t apple_os_vendor[] =3D "Apple Inc."; > + Can those be optionally supplied on command line? E.g. apple_set_os [[VENDOR] VERSION] On the other hand we should probably start collecting whitelist of macs who need this and do it on them automatically. Idk if there is EFI variable to identify mac model from EFI but it's possible from SMBIOS. > +static grub_err_t > +grub_cmd_apple_set_os (grub_command_t cmd __attribute__ ((unused)), > + int argc __attribute__ ((unused)), > + char **args __attribute__ ((unused))) > +{ > + grub_efi_guid_t apple_set_os_guid =3D GRUB_EFI_APPLE_SET_OS_PROTOCOL= _GUID; --VtGR75ADc3ptrKBHX3FhcrhCk5al5NuoG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlLMAzoACgkQmBXlbbo5nOtfagD8Cp7YiSQCXh5go188o+2apGJO Q0rNpI5v7INQEkgM4ZoBAJs5/I5TBH4WYYZ1L4IzB7sLxsii7mNjraKyly8+4QeJ =k54N -----END PGP SIGNATURE----- --VtGR75ADc3ptrKBHX3FhcrhCk5al5NuoG--