-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, Oct 17, 2017 at 01:09:58PM +0200, Zrubi wrote:
> On 10/14/2017 12:22 AM, Marek Marczykowski-Górecki wrote:
> > Current partition layout of a template in Qubes 4.0 is: 1. xvda1:
> > root filesystem (almost all available space) 2. xvda2: EFI system
> > partition (empty, prepared for PVHv2 boot with VM-provided kernel) 
> > 3. xvda3: BIOS boot (grub2 installed, used when `kernel=''`)
> > 
> > This makes resizing root volume hard, because one need to move
> > xvda[23] data to the (new) end of the disk first. Also, having
> > partitions at all (de facto required by grub2), makes online resize
> > of root volume hard/impossible.
> 
> 
> I just wonder why not using separate disks instead of partitions?
> This approach much more flexible, even if you have to create a single
> partition for compatibility.

While in this particular case it would indeed make things easier, it
would be harder to support different operating systems. Here, Linux
require two partitions (root fs + EFI or BIOS boot (*)), but other OSes
have different requirements - for example Windows. Having different
(number of) disks depending on OS installed inside would greatly
complicate things. Here we treat content of root.img as a black box from
dom0 point of view. See that the issue is about qubes.ResizeDisk
service running inside of the VM, which can be implemented differently
depending on operating system.

(*) We have both to ease migration between those two modes, without the need
to repartition root volume.

- -- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJZ5Fc5AAoJENuP0xzK19csEccH/jiMONC/BVqRkQdh+5bqONR2
s+a6vfxpYkv0qboJaxvAJdq9Ahy1kY3SBw1RxwtEV4Qs67sifh9FCRZ8XRUtSCkE
SbBJ617CJnJtwNikk9rZ+yUwhPgmAdDeweh6968XPnahT/Tk29IJdkMfO83YCvAq
Vp0sG9+X2E24WmIZOolC5m7MxP2mxiKhqGoOfTFMcL6MBtyHjBEnXF5AY4SVr2pz
e6nSIZmOFiwldI47WVrg8Nn8DtKbnYR1PODd8j0Zh6oPfYvup1MF3C4P0oLHNpGr
tHjSqj7MCgETfQl9lXuk7rhdGDPCbWldyuCi0uSU5+ablrpgQ3qsq4y/EJ4SNcA=
=Q62R
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-devel+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-devel@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-devel/20171017112454.GI11419%40mail-itl.
For more options, visit https://groups.google.com/d/optout.

Reply via email to