Re: [PATCH v2 1/6] ia64: Remove support

2023-05-11 Thread Lennart Sorensen
On Fri, May 12, 2023 at 12:09:14AM +0200, Ard Biesheuvel wrote: > Thanks, this could be helpful if we manage to find people that have > the bandwidth to keep working on this. Would you be willing to spend > time and development effort yourself on building and installing GRUB > from the upstream

Re: 3rd gen Ipad to Boot Linux

2023-01-11 Thread Lennart Sorensen
On Wed, Jan 11, 2023 at 10:48:30AM -0800, Mr. Disorganized wrote: > I am just curious if GNU GRUB has the ability to boot onto an Apple device > like a 3rd gen Ipad to load Ubuntu or Kali. I just want to see if it is > possible. As far as I know, you need openiboot for those devices, assuming

Re: [PATCH 0/6] Dynamic allocation of memory regions and IBM vTPM v2

2022-12-02 Thread Lennart Sorensen
On Thu, Dec 01, 2022 at 03:47:30PM +0100, Daniel Kiper wrote: > What do you mean by "supported"? It is build tested and, AIUI, all "make > check" > tests pass. Though I am not sure anybody uses this kinda weird target. Well, > I think I knew but I forgot... :-) I thought OLPC used openfirware on

Re: How to boot Windows when Bitlocker enabled with key sealed in TPM

2022-02-12 Thread Lennart Sorensen
On Thu, Feb 10, 2022 at 02:13:43PM -0700, Chris Murphy wrote: > If you boot windows once a day, it's changing what, 1-4 bytes, per > day? The entry for Windows is already in NVRAM, it doesn't need to be > written each time. You're only changing the BootNext value that points > to the Windows entry

Re: How to boot Windows when Bitlocker enabled with key sealed in TPM

2022-02-10 Thread Lennart Sorensen
On Thu, Feb 10, 2022 at 11:46:33AM -0700, Chris Murphy wrote: > On Thu, Feb 10, 2022 at 10:18 AM Lennart Sorensen > wrote: > > > > On Mon, Feb 07, 2022 at 04:48:43PM -0700, Chris Murphy wrote: > > > One idea I've heard floated is, having GRUB alter efivars such tha

Re: How to boot Windows when Bitlocker enabled with key sealed in TPM

2022-02-10 Thread Lennart Sorensen
On Mon, Feb 07, 2022 at 04:48:43PM -0700, Chris Murphy wrote: > One idea I've heard floated is, having GRUB alter efivars such that > BootNext is changed to do a one time boot of Windows, instead of using > chainloader. If BIOS, use chainloader as now. If UEFI, set BootNext > efi variable? This

Re: About the code style requirement

2021-09-29 Thread Lennart Sorensen
On Wed, Sep 29, 2021 at 03:04:59PM +0800, Qu Wenruo via Grub-devel wrote: > Oh, didn't know there would be license problem. There often is. :) > Then it would be complex. > > Quite some code is directly copied from kernel without modification, those > should still be GPL-2.0 only. > > For code

Re: [PATCH v2] i386-pc: build verifiers API as module

2021-03-23 Thread Lennart Sorensen
On Tue, Mar 23, 2021 at 05:33:12PM +0100, Daniel Kiper wrote: > How long are you going to support such systems? 1, 5 or 10 years? This > approach makes GRUB upstream as a hostage of small MBR gaps users. > Anyway, I think we have to make users aware that small MBR gaps are not > supported any

Re: [SECURITY PATCH 116/117] templates: Disable the os-prober by default

2021-03-03 Thread Lennart Sorensen
On Wed, Mar 03, 2021 at 07:43:23PM +0100, John Paul Adrian Glaubitz wrote: > I'm not sure I'm able to follow the motivation to keep the naming scheme > as is. > > If I have an option called "DISABLE_FEATURE_X", then I would expect setting > it to "true" would mean that the feature is disabled not

Re: [SECURITY PATCH 116/117] templates: Disable the os-prober by default

2021-03-03 Thread Lennart Sorensen
On Wed, Mar 03, 2021 at 02:13:04PM +0100, Daniel Kiper wrote: > On Tue, Mar 02, 2021 at 10:49:16PM +0100, Didier Spaier wrote: > > Le 02/03/2021 à 19:02, Daniel Kiper a écrit : > > > From: Alex Burmashev > > > diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in > > > index

Re: [PATCH] password: Fix backspace in username prompt

2021-03-01 Thread Lennart Sorensen
On Mon, Mar 01, 2021 at 10:58:40AM +0300, Egor Ignatov wrote: > From: Egor Ignatov > > Make backspace work in superuser login prompt. > > The problem was that bidi logical to visual ignored BN type, > so you couldn't print control characters. > > Use grub_printf() 3 times, because a line wrap

Re: Atomic writing to environment file

2021-02-17 Thread Lennart Sorensen
On Tue, Feb 16, 2021 at 08:44:43AM +0100, Claudius Heine wrote: > we were looking into using grub to implement an A/B system update mechanism > [1] and came to the point where we need to change the grub environment from > user space (grub-editenv) and from grub itself (save_env). > > We looked at

