Updated cvms (single nic for efg), nameservers (wait for network-online).
authorZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Wed, 23 Oct 2019 08:46:16 +0000 (10:46 +0200)
committerZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Wed, 23 Oct 2019 08:46:16 +0000 (10:46 +0200)
12 files changed:
sources/cvm.usr.f30/01_setupnetworking.sh
sources/cvm.usr.f30/etc/systemd/network/10-efg.link [new file with mode: 0644]
sources/cvm.usr.f30/etc/systemd/network/10-efgd.link [deleted file]
sources/cvm.usr.f30/etc/systemd/network/10-efgs.link [deleted file]
sources/cvm.usr.f30/packages.txt
sources/cvmb.usr.f30/01_setupnetworking.sh
sources/cvmb.usr.f30/etc/systemd/network/10-efg.link
sources/cvmb.usr.f30/packages.txt
sources/ens.pm.f30/postinstall/04_editfiles.sh [new file with mode: 0755]
sources/pns.pm.f30/postinstall/04_editfiles.sh [new file with mode: 0755]
sources/pns.usr.f30/postinstall/04_editfiles.sh [new file with mode: 0755]
sources/svc.usr.f30/postinstall/04_editfiles.sh [new file with mode: 0755]

index 432684279302367e52ff6d007524af39ef3e2b45..ee1d450f815ea80c4c4bca505633ede01ea22292 100755 (executable)
@@ -35,7 +35,7 @@ nmcli connection add \
 
 nmcli connection show
 
-for LXC_DEVICE in efgd efgs ifg svc ldap vpn pns ins
+for LXC_DEVICE in efg ifg svc ldap vpn pns ins
 do
     CONNECTION_LINE=$(nmcli --terse connection show | grep "${LXC_DEVICE}$")
     if [ -n "$CONNECTION_LINE" ]
diff --git a/sources/cvm.usr.f30/etc/systemd/network/10-efg.link b/sources/cvm.usr.f30/etc/systemd/network/10-efg.link
new file mode 100644 (file)
index 0000000..613cb07
--- /dev/null
@@ -0,0 +1,5 @@
+[Match]
+MACAddress=00:50:56:1e:28:92
+
+[Link]
+Name=efg
diff --git a/sources/cvm.usr.f30/etc/systemd/network/10-efgd.link b/sources/cvm.usr.f30/etc/systemd/network/10-efgd.link
deleted file mode 100644 (file)
index b96a81b..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-[Match]
-MACAddress=00:50:56:1e:41:01
-
-[Link]
-Name=efgd
diff --git a/sources/cvm.usr.f30/etc/systemd/network/10-efgs.link b/sources/cvm.usr.f30/etc/systemd/network/10-efgs.link
deleted file mode 100644 (file)
index b421c5b..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-[Match]
-MACAddress=00:50:56:1e:d2:01
-
-[Link]
-Name=efgs
index 5c28527354291deba03e17f7503662b8084370a6..93db91427c52338a39701ec9e4a73f66a4f5084e 100644 (file)
@@ -1,3 +1,4 @@
+chrony
 lxc
 lxc-templates
 mercurial
index c65a613d9618f3f7e45c5cb9d7fac775cd4826b3..10552fc546b044c0902e4e321c1e04e492632245 100755 (executable)
@@ -35,7 +35,7 @@ nmcli connection add \
 
 nmcli connection show
 
-for LXC_DEVICE in efgd efgs ifg svc ldap vpn pns ins
+for LXC_DEVICE in efg ifg svc ldap vpn pns ins
 do
     CONNECTION_LINE=$(nmcli --terse connection show | grep "${LXC_DEVICE}$")
     if [ -n "$CONNECTION_LINE" ]
index f5569cb8ed1f474fd2fe9db8a2aecca5646bd8a7..0002de5a6efce05c50c6f504d47dd3acec95dbca 100644 (file)
@@ -1,5 +1,5 @@
 [Match]
-MACAddress=00:50:56:9e:c2:01
+MACAddress=00:50:56:9e:28:92
 
 [Link]
 Name=efg
index 5c28527354291deba03e17f7503662b8084370a6..93db91427c52338a39701ec9e4a73f66a4f5084e 100644 (file)
@@ -1,3 +1,4 @@
+chrony
 lxc
 lxc-templates
 mercurial
diff --git a/sources/ens.pm.f30/postinstall/04_editfiles.sh b/sources/ens.pm.f30/postinstall/04_editfiles.sh
new file mode 100755 (executable)
index 0000000..097b9b0
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+
+sed --in-place=.orig \
+    's/^After=\(.*\)network\.target\(.*\)$/After=\1network-online.target\2/' \
+    /usr/lib/systemd/system/named.service
diff --git a/sources/pns.pm.f30/postinstall/04_editfiles.sh b/sources/pns.pm.f30/postinstall/04_editfiles.sh
new file mode 100755 (executable)
index 0000000..097b9b0
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+
+sed --in-place=.orig \
+    's/^After=\(.*\)network\.target\(.*\)$/After=\1network-online.target\2/' \
+    /usr/lib/systemd/system/named.service
diff --git a/sources/pns.usr.f30/postinstall/04_editfiles.sh b/sources/pns.usr.f30/postinstall/04_editfiles.sh
new file mode 100755 (executable)
index 0000000..097b9b0
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+
+sed --in-place=.orig \
+    's/^After=\(.*\)network\.target\(.*\)$/After=\1network-online.target\2/' \
+    /usr/lib/systemd/system/named.service
diff --git a/sources/svc.usr.f30/postinstall/04_editfiles.sh b/sources/svc.usr.f30/postinstall/04_editfiles.sh
new file mode 100755 (executable)
index 0000000..0aa3be0
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+
+sed --in-place=.orig \
+    's/^After=\(.*\)network\.target\(.*\)$/After=\1network-online.target\2/' \
+    /usr/lib/systemd/system/named.service
+
+sed --in-place=.orig \
+    's/^After=\(.*\)network\.target\(.*\)$/After=\1network-online.target\2/' \
+    /usr/lib/systemd/system/postfix.service