Edge case: wrong folder owner after installing package in `pmbootstrap install`
Created by: PureTryOut
So I've been working on a pull request for Alpine Linux on the
mopidy package (which in itself has nothing to do with postmarketOS). I've been using pmbootstrap to make the package, as I find it a handy and quick tool for such things.
This package creates a system user in the pre-install hook which is made owner of a few directories created in the
package() function in the APKBUILD. Adding a
ls -l <directory> in
package() just after creating the directories shows the correct owner, but once the system is actually installed (
pmbootstrap install --add mopidy), the folders are owned by the system user
However... If I install the system without
mopidy first (
pmbootstrap install), ssh into the system, and then add the package (
apk add mopidy), the folders are created with the correct owner.
This makes me think there is something wrong in the way pmbootstrap installs the applications, but at the same time I realize this is just done by executing
apk in the chroot.