Re: How-to make grub play a sound when it asks a passphrase and/or in case of an issue.

2021-02-04 Thread Lennart Sorensen
On Wed, Feb 03, 2021 at 10:54:28PM -0800, Hanson Char wrote: > I don't know if Grub currently has any sound or accessibility support. How > about having a config option to send some ASCII bell characters "\x07" to > the terminal upon the events that you described? That would make a sound, > but

Re: Why Lua support was removed

2020-10-14 Thread Lennart Sorensen
On Wed, Oct 14, 2020 at 04:33:31PM +0800, Tianjia Zhang wrote: > I want to use lua to do some logic on grub, which needs to be embedded in > the lua interpreter. I found that grub supports lua as early as 2009, and > only a few months later, the lua was removed. I checked the Changelog and > git

Re: [PATCH v2] version: add a module to get GRUB version

2020-04-15 Thread Lennart Sorensen
On Wed, Apr 15, 2020 at 02:04:36PM +0200, Flavio Suligoi wrote: > Sometimes, writing a custom grub.cfg configuration file, > especially with embedded systems, it is indispensable > to know the version of the running GRUB. > This is essential for every automatic sw update procedure. You can't

Re: [PATCH v2 08/12] kern: Make grub_error() more verbose

2020-03-06 Thread Lennart Sorensen
On Fri, Mar 06, 2020 at 06:10:58PM +0100, Didier Spaier wrote: > My mistake, I should have written starting at 24 KiB as that is the > start address of the first usable LBA if I read correctly the UEFI > specification. Am I wrong? > > Thanks for the heads-up. I was wrong about 32KB, it is 32

Re: [PATCH v2 08/12] kern: Make grub_error() more verbose

2020-03-06 Thread Lennart Sorensen
On Fri, Mar 06, 2020 at 11:12:14AM -0600, Bruce Dubbs wrote: > Just a terminology issue here. Please don't call it a boot partition. It > conflicts with those who mount /boot as a separate partition. Please call > it a grub partition. Well the official name is "BIOS boot partition", so I can

Re: [PATCH v2 08/12] kern: Make grub_error() more verbose

2020-03-06 Thread Lennart Sorensen
On Fri, Mar 06, 2020 at 05:30:23PM +0100, Didier Spaier wrote: > That'd be just one less thing to care about for the Slint installer > in case of an 'automatic' installation, nothing major. > > Do you confirm that a Bios Boot partition starting at 1 KiB > and ending at 1 MiB won't overlap the

Re: Can the grub2.02 improve the limit of initrd size in 64-bit system?

2019-07-31 Thread Lennart Sorensen
On Tue, Jul 30, 2019 at 10:50:23AM +0800, 电子科技大学-张旭霞 wrote: > Hi All, > > environment : X86-64 , kernel 3.16.0(64-bit support),grub2.02 > > I compile the grub2.02 by default. And the grub boots the linux kernel with > 32-bit boot protocol.(Documents/X86/boot.txt) > > I want to use the initrd

Re: grub2.02 can boot the linux kernel with 64-bit boot protocol

2019-07-26 Thread Lennart Sorensen
On Fri, Jul 26, 2019 at 08:09:11AM +, Sherry Zhang(BJ-RD) wrote: > Hi All, > I use the grub2.02 to boot the 64-bit kernel of Kernel 3.16.0. The grub2.02 > use the 32-bit boot protocol and the grub is also 32-bit. > But I see that grub can use the 64-bit boot protocol in the >

Re: Grub2 Reiser4 support

2018-11-30 Thread Lennart Sorensen
On Wed, Nov 28, 2018 at 04:31:07PM +0100, Sebastien wrote: >     I couldn't find information easy to understand regarding Grub2 > Reiser4 support, hence my questions : > > Does Grub2 support booting off a Reiser4 partition ? > > If yes, starting which grub2 version ? > > If yes, what must be

Re: [PATCH 2/4] Accept Both ESC and F8 as user interrupt keys

2018-03-28 Thread Lennart Sorensen
On Wed, Mar 28, 2018 at 05:06:53PM +0200, Hans de Goede wrote: > Hmm, well people will still be able to use ESC to get the grub boot > menu, rather then the firmware boot-menu on those. > > The problem is that our current check for ESC only approach is problematic > because it conflicts with the

Re: [PATCH 2/4] Accept Both ESC and F8 as user interrupt keys

2018-03-28 Thread Lennart Sorensen
On Wed, Mar 28, 2018 at 04:50:26PM +0200, Hans de Goede wrote: > On most Bay Trail, Cherry Trail and Apollo Lake devices the ESC key is > the hotkey to enter the BIOS/EFI setup screen. > > This makes it hard for the user to show the grub-menu when it is hidden > and a short timeout is used,

Re: Maturity of GRUB on powerpc/ppc64?

2017-10-04 Thread Lennart Sorensen
On Wed, Oct 04, 2017 at 06:36:33PM +0200, John Paul Adrian Glaubitz wrote: > Are you sure? The parted manual seems to say otherwise: > > > http://www.hep.by/gnu/parted/set.html > > And I can fix the problem by manually running the parted command: > > set prep 1 on No I am not sure. I

