[elbe-devel] [PATCH v3 5/6] Add finetuning 'add <file>' examples

dion at linutronix.de dion at linutronix.de
Tue May 21 14:47:19 CEST 2019


From: Olivier Dion <dion at linutronix.de>

These examples are taken from ticket 1526.

Apache2 server
==============
A file under "/etc/apache2/sites-avaible/mysite" should be
created with the following attributes:

owner: "root"
group: "www-data"
mode: "0660"

f:/etc/apache2/sites-avaible/mysite-------------------------
<VirtualHost *:80>
ServerName  MyServer
ServerAdmin admin at host.org

\# And so on...
</VirtualHost><EOF>
------------------------------------------------------------

fstab
=====
A swap partition should be add to the list of mount in fstab

f:/etc/fstab------------------------------------------------
LABEL=rfs / ext4 defaults 0 0
\# <file system> <dir> <type> <options> <dump> <pass>
\# /dev/sda3
UUID=9ac83c42-4bc3-dead-beef-5887ced44418 none swap default
<EOF>
------------------------------------------------------------

NOTE!
=====

'\#' is in fact the character '#'.  It's only escaped so Git
doesn't ignore the line.

Signed-off-by: Olivier Dion <dion at linutronix.de>

Acked-by: Torben Hohn <torben.hohn at linutronix.de>
---
 examples/includes/devel/finetuning.xml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/examples/includes/devel/finetuning.xml b/examples/includes/devel/finetuning.xml
index 457a8af5..dd99af9b 100644
--- a/examples/includes/devel/finetuning.xml
+++ b/examples/includes/devel/finetuning.xml
@@ -2,4 +2,22 @@
 <finetuning>
   <adduser shell="/bin/bash" passwd="notsosecure">user</adduser>
   <rm>var/cache/apt/archives/*.deb</rm>
+  <file dst="/etc/apache2/sites-available/mysite" owner="root"
+	group="www-data" mode="0644"><![CDATA[
+    <VirtualHost *:80>
+      ServerName  MyServer
+      ServerAdmin admin at host.org
+
+      # And so on...
+    </VirtualHost>
+  ]]></file>
+  <file dst="/etc/fstab" append="true"><![CDATA[
+    # <file system> <dir> <type> <options> <dump> <pass>
+    
+  ]]></file>
+  <file dst="/etc/fstab" append="true">
+    # /dev/sda3
+    UUID=9ac83c42-4bc3-dead-beef-5887ced44418	none	swap	default
+    
+  </file>
 </finetuning>
-- 
2.21.0




More information about the elbe-devel mailing list