grant build guests the ablity to run mknods for creating root images
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 10 Apr 2015 15:58:29 +0000 (17:58 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 10 Apr 2015 15:58:29 +0000 (17:58 +0200)
lbuild-initvm.sh

index a8edc71..cd071ea 100755 (executable)
@@ -518,6 +518,7 @@ function write_lxc_xml_publicip () {
 EOF
 }
 
+# grant build guests the ability to do mknods
 function write_lxc_xml_natip () { 
     lxc=$1; shift
     cat <<EOF
@@ -530,6 +531,9 @@ function write_lxc_xml_natip () {
   </os>
   <features>
     <acpi/>
+    <capabilities policy='default'>
+      <mknod state='on'/>
+    </capabilities>
   </features>
   <vcpu>1</vcpu>
   <clock offset='utc'/>