Re: debian-installer: please default to grub-ieee1275 on powerpc instead of yaboot

2017-09-25 Thread Lennart Sorensen
On Mon, Sep 25, 2017 at 03:15:15PM +, luigi burdo wrote: > I had in past issue with grub on opensuse, i have a G5 970MP. > > Adrian make a great present to us, making us have again debian working on BE . > > please do not made again it not usable on our hardware choosing grub. I have had

Re: debian-installer: please default to grub-ieee1275 on powerpc instead of yaboot

2017-09-25 Thread Lennart Sorensen
On Sat, Sep 23, 2017 at 02:25:32PM +0200, Frank Scheiner wrote: > Do we have information about how it looks (e.g. is it Grub by default and > then, where is it installed?) for a POWER8 machine with Debian Stretch > (ppc64le) installed from an installer image? > > If also working for ppc64 and

Re: debian-installer: please default to grub-ieee1275 on powerpc instead of yaboot

2017-09-22 Thread Lennart Sorensen
On Fri, Sep 22, 2017 at 11:49:38AM +0200, John Paul Adrian Glaubitz wrote: > I was just wondering whether it makes sense for GRUB to use MS-DOS partition > on a Mac, thinking it may be better than Mac partition tables, I was > basically just thinking aloud. If it's not necessary for GRUB to work >

Re: debian-installer: please default to grub-ieee1275 on powerpc instead of yaboot

2017-09-21 Thread Lennart Sorensen
On Thu, Sep 21, 2017 at 10:37:43PM +0200, John Paul Adrian Glaubitz wrote: > I have one POWER7 machine that has been provided to me by IBM for testing > purposes and to host one of our buildds. I have performed a test installation > of openSUSE Tumbleweed on it. > > Here's the partitioning scheme

Re: debian-installer: please default to grub-ieee1275 on powerpc instead of yaboot

2017-09-21 Thread Lennart Sorensen
On Thu, Sep 21, 2017 at 06:26:10PM +0200, John Paul Adrian Glaubitz wrote: > Ok, good to know. What about GPT partition tables? On ppc64el, i.e. POWER8 > and newer, the default labels are all GPT. Any idea which is the earliest > POWER5+ machine which supports GPT or should we just assume MS-DOS >

Re: debian-installer: please default to grub-ieee1275 on powerpc instead of yaboot

2017-09-21 Thread Lennart Sorensen
On Thu, Sep 21, 2017 at 02:49:53PM +0200, Frank Scheiner wrote: > On 09/21/2017 02:21 PM, John Paul Adrian Glaubitz wrote: > > [...] > > What we need are people who are willing to extensively test d-i > > images with GRUB on powerpc and ppc64 and report back. > > I can offer to test with all

Re: Grub-devel Digest, Vol 163, Issue 18

2017-09-20 Thread Lennart Sorensen
On Wed, Sep 20, 2017 at 04:59:58PM +, Oleksii Kurochko wrote: > After all there is only one interrupt controller, keyboard, PCI bus, > video card, etc (at least usually). > > Generally this is not problem because of each CPU has own APIC and we can > handle some interrupts in one OS and some

Re: Boot 2 Linux simultineously

2017-09-20 Thread Lennart Sorensen
On Wed, Sep 20, 2017 at 12:20:54PM +, Oleksii Kurochko wrote: > I want to boot on each processor ( 2 CPUs ) Linux kernel. > > By fast looking on it I did not see any SMP patches. > Is it some SMP support in the GRUB? You can only boot one OS on a machine unless you use virtualization. After

Re: grub-probe for nested BSD partition on Linux

2017-02-28 Thread Lennart Sorensen
On Tue, Feb 28, 2017 at 09:50:27PM +0300, Andrei Borzenkov wrote: > 28.02.2017 21:31, Lennart Sorensen пишет: > > On Tue, Feb 28, 2017 at 08:13:53PM +0300, Andrei Borzenkov wrote: > >> Sorry? vda7 is 256M, how can you suddenly pretend it is 2G? > >> > >> 10:~ #

Re: grub-probe for nested BSD partition on Linux (was: [PATCH 1/1] add --partuuid to probe)

2017-02-28 Thread Lennart Sorensen
On Tue, Feb 28, 2017 at 08:13:53PM +0300, Andrei Borzenkov wrote: > Sorry? vda7 is 256M, how can you suddenly pretend it is 2G? > > 10:~ # fdisk -l /dev/vda > Disk /dev/vda: 5 GiB, 5368709120 bytes, 10485760 sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512

Re: explicit refresh?

2017-02-08 Thread Lennart Sorensen
On Wed, Feb 08, 2017 at 09:29:36AM +0100, Laszlo Ersek wrote: > Hi, > > this is a dumb question and it's not appropriate for a development > mailing list, but I couldn't find "grub-user" or "grub-users", so I'll > ask here anyway... > > My laptop is connected to my workstation via USB-serial

Re: [PATCH] Add fwconfig command

