Merge pull request #811 from zhsj/fix-overlay
fix overlay lowerdir order
This commit is contained in:
commit
b2922b0059
1 changed files with 1 additions and 1 deletions
|
|
@ -240,7 +240,7 @@ bool anbox::cmds::ContainerManager::setup_rootfs_overlay() {
|
||||||
fs::create_directories(overlay_path);
|
fs::create_directories(overlay_path);
|
||||||
|
|
||||||
const auto rootfs_path = SystemConfiguration::instance().rootfs_dir();
|
const auto rootfs_path = SystemConfiguration::instance().rootfs_dir();
|
||||||
const auto overlay_config = utils::string_format("lowerdir=%s:%s", rootfs_path, overlay_path);
|
const auto overlay_config = utils::string_format("lowerdir=%s:%s", overlay_path, rootfs_path);
|
||||||
auto m = common::MountEntry::create("overlay", combined_rootfs_path, "overlay", MS_RDONLY, overlay_config.c_str());
|
auto m = common::MountEntry::create("overlay", combined_rootfs_path, "overlay", MS_RDONLY, overlay_config.c_str());
|
||||||
if (!m) {
|
if (!m) {
|
||||||
ERROR("Failed to setup rootfs overlay");
|
ERROR("Failed to setup rootfs overlay");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue