Closed f-laurens closed 3 years ago
Confused about the issue. Are you talking about released images or images you build yourself on your mac?
This is about released images.
I noticed this initially on the 0.7.4 image (but forgot about it...), and noticed it again on the 0.8.1 image.
The ._*
files are mainly in the /opt/kaldi
directory tree.
The files belonging to root
in /home/pi
are artefacts from builds of the drivers.
Maybe integrate this script remove_macintrash.sh in your CI/CD ?
Also maybe remove /usr/bin/qemu-arm-static*x86 binaries from image.
Fixed in #193
The ._*files are mainly in the /opt/kaldi directory tree.
This may come from kaldi binaries which could have been packaged on my Mac.
The files belonging to root in /home/pi are artefacts from builds of the drivers.
Umm. Indeed drivers are built and installed with sudo.
@pguyot: As of the current (0.9.0 pre-release) image build process , there are still some macOS leftovers in the images built on GitHub, which apparently come from the Kaldi build:
._*
files:
/._etc /etc/ld.so.conf.d/._kaldi.conf /etc/._ld.so.conf.d
/usr/._lib /usr/lib/._pkgconfig /usr/lib/pkgconfig/._kaldi-asr.pc /._usr
/._opt
plus files in /opt/kaldi/
(apart from the cosmetic aspect, cleaning these files would free about 2,7M on the image)501:staff
whereas they should belong to root:root
: same files as above plus others, mainly in /opt/kaldi
.
it would be nice to add a phase at the end of the Pynab
create-image
script to do some clean up of macOS leftovers from the image:._*
filesroot:root
for files belonging to501:staff
Also make sure that all files in
/home/pi
belong topi:pi
(some of them belong toroot:root
)Also maybe remove
/usr/bin/qemu-arm-static*
x86 binaries from image.