Merge pull request #811 from zhsj/fix-overlay

fix overlay lowerdir order
This commit is contained in:
Simon Fels 2018-07-11 10:12:22 +02:00 committed by GitHub
commit b2922b0059
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -240,7 +240,7 @@ bool anbox::cmds::ContainerManager::setup_rootfs_overlay() {
fs::create_directories(overlay_path);
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());
if (!m) {
ERROR("Failed to setup rootfs overlay");