Updated fds.in (updated to Fedora 38).
authorZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Thu, 27 Apr 2023 11:48:27 +0000 (13:48 +0200)
committerZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Thu, 27 Apr 2023 11:48:27 +0000 (13:48 +0200)
sources/fds.in/c3d/firstboot/scripts/01_setupnetworking.sh
sources/fds.in/envvars

index c313f18a883135bc7c0c88a315c0aca2f6a7730f..9f704fbf7d1bbd51b6b5b9ff2762c3c8b004fc9d 100755 (executable)
@@ -26,11 +26,11 @@ do
 done
 [ $CYCLES_WAITED -gt 0 ] && echo
 
-# wait for one/the network connection to come up
+# wait for the two network connections to come up
 CONNECTION_DEVICES_UP=$(nmcli --terse connection show \
                             | grep --invert-match ':$' | wc -l)
 CYCLES_WAITED=0
-while [ $CONNECTION_DEVICES_UP -lt 1 ]
+while [ $CONNECTION_DEVICES_UP -lt 2 ]
 do
     if [ $CYCLES_WAITED -ge 10 ]
     then
@@ -50,18 +50,23 @@ done
 [ $CYCLES_WAITED -gt 0 ] && echo
 
 CONNECTIONS=$(nmcli --terse connection show | wc -l)
-if [ $CONNECTIONS -ne 1 ]
+if [ $CONNECTIONS -ne 2 ]
 then
-    echo "Number of connections: $CONNECTIONS" >&2
+    echo "Number of connections: $CONNECTIONS instead of 2" >&2
     exit 1
 fi
 
-CONNECTION_LINE=$(nmcli --terse connection show)
+CONNECTION_LINE=$(nmcli --terse connection show | grep ':eth0$')
 CONNECTION_UUID=$(echo $CONNECTION_LINE | cut -f 2 -d ':')
 CONNECTION_DEVICE=$(echo $CONNECTION_LINE | cut -f 4 -d ':')
 
 nmcli connection delete uuid "$CONNECTION_UUID"
 
+#    ipv6.addresses "2a02:d400:0000:f268:000c:18ff:fe03:6d53/64" \
+#    ipv6.dns "2a02:d400:0000:f268:000c:18ff:fe03:6d9f, 2a02:d400:0000:f268:000c:18ff:fe03:5c9f" \
+#    ipv6.dns-search "in.useribm.hu" \
+#    ipv6.gateway "2a02:d400:0000:f268:000c:18ff:fe03:6dfe" \
+#    ipv6.method "manual" \
 nmcli connection add \
     connection.autoconnect yes \
     connection.id internal \
@@ -72,11 +77,10 @@ nmcli connection add \
     ipv4.dns-search "in.useribm.hu" \
     ipv4.gateway "10.228.109.254" \
     ipv4.method "manual" \
-    ipv6.addresses "2a02:d400:0000:f268:000c:18ff:fe03:6d53/64" \
-    ipv6.dns "2a02:d400:0000:f268:000c:18ff:fe03:6d9f, 2a02:d400:0000:f268:000c:18ff:fe03:5c9f" \
-    ipv6.dns-search "in.useribm.hu" \
-    ipv6.gateway "2a02:d400:0000:f268:000c:18ff:fe03:6dfe" \
-    ipv6.method "manual" \
+    ipv6.method "disabled" \
     save yes
 
 nmcli connection show
+
+hostnamectl hostname fds.in.useribm.hu
+hostnamectl
index 2f48359632057b59a7187264170159479d080bbe..73b0b7ca8308be7bfe0f929269ffb5406dab0114 100644 (file)
@@ -1,4 +1,14 @@
 DISTRIBUTION=Fedora
-DISTRIBUTION_VERSION=37
-SPEC_PACKAGES="389-ds-base acl cockpit cockpit-389-ds cronie"
-SPEC_PACKAGES="$SPEC_PACKAGES openssh-clients openssh-server rsync"
+DISTRIBUTION_VERSION=38
+SPEC_PACKAGES="389-ds-base \
+               acl \
+               cockpit \
+               cockpit-389-ds \
+               cronie \
+               openssh-clients \
+               openssh-server \
+               postfix \
+               python-unversioned-command \
+               rsync \
+               sscg \
+               sssd-client"