pine64-dontbeevil: too few inodes on sd card
Looking at df, only about 25% of the space on the SD card is used
$ df -h /
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p2 14.7G 3.5G 10.5G 25% /
but I'm getting No space left on device
errors.
Looking online a bit, I found this:
$ df -i /
Filesystem Inodes Used Available Use% Mounted on
/dev/mmcblk0p2 100912 100912 0 100% /
This means all the inodes available for the file system are used up. Note, that this is a new installation from today and I've only installed a couple of packages.
Apparently this inode number must be specified at the creation time of the file system and looking at pmb/install/format.py
sure enough, 100000 inodes are specified (no idea how 100000 become 100912 but close enough^^).
The default calculation for the number of inodes for a given size seems to create about a million inodes for a 16GB filesystem - which is about ten times the number hardcoded in pmbootstrap, so no wonder the filesystem runs out of inodes in this case.
Creating filesystem with 3906250 4k blocks and 977280 inodes
See also postmarketOS/pmbootstrap#1717 postmarketOS/pmbootstrap!1743 CC @craftyguy