[lxc-devel] [distrobuilder/master] sabayon: Update examples
geaaru on Github
lxc-bot at linuxcontainers.org
Fri May 10 16:55:42 UTC 2019
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 522 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190510/21cb7e07/attachment-0001.bin>
-------------- next part --------------
From 60caf978d47b96954f4bfe637481d4b923fa456e Mon Sep 17 00:00:00 2001
From: Daniele Rondina <geaaru at sabayonlinux.org>
Date: Fri, 10 May 2019 18:54:25 +0200
Subject: [PATCH] sabayon: Update examples
* Enable systemd-networkd service
* Added ETP_NONINTERACTIVE for avoid
blocking installation processes
* Disable systemd-journald-audit service
Signed-off-by: Daniele Rondina <geaaru at sabayonlinux.org>
---
doc/examples/sabayon | 32 ++++++++++++++++++++++++++++++++
doc/examples/sabayon-docker | 32 ++++++++++++++++++++++++++++++++
2 files changed, 64 insertions(+)
diff --git a/doc/examples/sabayon b/doc/examples/sabayon
index 22d557d..372530a 100644
--- a/doc/examples/sabayon
+++ b/doc/examples/sabayon
@@ -15,6 +15,8 @@ environment:
value: "/bin/bash"
- key: "ACCEPT_LICENSE"
value: "*"
+ - key: "ETP_NONINTERACTIVE"
+ value: "1"
targets:
lxc:
@@ -102,6 +104,13 @@ actions:
cd /etc/systemd/system
ln -s /dev/null dev-hugepages.mount
+ # Disable systemd-journald-audit service
+ - trigger: post-packages
+ action: |-
+ #!/bin/bash
+ cd /etc/systemd/system
+ ln -s /dev/null systemd-journald-audit.socket
+
# Disable sabayon-anti-fork-bomb limits
# (already apply to host)
- trigger: post-packages
@@ -110,6 +119,29 @@ actions:
sed -i -e 's/^*/#*/g' /etc/security/limits.d/00-sabayon-anti-fork-bomb.conf
sed -i -e 's/^root/#root/g' /etc/security/limits.d/00-sabayon-anti-fork-bomb.conf
+ # Configure DHCP for interface eth0 by default.
+ # Avoid to use DHCP for any interface to avoid reset of docker
+ # interfaces or others custom interfaces.
+ - trigger: post-packages
+ action: |-
+ #!/bin/bash
+ cat > /etc/systemd/network/default_dhcp.network << "EOF"
+ [Network]
+ DHCP=ipv4
+
+ [Match]
+ Name=eth0
+
+ [DHCP]
+ UseDomains=true
+ EOF
+
+ # Enable systemd-networkd service by default.
+ - trigger: post-packages
+ action: |-
+ #!/bin/bash
+ systemctl enable systemd-networkd
+
# Clean journal directory (to avoid permission errors)
- trigger: post-packages
action: |-
diff --git a/doc/examples/sabayon-docker b/doc/examples/sabayon-docker
index ae132ac..23cfda1 100644
--- a/doc/examples/sabayon-docker
+++ b/doc/examples/sabayon-docker
@@ -16,6 +16,8 @@ environment:
value: "/bin/bash"
- key: "ACCEPT_LICENSE"
value: "*"
+ - key: "ETP_NONINTERACTIVE"
+ value: "1"
targets:
lxc:
@@ -103,6 +105,13 @@ actions:
cd /etc/systemd/system
ln -s /dev/null dev-hugepages.mount
+ # Disable systemd-journald-audit service
+ - trigger: post-packages
+ action: |-
+ #!/bin/bash
+ cd /etc/systemd/system
+ ln -s /dev/null systemd-journald-audit.socket
+
# Disable sabayon-anti-fork-bomb limits
# (already apply to host)
- trigger: post-packages
@@ -111,6 +120,29 @@ actions:
sed -i -e 's/^*/#*/g' /etc/security/limits.d/00-sabayon-anti-fork-bomb.conf
sed -i -e 's/^root/#root/g' /etc/security/limits.d/00-sabayon-anti-fork-bomb.conf
+ # Configure DHCP for interface eth0 by default.
+ # Avoid to use DHCP for any interface to avoid reset of docker
+ # interfaces or others custom interfaces.
+ - trigger: post-packages
+ action: |-
+ #!/bin/bash
+ cat > /etc/systemd/network/default_dhcp.network << "EOF"
+ [Network]
+ DHCP=ipv4
+
+ [Match]
+ Name=eth0
+
+ [DHCP]
+ UseDomains=true
+ EOF
+
+ # Enable systemd-networkd service by default.
+ - trigger: post-packages
+ action: |-
+ #!/bin/bash
+ systemctl enable systemd-networkd
+
# Clean journal directory (to avoid permission errors)
- trigger: post-packages
action: |-
More information about the lxc-devel
mailing list