Andrei Borzenkov schreef op 09-05-2016 8:07:
I'm sorry, this email had gone missing from my system. I just found it
back in the trash, after thinking I had already searched for it.
I'm not sure why no one responds anymore, of course Andrei was the only
one to respond in the first place. I ho
Attached my current working patch.
Also attached some housekeeping.
Not sure if it applies to current git version.
Take from it what you like.diff --git a/grub-core/disk/lvm.c b/grub-core/disk/lvm.c
index 22c7b64..37e715a 100644
--- a/grub-core/disk/lvm.c
+++ b/grub-core/disk/lvm.c
@@ -95,6 +95
Dryden Personalis schreef op 09-05-2016 18:10:
I have reverted to that of the patch (or similar):
if (fs_probe)
{
if (!is_lvm && !fs && !ctx.dest_partmap)
grub_util_error (_("unable to identify a filesystem in %s;
safety check can't be performed"), dest_dev->disk->name);
In partic
Currently:
- still searches in first sector for label, and reports error if found
there
- get_pvh split into regular and one with 2 extra parameters for
first_sector detection
- some documentation
- VG is not required to install
- does not even check for VG, but function is retained
- is lvm r
Andrei Borzenkov schreef op 08-05-2016 11:23:
PV label may be in the first sector. In this case label will be
overwritten later by boot image. This needs additional check.
Pardon my last mail.
ON OLD PV SIGNATURES
If you have an old PV that had a boatloaderarea, then wip
Andrei Borzenkov schreef op 09-05-2016 8:07:
No, I do not want to change it at all. It should remain as is and
always
probe for FS so that test below actually works
But its output makes no sense, there cannot be a filesystem in a PV. It
could check for existence of VG AND LV AND filesystem b
08.05.2016 16:01, Dryden Personalis пишет:
>
>>> -if (fs_probe)
>>> +if (!is_lvm && fs_probe)
>>
>> No, we want to probe for FS here to eliminate corner case of both PV and
>> FS metadata.
>
> You mean you want to change it to:
>
No, I do not want to change it at all. It should remain a
Andrei Borzenkov schreef op 08-05-2016 11:23:
PV label may be in the first sector. In this case label will be
overwritten later by boot image. This needs additional check.
Pardon my last mail.
ON OLD PV SIGNATURES
If you have an old PV that had a boatloaderarea, then wip
Dryden Personalis schreef op 08-05-2016 19:16:
I just wasted 2 hours trying to get GRUB_UTIL to work and failing.
I am just not always that brilliant.
Why on earth is that flag in there? If you enable it, stuff won't
compile anymore. And I merely needed to turn on verbose output for
grub-in
Andrei Borzenkov schreef op 08-05-2016 10:47:
08.05.2016 09:05, Andrei Borzenkov пишет:
+#ifdef GRUB_UTIL
+int
+grub_util_is_lvm(grub_disk_t disk)
+{
+ struct grub_diskfilter_pv_id id;
+ struct grub_diskfilter_vg *vg;
+ grub_disk_addr_t start_sector;
+ vg = grub_lvm_detect(disk, &id, &start
Andrei Borzenkov schreef op 08-05-2016 10:47:
08.05.2016 09:05, Andrei Borzenkov пишет:
+#ifdef GRUB_UTIL
+int
+grub_util_is_lvm(grub_disk_t disk)
+{
+ struct grub_diskfilter_pv_id id;
+ struct grub_diskfilter_vg *vg;
+ grub_disk_addr_t start_sector;
+ vg = grub_lvm_detect(disk, &id, &start
Andrei Borzenkov schreef op 08-05-2016 11:23:
08.05.2016 07:53, Dryden Personalis пишет:
+if (is_lvm)
+ err = grub_util_lvm_embed (dest_dev->disk, &nsec, maxsec,
+GRUB_EMBED_PCBIOS, §ors);
PV label may be in the first sector. In this case label will be
Andrei Borzenkov schreef op 08-05-2016 8:05:
Did you actually test it by installing GRUB on PV? Does it boot? Did
you
test it both with unpartitioned disk and PV in partition?
Hi Andrei,
I must say I have for the most part just copied the patch as it was, and
just tried to fix it so that th
08.05.2016 07:53, Dryden Personalis пишет:
> +if (is_lvm)
> + err = grub_util_lvm_embed (dest_dev->disk, &nsec, maxsec,
> +GRUB_EMBED_PCBIOS, §ors);
PV label may be in the first sector. In this case label will be
overwritten later by boot image. This needs
08.05.2016 09:05, Andrei Borzenkov пишет:
>>
>> +#ifdef GRUB_UTIL
>> +int
>> +grub_util_is_lvm(grub_disk_t disk)
>> +{
>> + struct grub_diskfilter_pv_id id;
>> + struct grub_diskfilter_vg *vg;
>> + grub_disk_addr_t start_sector;
>> + vg = grub_lvm_detect(disk, &id, &start_sector);
>> + if (!
08.05.2016 07:53, Dryden Personalis пишет:
> I updated this guy's patch to work with 2.02 beta 2, at least.
>
> I've just worked on the version that gets downloaded and unpacked on
> Kubuntu / Ubuntu 16.04.
>
> One part of the patch didn't apply because apparently some tabs have
> entered a file,
I updated this guy's patch to work with 2.02 beta 2, at least.
I've just worked on the version that gets downloaded and unpacked on
Kubuntu / Ubuntu 16.04.
One part of the patch didn't apply because apparently some tabs have
entered a file, namely grub-core/disk/lvm.c.
Another part didn't a
В Fri, 27 Sep 2013 14:48:33 +0200
Vladimir 'φ-coder/phcoder' Serbinenko пишет:
> On 27.09.2013 12:39, Gabriel de Perthuis wrote:
> > Le 26/09/2013 10:53, Vladimir 'φ-coder/phcoder' Serbinenko a écrit:
> >> On 25.09.2013 14:39, Gabriel de Perthuis wrote:
> >>> Hello,
> >>> This patch lets grub ins
В Fri, 27 Sep 2013 14:48:33 +0200
Vladimir 'φ-coder/phcoder' Serbinenko пишет:
> On 27.09.2013 12:39, Gabriel de Perthuis wrote:
> > Le 26/09/2013 10:53, Vladimir 'φ-coder/phcoder' Serbinenko a écrit:
> >> On 25.09.2013 14:39, Gabriel de Perthuis wrote:
> >>> Hello,
> >>> This patch lets grub ins
Le 27/09/2013 14:48, Vladimir 'φ-coder/phcoder' Serbinenko a écrit :
> On 27.09.2013 12:39, Gabriel de Perthuis wrote:
>> Le 26/09/2013 10:53, Vladimir 'φ-coder/phcoder' Serbinenko a écrit:
>>> On 25.09.2013 14:39, Gabriel de Perthuis wrote:
Hello,
This patch lets grub install to a reserv
On 27.09.2013 12:39, Gabriel de Perthuis wrote:
> Le 26/09/2013 10:53, Vladimir 'φ-coder/phcoder' Serbinenko a écrit:
>> On 25.09.2013 14:39, Gabriel de Perthuis wrote:
>>> Hello,
>>> This patch lets grub install to a reserved area in LVM physical volumes.
>>> These bootloader areas can be created
Le 26/09/2013 10:53, Vladimir 'φ-coder/phcoder' Serbinenko a écrit:
> On 25.09.2013 14:39, Gabriel de Perthuis wrote:
>> Hello,
>> This patch lets grub install to a reserved area in LVM physical volumes.
>> These bootloader areas can be created with LVM 2.02.99 and the
>> --bootloaderareasize argum
On 25.09.2013 14:39, Gabriel de Perthuis wrote:
> Hello,
> This patch lets grub install to a reserved area in LVM physical volumes.
> These bootloader areas can be created with LVM 2.02.99 and the
> --bootloaderareasize argument to pvcreate and vgconvert.
> I tested it in QEMU, installing to and bo
Hello,
This patch lets grub install to a reserved area in LVM physical volumes.
These bootloader areas can be created with LVM 2.02.99 and the
--bootloaderareasize argument to pvcreate and vgconvert.
I tested it in QEMU, installing to and booting a disk that contains a PV
and no partition table.
24 matches
Mail list logo