mirror of
https://gitlab.archlinux.org/archlinux/archlinux-docker.git
synced 2025-08-05 13:47:16 +02:00
Disable sandbox in oci images due to missing kernel landlock
Resolves the `error: restricting filesystem access failed because the landlock ruleset could not be applied!` when running pacman. Closes #103.
This commit is contained in:
parent
cac42fb2e6
commit
ae0527df18
@ -18,6 +18,11 @@ cat pacman-conf.d-noextract.conf >> "$BUILDDIR/etc/pacman.conf"
|
|||||||
|
|
||||||
sed 's/Include = /&rootfs/g' < "$BUILDDIR/etc/pacman.conf" > pacman.conf
|
sed 's/Include = /&rootfs/g' < "$BUILDDIR/etc/pacman.conf" > pacman.conf
|
||||||
|
|
||||||
|
sed -i '/#DisableSandbox/{c\
|
||||||
|
# No kernel landlock in containerd\
|
||||||
|
DisableSandbox
|
||||||
|
}' "$BUILDDIR/etc/pacman.conf"
|
||||||
|
|
||||||
cp --recursive --preserve=timestamps rootfs/* "$BUILDDIR/"
|
cp --recursive --preserve=timestamps rootfs/* "$BUILDDIR/"
|
||||||
ln -fs /usr/lib/os-release "$BUILDDIR/etc/os-release"
|
ln -fs /usr/lib/os-release "$BUILDDIR/etc/os-release"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user