mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 08:26:49 +02:00
This solves issue when installing from initramfs and with setup-disk. fixes: https://gitlab.alpinelinux.org/alpine/aports/-/issues/16692
11 lines
289 B
Bash
11 lines
289 B
Bash
#!/bin/sh
|
|
|
|
for i in "$@"; do
|
|
if [ -d "$i" ]; then
|
|
# redirect stdin to workaround problem with
|
|
# apk add --overlay-from-stdin
|
|
# https://gitlab.alpinelinux.org/alpine/aports/-/issues/16692
|
|
PKGSYSTEM_ENABLE_FSYNC=0 \
|
|
update-mime-database "$i" < /dev/null > /dev/null 2>&1
|
|
fi
|
|
done
|