Re: [PATCH] fix 32 bit compilation on MinGW-w64

2014-01-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Go ahead On 29.12.2013 11:10, Andrey Borzenkov wrote: > Use _FILE_OFFSET_BITS macro to distinguish between native MinGW and > 32 bit under MinGW-64. The latter does not require fseeko/ftello > redefinition which it already does in case of _FILE_OFFSET_BITS=64. > > --- > include/grub/osdep/hostfil

Re: [PATCH] Add apple_set_os command

2014-01-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 30.12.2013 17:04, Andreas Heider wrote: > +static const grub_efi_char8_t apple_os_version[] = "Mac OS X 10.9"; > +static const grub_efi_char8_t apple_os_vendor[] = "Apple Inc."; > + Can those be optionally supplied on command line? E.g. apple_set_os [[VENDOR] VERSION] On the other hand we shoul

Re: [PATCH] Add apple_set_os command

2014-01-07 Thread Andrey Borzenkov
В Вт, 07/01/2014 в 14:38 +0100, Vladimir 'φ-coder/phcoder' Serbinenko пишет: > On 30.12.2013 17:04, Andreas Heider wrote: > > +static const grub_efi_char8_t apple_os_version[] = "Mac OS X 10.9"; > > +static const grub_efi_char8_t apple_os_vendor[] = "Apple Inc."; > > + > Can those be optionally su

Re: [PATCH] Add apple_set_os command

2014-01-07 Thread andreas
Am 2014-01-07 14:38, schrieb Vladimir 'φ-coder/phcoder' Serbinenko: On 30.12.2013 17:04, Andreas Heider wrote: +static const grub_efi_char8_t apple_os_version[] = "Mac OS X 10.9"; +static const grub_efi_char8_t apple_os_vendor[] = "Apple Inc."; + Can those be optionally supplied on command lin

Re: [PATCH] Add apple_set_os command

2014-01-07 Thread andreas
Am 2014-01-03 19:38, schrieb SevenBits: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/03/2014 01:46 AM, Vladimir '?-coder/phcoder' Serbinenko wrote: On 31.12.2013 00:11, SevenBits wrote: On Monday, December 30, 2013, Andreas Heider wrote: The EFI on current macbooks configures hardware

[patch] arm64: set correct length of device path end entry

2014-01-07 Thread Leif Lindholm
The length of the Device Path End entry in the grub_linux_boot() funtcion is incorrectly set to 0. This triggers an assert failure in debug builds of Tianocore. The correct length is 4 bytes (1 byte type, 1 byte subtype, 2 bytes length). Reported-by: Mark Salter diff --git a/grub-core/loader/ar

Re: [patch] arm64: set correct length of device path end entry

2014-01-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Go ahead. On 07.01.2014 18:06, Leif Lindholm wrote: > The length of the Device Path End entry in the grub_linux_boot() > funtcion is incorrectly set to 0. This triggers an assert failure > in debug builds of Tianocore. > > The correct length is 4 bytes (1 byte type, 1 byte subtype, > 2 bytes lengt

Re: [patch] arm64: set correct length of device path end entry

2014-01-07 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 07.01.2014 18:06, Leif Lindholm wrote: > The length of the Device Path End entry in the grub_linux_boot() > funtcion is incorrectly set to 0. This triggers an assert failure > in debug builds of Tianocore. > > The correct length is 4 bytes (1 byte type, 1 byte subtype, > 2 bytes length). > > R

Re: booting btrfs

2014-01-07 Thread Chris Murphy
On Jan 1, 2014, at 10:17 PM, Michael Chang wrote: > > We snapshot /boot for kernel and initrd, otherwise the rollback would > encounter problem of incompatible userland and kernel/kernel modules. > And we need the ability to rollback them in terms of usefulness. Of course, understood. core.img

Re: [PATCH] Skip Apple ghosts

2014-01-07 Thread Andrey Borzenkov
В Вт, 24/12/2013 в 14:26 +0100, Vladimir 'φ-coder/phcoder' Serbinenko пишет: > Hello, all. It was discovered that on macs sometimes firmware defines > ghost disks with vendor suffix. E.g. > /ACPI(a0341d0,0)/PCI(2,1f)/UnknownMessaging(12)/EndEntire > is a normal disks with partitions presented with

Re: [PATCH] Skip Apple ghosts

2014-01-07 Thread Andrey Borzenkov
В Вт, 24/12/2013 в 14:26 +0100, Vladimir 'φ-coder/phcoder' Serbinenko пишет: > Hello, all. It was discovered that on macs sometimes firmware defines > ghost disks with vendor suffix. E.g. > /ACPI(a0341d0,0)/PCI(2,1f)/UnknownMessaging(12)/EndEntire > is a normal disks with partitions presented with

[PATCH] add part_apple to EFI rescue image to fix missing prefix

2014-01-07 Thread Andrey Borzenkov
On Mac rescue image is booted from HFS+ partition, so bootpath looks like /ACPI(a0341d0,0)/PCI(1,1f)/ATAPI(0,0,0)/HD(3,5d1,ca3,,20,0)/EndEntire grub fails to find device for this path because it cannot scan partition table. The simplest fix is to add part_apple by default. --- ut

Re: [PATCH] Add apple_set_os command

2014-01-07 Thread SevenBits
On Jan 7, 2014, at 10:19 AM, andr...@heider.io wrote: > Am 2014-01-03 19:38, schrieb SevenBits: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> On 01/03/2014 01:46 AM, Vladimir '?-coder/phcoder' Serbinenko wrote: >>> On 31.12.2013 00:11, SevenBits wrote: On Monday, December 30, 2013, A