[Libguestfs] [PATCH] v2v: linux: improve regex for resume= entries (RHBZ#1651987)

Pino Toscano ptoscano at redhat.com
Wed Dec 5 12:18:42 UTC 2018


On Wednesday, 5 December 2018 13:01:40 CET Richard W.M. Jones wrote:
> On Wed, Dec 05, 2018 at 12:57:19PM +0100, Pino Toscano wrote:
> > Add few more characters for the devices of resume= entries in the
> > command line of grub: this way it is possible to match also /dev/mapper
> > devices.
> > 
> > This should require no further processing, since the names of the
> > /dev/mapper devices do not change after the conversion.
> 
> Yes this is what worried me, but I think you're right.

I wanted to add an explanation out of the commit message, but
apparently I overwrote it when re-exporting the patch...

At least in my experience, guests may use /dev/mapper entries also in
other places -- for example, a freshly installed Fedora 29 in VMware
ESXi has in /etc/fstab:

/dev/mapper/fedora_unused-root /                       xfs     defaults        0 0
UUID=<some_uuid>               /boot                   ext4    defaults        1 2
/dev/mapper/fedora_unused-swap swap                    swap    defaults        0 0

Since the guest works fine (root & swap) after the conversion, and that
so far we had no reports of problems due to /dev/mapper entries not
changed, I thought that doing the same for resume= entries will cause
any trouble.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20181205/9d8618a5/attachment.sig>


More information about the Libguestfs mailing list