2017-01-24 Thread Lennart Sorensen
On Tue, Jan 24, 2017 at 07:18:13PM +0100, Thomas Schmitt wrote: > One should emphasize that the FSF when designing new license versions only > considers compatibility to older FSF licenses if they bear the "or later" > clause. > > E.g. it is not possible to combine GPL version 2 software with

Re: sgi O2 supported?

2017-01-09 Thread Lennart Sorensen
On Sat, Jan 07, 2017 at 09:11:54PM +0100, Waldemar Brodkorb wrote: > Grub is cross-compiled for platform arc. > Isn't arc the right choice? I thought ARC/ARCS is the prom > inside the SGI machine. > > http://cgit.openadk.org/cgi/cgit/openadk.git/tree/package/grub/Makefile Well mips-arc should

Re: "Illegal Instruction" error in grub_script_comments

2016-10-19 Thread Lennart Sorensen
On Wed, Oct 19, 2016 at 11:32:08AM -0400, Matthew Whitehead wrote: > Lennart, > I think I found the problem. I don't know what kernel.img does, but I'm > guessing it is an essential part of grub2, loading after the 1st and 2nd > stage loaders? I disassembled the binary using 'objdump -D -b

Re: "Illegal Instruction" error in grub_script_comments

2016-10-18 Thread Lennart Sorensen
On Mon, Oct 17, 2016 at 02:34:16PM -0400, tedheadster wrote: > I am building the older grub2-1.98+20100804 under the similarly old Debian > 'squeeze' distribution. However, I bet the error persists with newer > version. This is because I am building it on a true Intel 80486 and I don't > thing the

Re: Grub2 please help

2016-07-25 Thread Lennart Sorensen
On Sun, Jul 24, 2016 at 07:38:53PM +0200, slavi...@seznam.cz wrote: > I  am searching and finding info how chainloading whole ISO to using his  > original bootloader. As well as Ubuntu ISO, Puppy ISO, Windows install ISO  > and similarly. I spent much time and i did not successful and erudite man

Re: [Xen-devel] [PATCH v3 02/10] xen: reduce number of global variables in xen loader

2016-02-19 Thread Lennart Sorensen
On Fri, Feb 19, 2016 at 05:59:27AM +0100, Juergen Gross wrote: > On 18/02/16 18:00, Lennart Sorensen wrote: > > On Thu, Feb 18, 2016 at 11:34:49AM +0100, Juergen Gross wrote: > >> On 18/02/16 11:22, Daniel Kiper wrote: > >>> On Wed, Feb 17, 2016 at 06:19:2

Re: [PATCH v3 02/10] xen: reduce number of global variables in xen loader

2016-02-18 Thread Lennart Sorensen
On Thu, Feb 18, 2016 at 11:34:49AM +0100, Juergen Gross wrote: > On 18/02/16 11:22, Daniel Kiper wrote: > > On Wed, Feb 17, 2016 at 06:19:29PM +0100, Juergen Gross wrote: > >> The loader for xen paravirtualized environment is using lots of global > >> variables. Reduce the number by making them

Re: Mouse support for just the wheel and left button.

2015-12-17 Thread Lennart Sorensen
On Thu, Dec 17, 2015 at 01:34:10PM +, John Murphy wrote: > I'm able to scroll through entries on pages in my BIOS using the wheel > (Asus Maximus VII Formula). Not sure if that means anything. That probably doesn't mean anything. The firmware can choose to handle the mouse in any way it

Re: Anonymous commit (empty Author and Committer)

2015-11-02 Thread Lennart Sorensen
On Sat, Oct 31, 2015 at 08:24:06AM +0300, Andrei Borzenkov wrote: > If we decide to fix this commit it is better done now, while it is the last > one. It is annoying but do you have suggestion how it can be done > differently? Well the only options are: 1) Leave it alone 2) Break the tree of

Re: Anonymous commit (empty Author and Committer)

2015-10-30 Thread Lennart Sorensen
On Fri, Oct 30, 2015 at 09:19:19PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 30.10.2015 21:09, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > > On 30.10.2015 21:06, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > >> On 30.10.2015 15:26, Andrei Borzenkov wrote: > >>> See > >>>

Re: Grub-devel Digest, Vol 140, Issue 25

2015-10-20 Thread Lennart Sorensen
On Tue, Oct 20, 2015 at 06:42:07AM +0300, Andrei Borzenkov wrote: > Legacy BIOS is expected to do it as well. It provides the device number it booted from? Hmm, yeah I see it is stored in the DL register. > "BIOS" is often colloquially used for "firmware of my system". True, but it isn't, and

Re: Grub-devel Digest, Vol 140, Issue 25

2015-10-19 Thread Lennart Sorensen
On Mon, Oct 19, 2015 at 07:55:23PM +0300, Andrei Borzenkov wrote: > GRUB reads grub.cfg either from the device BIOS had booted from (sans > serious BIOS bugs) or from device where UUID of /boot/grub is found. At > least if this GRUB was installed by grub-install. So order of devices in > BIOS is

Re: Grub-devel Digest, Vol 140, Issue 25

2015-10-19 Thread Lennart Sorensen
On Mon, Oct 19, 2015 at 09:05:47AM +, Stuart Weaver wrote: > Hi Manoel, > > Many thanks for your detailed answer and quick response! I've looked into > using this but I don't think it will stop the root problem of GRUB loading > the wrong grub.cfg file. Is there a way of using the 'search'

