installing from external to internal storage with fat boot partition fails at tune2fs
Reported by @fsmnarmosta and @jenneron here:
https://gitlab.com/postmarketOS/pmbootstrap/-/merge_requests/2083#note_623677699
Thanks for giving it a try! I didn't actually try it with a fat filesystem yet (I should be able to do it after changing deviceinfo_boot_filesystem
for qemu-amd64) so I didn't realize that it would fail here.
What happens is, that tune2fs is a program from e2fsprogs-extra, the "Ext2/3/4 filesystem extra utilities", and it can't deal with fat.
So what needs to be done is calling another program that is capable of renaming a fat filesystem instead. I don't have time to look into it right now, can you two try to figure it out and ideally submit a patch?
You can source deviceinfo (. /etc/deviceinfo
) at the top of this post-install script, and then read deviceinfo_boot_filesystem
to decide based on that which tool to use.
@fsmnarmosta wrote:
I mean the error message is confusing to me, it quotes https://gitlab.postmarketos.org/postmarketos/postmarketos-ondev/-/blob/master/ondev-post-install.sh#L23 and then a random environment variable...
because of the #!/bin/sh -x
, the script outputs every command it is running, that's the weird output. Because of sh -e
it stops after the tune2fs line, which does not exit with 0.