alpine: implement fix/workaround for rpc_pipefs not being mounted in container in some cases

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-11-02 01:46:29 -05:00
parent 2ac4b483ea
commit 4a7463802e
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
2 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,7 @@ WORKDIR /root
RUN mkdir -p /run/openrc
RUN touch /run/openrc/softlevel
RUN apk add --no-cache --update openrc
RUN apk add --no-cache --update --verbose tzdata bash krb5-server nfs-utils krb5-server-openrc krb5 syslog-ng chrony
RUN apk add --no-cache --update --verbose tzdata bash krb5-server nfs-utils krb5-server-openrc krb5 syslog-ng chrony nfs-utils-openrc
RUN if [ -n "${DEBUG}" ]; then \
apk add --no-cache --update iproute2 procps; \
@ -18,6 +18,7 @@ RUN rc-update add syslog-ng boot
RUN rc-update add krb5kdc default
RUN rc-update add krb5kadmind default
RUN rc-update add nfs default
RUN rc-update add rpc.pipefs boot
COPY ./common.sh .
COPY ./entrypoint.sh .

View File

@ -72,7 +72,9 @@ OPTS_RPC_NFSD="--debug --syslog"
EXPORTFS_TIMEOUT=30
EOC
ln -s /var/lib/nfs/rpc_pipefs /run/rpc_pipefs
rc-service rpc.pipefs restart
rc-service krb5kdc start
rc-service krb5kadmind start
rc-service nfs start