Re: i386-pc target and no block lists

2015-08-14 Thread Lennart Sorensen
On Fri, Aug 14, 2015 at 08:22:28PM +0300, Andrei Borzenkov wrote: On 14.08.2015 19:44, Lennart Sorensen wrote: Certainly Debian by default installs grub to the MBR (aka the disk), not to the partition. I would be surprised if any other distribution does it differently. openSUSE

Re: i386-pc target and no block lists

2015-08-14 Thread Lennart Sorensen
On Fri, Aug 14, 2015 at 02:29:23PM +0200, Olaf Hering wrote: Last night I finally got around to update my grub1 chainloader to grub2. During install of the bootloader I ran into this issue: grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using

Re: [PATCH] configure.ac: support -fdiagnostics-color=always

2015-04-07 Thread Lennart Sorensen
On Mon, Apr 06, 2015 at 09:24:26PM +0300, Andrei Borzenkov wrote: В Mon, 6 Apr 2015 19:33:30 +0200 Michael Zimmermann sigmaepsilo...@gmail.com пишет: --- configure.ac | 9 + 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index 891c14f..1f8cb2c

Re: [PATCH 05/18] efi: split efi_enabled to efi_platform and efi_loader

2015-03-27 Thread Lennart Sorensen
On Fri, Mar 27, 2015 at 02:04:22PM +, Jan Beulich wrote: On 27.03.15 at 14:53, andrew.coop...@citrix.com wrote: On 27/03/15 13:43, Jan Beulich wrote: On 27.03.15 at 14:32, daniel.ki...@oracle.com wrote: On Fri, Feb 20, 2015 at 04:17:35PM +, Jan Beulich wrote: On 30.01.15 at

Re: [Xen-devel] [PATCH 05/18] efi: split efi_enabled to efi_platform and efi_loader

2015-03-27 Thread Lennart Sorensen
On Fri, Mar 27, 2015 at 02:19:44PM +, Jan Beulich wrote: On 27.03.15 at 15:09, lsore...@csclub.uwaterloo.ca wrote: On Fri, Mar 27, 2015 at 02:04:22PM +, Jan Beulich wrote: On 27.03.15 at 14:53, andrew.coop...@citrix.com wrote: On 27/03/15 13:43, Jan Beulich wrote: On 27.03.15

Re: [PATCH 1/5] multiboot2: Fix information request tag size calculation

2015-01-30 Thread Lennart Sorensen
On Fri, Jan 30, 2015 at 01:52:09PM -0700, Ben Hildred wrote: Why do you want the size of a pointer instead of the size of the structure? Isn't *request_tag the dereferenced pointer, and hence is the size of the structure, where as before it was the size of a pointer? -- Len Sorensen On Fri,

Re: IDE compilation

2014-11-18 Thread Lennart Sorensen
On Tue, Nov 18, 2014 at 04:06:04PM +0100, Michael Heng wrote: htmlhead/headbodydiv style=font-family: Verdana;font-size: 12.0px;div div style=font-family: Verdana;font-size: 12.0px; divHello,/div divnbsp;/div divI want to know what a IDE do you all use? I just have download the grub 2

Re: Has anyone integrate openSSL into GRUB?

2014-08-31 Thread Lennart Sorensen
On Sat, Aug 30, 2014 at 10:50:51PM -0700, Seth Goldberg wrote: Licenses can always be modified with exceptions. I believe he was mainly asking about from a technical perspective, though. Well given grub is a gnu project, I highly doubt any exception would be considered. So no, licenses can

Re: Has anyone integrate openSSL into GRUB?

2014-08-29 Thread Lennart Sorensen
On Fri, Aug 29, 2014 at 03:55:43PM -0700, Mat Troi wrote: Just wondering if anyone has tried to integrate openSSL into GRUB? That would be a license conflict disaster. -- Len Sorensen ___ Grub-devel mailing list Grub-devel@gnu.org

Re: How to exit from linux kernel and return to then grub?

2014-05-18 Thread Lennart Sorensen
On Sun, May 18, 2014 at 01:33:15PM +0800, Z C wrote: If I boot into a linux kernel using a grub command like linux /vmlinuz; inirtd /initrd; boot, how do I shutdown linux itself (but do not power off or reboot the computer hardware) and return back to the grub directly? What I meant is

Re: grub mishandles corrupt/missing primary GPT

2013-10-24 Thread Lennart Sorensen
On Wed, Oct 23, 2013 at 09:07:21PM -0600, Chris Murphy wrote: While technically a violation of the UEFI spec, I think this can be worked around by considering the disk GPT if the first entry in the MBR is type 0xEE. I don't know of a hybrid MBR implementation where an entry other than the

Re: How to pick a kernel to boot ?

