patches and low-level development discussion
 help / color / mirror / code / Atom feed
* Partition sizing
@ 2025-09-15  0:47 Demi Marie Obenour
  2025-09-17 11:23 ` Alyssa Ross
  0 siblings, 1 reply; 3+ messages in thread
From: Demi Marie Obenour @ 2025-09-15  0:47 UTC (permalink / raw)
  To: Spectrum OS Development


[-- Attachment #1.1.1: Type: text/plain, Size: 968 bytes --]

What size should the A and B partitions be?  I can’t think of
any reasonable way to size them that is also future-proof.

Android had the same problem, and they solved it by using
device mapper.  Unfortunately, I doubt LVM meets our security
goals, which means a whole new userspace implementation would
be required.  That would not be fun, especially since a bug
would require a reinstall to correct.

Other image-based Linux distros generally don't have this
problem because they use filesystem or ostree snapshots,
rather than separate partitions.  Chromium OS has a whole
team of paid developers, so I think they can deal with
constraints a bit better than we can :).

One horrifying worst-case option is to add a file on the
user data partition, create a loop device based on it,
and then add it to the dm-verity table.  I really don't
want to do that if there is any other option, though.
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 7253 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-09-18  2:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-15  0:47 Partition sizing Demi Marie Obenour
2025-09-17 11:23 ` Alyssa Ross
2025-09-18  2:30   ` Demi Marie Obenour

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).