[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add --memdisk parameter to grub-install

From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: Add --memdisk parameter to grub-install
Date: Mon, 25 Feb 2013 23:06:23 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

>It works this way:

>grub rescue> set
>grub rescue> set root=memdisk
>grub rescue> set prefix=($root)/
>grub rescue> ls /
>grub rescue> insmod normal
>grub rescue> normal
If you have to type this then obviously patch isn't finished work. You
need to point prefix to right point and have grub.cfg find and source
the definite grub.cfg.
You also need to include other files in memdisk like fonts and
translations. Having multi-prefix (prefix=a:b:c) and helpers to load
files from any of them is a possibility as long as it doesn't increase
core size.
Also you need to make a list of platforms which don't support this
approach. Currently:
Inherently: i386_pc
Due to choice of memory map: i386_coreboot, i386_multiboot,
i386_ieee1275, i386_qemu.
This should also be extended to grub-mknetdir.
It should also probably share more code with grub-mkstandalone.
On 06.02.2013 23:41, Paulo Flabiano Smorigo/Brazil/IBM wrote:

> -fi
> +additional_options=
> +if [ x"$config_opt_file" != x ]; then
> +     additional_options="-c \"${config_opt_file}\""
> +fi
> +if [ x"$memdisk_img" != x ]; then
> +     additional_options="${additional_options} -m ${memdisk_img}"
> +fi
> +

This breaks orribly in presence of whitespaces.

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]