2013-10-24 Thread Lennart Sorensen
On Thu, Oct 24, 2013 at 04:46:19PM +0200, Lukáš Czerner wrote: Hi, I have a simple question about grub2 which I can not find satisfying answer to. What is a proper way to pick a kernel to boot from in case I have multiple kernels installed ? Note that picking the right kernel from the

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Lennart Sorensen
On Thu, Sep 26, 2013 at 03:08:54PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: Hello, all. Recently I made some order in hostdisk.c and getroot.c involving splitting in OS-specific parts. In the same time I added WinAPI version of getroot/hostdisk allowing grub-probe to work on

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Lennart Sorensen
On Thu, Sep 26, 2013 at 03:59:03PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: What kind of changes was it? Could we make them into some (possibly hidden) options? Well for quite a while the logic was assuming apple powerpc, and it needed rework to make it work on the IBM powerpc

Re: [RFC] grub-install C rewrite

2013-09-26 Thread Lennart Sorensen
On Thu, Sep 26, 2013 at 08:49:52PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: This is interesting testcase which wasn't brought before. This would potentially involve creating several core.img or forcing UUID when using multiple devices. Again, pretty easy in C and hairy in bash due

Re: grub2 boot freedos kernel.sys

2013-08-30 Thread Lennart Sorensen
On Fri, Aug 30, 2013 at 10:05:12AM +0300, Beeblebrox wrote: Len Vladimir: I just sent a repeat of the first message by mistake - please disregard. You are trying to make it way too complicated. DOS doesn't like complicated. I'm fine with that. I just went about it in that manner

Re: grub2 boot freedos kernel.sys

2013-08-28 Thread Lennart Sorensen
On Wed, Aug 28, 2013 at 12:04:31PM +0300, Beeblebrox wrote: I would like to know if the following is possible: * USB thumb drive has grub-1.98 on hd(0,1) gpt layout (boot-bios is hd0,2) * hd(0,1)/boot/freedos has files autoexec.bat, command.com, config.sys, kernel.sys, sys.com Un-tarred

Re: grub2 boot freedos kernel.sys

2013-08-28 Thread Lennart Sorensen
On Wed, Aug 28, 2013 at 07:21:42PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: On 28.08.2013 11:04, Beeblebrox wrote: chainloader --ebx=0x0180 (hd0,1)/boot/freedos/kernel.sys The command to load freedos kernel is freedos. It can load kernel from any place accessible by GRUB. As to

Re: [grub-devel] loongson-2f mini-pc (fuloong) elf image generation.

2013-07-12 Thread Lennart Sorensen
On Fri, Jul 12, 2013 at 06:25:58PM +0200, Aleš Nesrsta wrote: Hi Vladimir, - what was the reason of the OHCI problem on Loongson? (I don't see any details of solution below nor the patch... ?) I thought a lot of those systems use the AMD CS5536 south bridge, which should be perfectly normal

Re: [RFC] Moving from Bazaar (bzr) to git

2013-06-25 Thread Lennart Sorensen
On Tue, Jun 25, 2013 at 04:57:25AM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: No flame-war messages please. You can voice your support pro or contra based on convenience for you but please don't transform this into flame war. I didn't intend to. I was only trying to say I find the

Re: [RFC] Moving from Bazaar (bzr) to git

2013-06-24 Thread Lennart Sorensen
On Sat, Jun 22, 2013 at 04:52:04PM -0500, Bruce Dubbs wrote: Personally, I prefer subversion, but I'm not a GRUB developer. The choice of version control can be similar emacs/vi or Bourne Shell/C Shell, so it really should be the choice of the primary developers. Using Google for 'git vs

Re: horizontal boot menu

2013-05-31 Thread Lennart Sorensen
On Fri, May 31, 2013 at 12:32:56PM +0530, kiran ps wrote: is there any way to make horizontal boot menu I remember someone working on it in the past with some patches suggested, but I don't think they were ever sufficiently done to get accepted. -- Len Sorensen

Re: Where is GRUB development?

2013-05-13 Thread Lennart Sorensen
On Mon, May 13, 2013 at 09:24:34AM -0700, Bruce Korb wrote: I've been Googling around to no particular avail. I have this _really_ difficult problem. I need to boot into single user mode and GRUB2 has made it so difficult that I am unable to accomplish that. I am sure there are reasons for

Re: Where is GRUB development?

2013-05-13 Thread Lennart Sorensen
On Mon, May 13, 2013 at 10:09:41PM +0400, Andrey Borzenkov wrote: Do you suggest to create extra menu entries for every possible combination of kernel parameters? Yes. It's not grub's job to know everything about a linux kernel, or bsd kernel or whatever else you might want to pass. Runlevels

Re: Where is GRUB development?

2013-05-13 Thread Lennart Sorensen
On Mon, May 13, 2013 at 11:43:50AM -0700, Bruce Korb wrote: Well, my distro (openSuSE) generates a special entry for rescue mode, too. But it rescues me into run level 5. init 3 will, indeed, drop me back to multi-user and init 1 back to single user, but without a reboot, various

Re: Where is GRUB development?

2013-05-13 Thread Lennart Sorensen
On Mon, May 13, 2013 at 12:39:39PM -0600, Chris Murphy wrote: Slightly different are the syntax changes between versions of GRUB 1.xx that caused even grubby to puke. The difference in syntax between 0.97 and 2 are monumental, unless you're a scripting nerd. If you're a regular user, the

Re: [PATCH 3/7] Initial support for U-Boot platforms

2013-04-03 Thread Lennart Sorensen
On Wed, Apr 03, 2013 at 04:24:51PM +, Leif Lindholm wrote: Because I am an overtly paranoid person. :) That's not paranoid. That's just inefficient. The length argument has to be based on the target size, NOT the length of the source. If you want to length of the source, that's what plain

