misc: use ext4 for chromebook disk images
I notice that ChromeOS (on my Lenovo Duet 5) cannot read the root partition on the thumbdrive I made from your image. I'm guessing/assuming that this problem is not specific to the Duet. If the images were configured to be ext4 instead, then they could be read from ChromeOS. I think that would be an improvement. I'm not too familiar with btrfs, and the advantages it has over ext4.
@bsammon - the rootfs type can be defined at image build time - for trogdor for instance here: https://github.com/hexdump0815/imagebuilder/blob/main/systems/chromebook_trogdor/partition-mapping.txt#L2 ... i do not plan to go away from btrfs any more as it simply has so many advantages over ext4 like:
- it allows automatic compression of the data written to the filesystem - this is enabled by default in the images and allows to put close to twice as much data onto the disks as without compression (depending of the data of course) which makes a big difference for systems with only a 16gb or 32gb emmc or sd card - a nice side effect of this is: if the data is written compressed to storage, less writes are required which is good for the life time of sd, emmc, ssd etc
- btrfs is automatically checksumming its data and checks those checksums on read, so one actually has a chance to notice when the storage starts to die while this will most probably happen silently with ext4
- i think due to the checksumming btrfs can keep identical files as copy-on-write copies which saves a lot of space if you have for instance multiple very similar kernel source trees around - also for some filesystem operations btrfs simply performs better than ext4 - iirc fedora and facebook (on their servers) are using btrfs as default filesystem, not without a reason i guess
- btrfs has lots of very nice features beyond ext4 (snapshots, volume management(, but not all of them are really stable - this is why i only use the basic btrfs ufunctionaly in the images.
if you want to exchange data with chromeos maybe add an extra ext4 partition or use an sd card / usb drive with ext4 for exchanging files
good luck and best wishes - hexdump
if you want to exchange data with chromeos maybe add an extra ext4 partition
But beware of using parted to make the partition, it may render the disk unbootable.
@bsammon - i'll for sure test things carefully before changing anything :)
update: sorry i mixed that answer up with the parted based extension question in another issue ,,, yes you are right: using parted should be done with a lot of care on chromebooks due to the extra cgpt flags