Skip to content

Commit 23e05b4

Browse files
corbinlcclaude
andcommitted
Disable pacman CheckSpace to fix read-only mount errors on amd64
NoExtract stops pacman writing /etc/resolv.conf and /etc/hosts, but pacman's disk-space pre-flight still inspects those bind-mounted partitions and fails when it sees them as read-only. Commenting out CheckSpace skips the space check entirely, which is safe in Docker overlay filesystems. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent acba702 commit 23e05b4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile.arch

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ FROM menci/archlinuxarm:latest AS builder
77
# --overwrite '*' handles file conflicts from package splits (e.g. gcc-libs → libgcc+libstdc++).
88
RUN sed -i 's/^#DisableSandbox/DisableSandbox/' /etc/pacman.conf && \
99
sed -i '/^SigLevel[[:space:]]/c\SigLevel = Never' /etc/pacman.conf && \
10-
sed -i '/^DisableSandbox/a NoExtract = etc/resolv.conf etc/hosts' /etc/pacman.conf
10+
sed -i '/^DisableSandbox/a NoExtract = etc/resolv.conf etc/hosts' /etc/pacman.conf && \
11+
sed -i 's/^CheckSpace/#CheckSpace/' /etc/pacman.conf
1112

1213
RUN pacman -Syu --noconfirm --overwrite '*'
1314

@@ -25,7 +26,8 @@ FROM menci/archlinuxarm:latest
2526

2627
RUN sed -i 's/^#DisableSandbox/DisableSandbox/' /etc/pacman.conf && \
2728
sed -i '/^SigLevel[[:space:]]/c\SigLevel = Never' /etc/pacman.conf && \
28-
sed -i '/^DisableSandbox/a NoExtract = etc/resolv.conf etc/hosts' /etc/pacman.conf
29+
sed -i '/^DisableSandbox/a NoExtract = etc/resolv.conf etc/hosts' /etc/pacman.conf && \
30+
sed -i 's/^CheckSpace/#CheckSpace/' /etc/pacman.conf
2931

3032
RUN pacman -Syu --noconfirm --overwrite '*'
3133

0 commit comments

Comments
 (0)