Re: USB3 3TB HDD boot

2013-03-15 Thread Lennart Sorensen
On Thu, Mar 14, 2013 at 08:56:18PM -0600, Chris Murphy wrote: Right, for a 4Kn drive, to read LBA 1 and get the GPT header I'd need: sudo dd if=/dev/disk3 skip=8 count=1 2/dev/null | hexdump -C Wouldn't using 'bs=4096' make things simpler and more obvious? -- Len Sorensen

Re: USB3 3TB HDD boot

2013-03-15 Thread Lennart Sorensen
On Fri, Mar 15, 2013 at 09:59:22AM -0600, Chris Murphy wrote: How would it? These structures are still predicated on a 512 byte block. The MBR is always 512 bytes, but on a 4096/4096 4Kn drive, LBA 0 is 4096 bytes. So if I don't want to see 3584 bytes of useless garbage, I can't set the dd

Re: [3/4] [PATCH] start angle (option of circular_progress) is measured in unusual quantities

2013-03-15 Thread Lennart Sorensen
On Fri, Mar 15, 2013 at 08:52:08PM +0400, Andrey Borzenkov wrote: В Wed, 13 Mar 2013 14:52:13 +0400 Vladimir Testov vladimir.tes...@rosalab.ru пишет: In current state, start angle is measured in parrots, where 1 parrot = 1 / 256 of full circle. With simple patch we can set start

Re: Best practice for new linux block driver device naming?

2013-03-11 Thread Lennart Sorensen
On Fri, Mar 08, 2013 at 05:05:33PM -0600, scame...@beardog.cce.hp.com wrote: We are not expecting to be able to boot from the device in the first iteration, so it's not as if we would need support instantly (not that I imagine we could get it instantly anyway), and it's not clear that it

Re: Best practice for new linux block driver device naming?

2013-03-08 Thread Lennart Sorensen
On Fri, Mar 08, 2013 at 02:07:18PM -0600, scame...@beardog.cce.hp.com wrote: I'm just wondering if there are best pratices for new linux block drivers that are adding new devices nodes of which grub is currently not cognizant. E.g. when we added the HP Smart Array cciss driver to the kernel

Re: Best practice for new linux block driver device naming?

2013-03-08 Thread Lennart Sorensen
On Fri, Mar 08, 2013 at 04:34:28PM -0600, scame...@beardog.cce.hp.com wrote: I get ~4x the IOPSs with a block driver vs. scsi driver due to contention for locks in the scsi mid layer (in scsi_request_fn). It's the difference between the device being worth manufacturing vs. not. Well that

Re: USB3 3TB HDD boot

2013-03-04 Thread Lennart Sorensen
On Mon, Mar 04, 2013 at 08:27:41PM +0400, Bob Lemar wrote: Thank you for your replies. Yes, it is definitely BIOS problems as it doesn't allow to boot from external drive directly (via BIOS boot order settings). It doesn't show this drive at F10 boot menu even after soft reboot. So BIOS

Re: USB3 3TB HDD boot

2013-03-04 Thread Lennart Sorensen
On Mon, Mar 04, 2013 at 08:33:51PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: Not necessarily. 3T drives often use msdos, just with 4K sectors which increases the range of msdos to 16T. Hmm, I suppose that would work. I have never seen one that did that yet, but I don't have that

Re: GRUB and the risk of block list corruption in extX

2013-02-08 Thread Lennart Sorensen
On Fri, Feb 08, 2013 at 06:17:57PM +0100, Martin Wilck wrote: In my case, the reason is a multiboot setup based on chainloading the indiviual installed OS's bootloaders from a central, primary bootloader. This is easily accomplished by installing the individual OS's bootloaders in their

Re: GRUB and the risk of block list corruption in extX

2013-02-08 Thread Lennart Sorensen
On Fri, Feb 08, 2013 at 12:56:52PM -0600, Bruce Dubbs wrote: You don't need an EFI system to give GRUB enough space. You just need to partition the drive so the first partition starts at 1MB instead of sector 63. I think using a GPT partition scheme is quite preferred over the MSDOS scheme

Re: SCO Unix

2013-01-25 Thread Lennart Sorensen
On Fri, Jan 25, 2013 at 04:09:46PM +0100, GervanDijck wrote: Why does FC18 not detect an installed SCO Unix OS , Windows gives no problems. Can you inform me ? Everything with the bootloader goes fine till FC15. With FC16 ,17, and 18 the problems start. Grub does what it is told in the

Re: SCO Unix

2013-01-25 Thread Lennart Sorensen
On Fri, Jan 25, 2013 at 03:06:32PM -0700, Chris Murphy wrote: Fedora 15 and older, is GRUB 0.9x, and the grub.conf was manually produced except for the Fedora entries (initially anaconda, and then after that for kernel updates, grubby). Fedora 16 and newer, it's GRUB 2, and anaconda calls

