containers / containers/bubblewrap

bubblewrap should fall back to MS_MOVE if pivot_root() fails

Open
#592 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
8.7k
Forks
386
Avg merge
3d 17h
Merged PRs (30d)
11

Description

`pivot_root()` does not work in the initramfs. As a fallback, `MS_MOVE` can be used together with `chroot()` to mimick `pivot_root()` somewhat. bubblewrap should use this fallback if `pivot_root()` is not possible (e.g. when running bubblewrap from the initramfs) so that bubblewrap can be used from the initramfs.

Currently running bubblewrap from the initramfs fails with `bwrap: pivot_root: Invalid argument`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.