From eabe83d4f229ab243e67c5669837d41226b2a891 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 16 Feb 2018 10:29:32 +0100 Subject: [PATCH] Adaptation to chroot 'writeable' attribute Issue #2643 --- .../raw/depot_download/depot_download.config | 30 ++++++++++++++++--- repos/gems/run/depot_download.run | 6 ++-- repos/gems/run/sculpt.run | 4 +-- repos/gems/run/sculpt/download_runtime.config | 2 +- repos/gems/run/sculpt/update_runtime.config | 4 +-- .../app/depot_download_manager/gen_chroot.cc | 5 +++- 6 files changed, 37 insertions(+), 14 deletions(-) diff --git a/repos/gems/recipes/raw/depot_download/depot_download.config b/repos/gems/recipes/raw/depot_download/depot_download.config index 26101efb61..80e3fd2851 100644 --- a/repos/gems/recipes/raw/depot_download/depot_download.config +++ b/repos/gems/recipes/raw/depot_download/depot_download.config @@ -34,6 +34,28 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -54,10 +76,10 @@ - - - - + + + + diff --git a/repos/gems/run/depot_download.run b/repos/gems/run/depot_download.run index 5c89642f4d..25786f1fee 100644 --- a/repos/gems/run/depot_download.run +++ b/repos/gems/run/depot_download.run @@ -72,10 +72,8 @@ append config { - - - - + + diff --git a/repos/gems/run/sculpt.run b/repos/gems/run/sculpt.run index 05f9a9fa56..76773068f5 100644 --- a/repos/gems/run/sculpt.run +++ b/repos/gems/run/sculpt.run @@ -598,14 +598,14 @@ append depot_deploy_config { - + - + diff --git a/repos/gems/run/sculpt/download_runtime.config b/repos/gems/run/sculpt/download_runtime.config index fb35d76c5b..af22f27dc1 100644 --- a/repos/gems/run/sculpt/download_runtime.config +++ b/repos/gems/run/sculpt/download_runtime.config @@ -100,7 +100,7 @@ - + diff --git a/repos/gems/run/sculpt/update_runtime.config b/repos/gems/run/sculpt/update_runtime.config index a59ab36563..94a43cb6d7 100644 --- a/repos/gems/run/sculpt/update_runtime.config +++ b/repos/gems/run/sculpt/update_runtime.config @@ -72,7 +72,7 @@ - + @@ -83,7 +83,7 @@ - + diff --git a/repos/gems/src/app/depot_download_manager/gen_chroot.cc b/repos/gems/src/app/depot_download_manager/gen_chroot.cc index c0966e44e7..5dcc2bcbd8 100644 --- a/repos/gems/src/app/depot_download_manager/gen_chroot.cc +++ b/repos/gems/src/app/depot_download_manager/gen_chroot.cc @@ -23,7 +23,10 @@ void Depot_download_manager::gen_chroot_start_content(Xml_generator &xml, xml.node("config", [&] () { xml.node("default-policy", [&] () { - xml.attribute("path", Path("/", user)); }); }); + xml.attribute("path", Path("/", user)); + xml.attribute("writeable", "yes"); + }); + }); xml.node("provides", [&] () { xml.node("service", [&] () {