Re: Multi-boot multiple Windows O/Ses and Linux

2013-01-17 Thread Lennart Sorensen
On Wed, Jan 16, 2013 at 08:19:37PM -0600, Randy Decker wrote: With MS support for XP ending 8Apr2014 I am considering upgrading my software configuration. I currently multiboot Windows XP and Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-35-generic i686) with GRUB 1.99-21 ubuntu 3.7 updated

Re: GRUB for ARM based devices

2012-10-19 Thread Lennart Sorensen
On Fri, Oct 19, 2012 at 07:33:26PM +0100, Adam Hunston wrote: Hello fellow developers, Am looking to compile a version of grub to work on ARM based devices, e.g. the tablet world, is anybody interested in joining me on this, or have any ideas for starting..? I am thinking probably looking at

Re: GRUB for ARM based devices

2012-10-19 Thread Lennart Sorensen
On Fri, Oct 19, 2012 at 07:43:17PM +0100, Adam Hunston wrote: Actually I had not thought of that, and I believe the firmware is expected to be loaded by something like uboot... Well uboot is firmware (and a boot loader). But maybe uboot could load grub, although what is the point in that? (I

Re: pxe failing on grub 2.00 for files larger than 50KiB

2012-09-26 Thread Lennart Sorensen
On Wed, Sep 26, 2012 at 08:30:45AM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: AFAIR it has an endianness bug in tftp code (which was mainly tested on ppc). Please try bzr. Nifty. So endianess bugs can happen both ways. And here I thought us big endian users were always the ones

Re: [PATCH 3/5] msdos-part: allow embedding in extended partition

2012-09-13 Thread Lennart Sorensen
On Thu, Sep 13, 2012 at 01:26:27PM +0800, Michael Chang wrote: Yes. And thanks to the great grub2 would do the check for us. :) For openSUSE supported filesystem, they're all allowing embedding and grub|grub2 works pretty well. I understand the drawbacks and pitfalls that having

Re: [PATCH 3/5] msdos-part: allow embedding in extended partition

2012-09-12 Thread Lennart Sorensen
On Wed, Sep 12, 2012 at 03:25:43PM +0800, Michael Chang wrote: Installing on extended partition is one of scenarios for SUSE and openSUSE installation. If the /boot resides in a logical partition, the installer would propose installing bootloader to extended partition. For historic reasons,

Re: Grub-devel Digest, Vol 103, Issue 1

2012-09-04 Thread Lennart Sorensen
On Sat, Sep 01, 2012 at 09:29:12AM -0700, ivo welch wrote: as CD drives continue to to disappear from computers and as $5 USB drives move towards 16GB range, it would make sense for OS makers to adopt some standard that makes multiple ISO booting feasible and easy...even Windows. grub

Re: chained grub2 derivative bootauto system

2012-08-31 Thread Lennart Sorensen
On Fri, Aug 31, 2012 at 09:19:43AM +1000, Philip Rhoades wrote: Ivo, Interesting idea - I particularly like the idea of booting from arbitrary isos. Too bad that accessing an iso on a usb key is nothing like an actual cd or dvd and the sytem you boot must have support for the fact you put

Re: chained grub2 derivative bootauto system

2012-08-31 Thread Lennart Sorensen
On Thu, Aug 30, 2012 at 02:20:22PM -0700, ivo welch wrote: dear grub2 developers: I have wrestled often with the problems of setting up grub2 on new systems. I know booting is a low-level science in itself, so I don't dare to pretend that I know anything. but I wanted to put up a small

Re: grub 'if' expression with 'or' operation

2012-08-21 Thread Lennart Sorensen
On Tue, Aug 21, 2012 at 08:18:57AM -0700, Loving, Kent wrote: I'm trying to write an expression that will be true if either one of two files are present. The expression must return true if either ntldr or bootmgr is present on the first partition of the first drive. If either one is present

Re: Secure Boot. Why don't you take the wind out of their sails?

2012-07-10 Thread Lennart Sorensen
On Tue, Jul 10, 2012 at 11:29:21AM -0500, Bruce Dubbs wrote: For people who are not experts, trying Linux or another operating system becomes much more intimidating. They have to go into the BIOS and change something. Then, to go back to Windows, they have to do it again. No windows boots

Re: Horizontal menus in grub themes

2012-07-09 Thread Lennart Sorensen
On Mon, Jul 09, 2012 at 01:33:12PM -0600, Gerard Butler wrote: Hey I was just wondering if this would be difficult to implement, and if it would be possible for this to be a feature sometime in the future. It would open up some new theming capabilities, but I understand why you wouldn't want

Re: [PATCH] Skip boot-device set for powerpc-ieee1275

2012-05-29 Thread Lennart Sorensen
On Tue, May 29, 2012 at 08:36:40PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: As I've already told when discussing this patch in fedora, this patch is both dirty and wrong. On most systems it would just make the result unbootable and doesn't provide any compensation for the missing

  1   2   3   >