From: Zoltán Felleg Date: Fri, 11 Feb 2022 16:55:49 +0000 (+0100) Subject: Updated pns.pm (converted to the new c3d format). X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=6d5dd540d778e755e2847a8283898897bfa76d8d;p=user-lxc.git Updated pns.pm (converted to the new c3d format). --- diff --git a/sources/pns.pm/firstboot/01_setupnetworking.sh b/sources/pns.pm/c3d/firstboot/scripts/01_setupnetworking.sh similarity index 100% rename from sources/pns.pm/firstboot/01_setupnetworking.sh rename to sources/pns.pm/c3d/firstboot/scripts/01_setupnetworking.sh diff --git a/sources/pns.pm/firstboot/02_settimezone.sh b/sources/pns.pm/c3d/firstboot/scripts/02_settimezone.sh similarity index 100% rename from sources/pns.pm/firstboot/02_settimezone.sh rename to sources/pns.pm/c3d/firstboot/scripts/02_settimezone.sh diff --git a/sources/pns.pm/c3d/mode.txt b/sources/pns.pm/c3d/mode.txt new file mode 100644 index 0000000..ee44133 --- /dev/null +++ b/sources/pns.pm/c3d/mode.txt @@ -0,0 +1,4 @@ +# mode file (relative to /c3d) +755 firstboot/scripts/*.sh +640 postinstall/install-data/etc/named.conf +755 postinstall/scripts/*.sh diff --git a/sources/pns.pm/c3d/owner.txt b/sources/pns.pm/c3d/owner.txt new file mode 100644 index 0000000..86b3d1d --- /dev/null +++ b/sources/pns.pm/c3d/owner.txt @@ -0,0 +1,3 @@ +# owner file (relative to /c3d) +# shell globbing does not work +root.named postinstall/install-data/etc/named.conf diff --git a/sources/pns.pm/postinstall/install/etc/named.conf b/sources/pns.pm/c3d/postinstall/install-data/etc/named.conf similarity index 100% rename from sources/pns.pm/postinstall/install/etc/named.conf rename to sources/pns.pm/c3d/postinstall/install-data/etc/named.conf diff --git a/sources/pns.pm/c3d/postinstall/scripts/01_editfiles.sh b/sources/pns.pm/c3d/postinstall/scripts/01_editfiles.sh new file mode 100755 index 0000000..816ca13 --- /dev/null +++ b/sources/pns.pm/c3d/postinstall/scripts/01_editfiles.sh @@ -0,0 +1,6 @@ +#!/bin/sh + + +sed --in-place=.orig \ + '/^After=.*network\.target.*$/a After=network-online.target\nWants=network-online.target' \ + /usr/lib/systemd/system/named.service diff --git a/sources/pns.pm/postinstall/10_setupservices.sh b/sources/pns.pm/c3d/postinstall/scripts/10_setupservices.sh similarity index 100% rename from sources/pns.pm/postinstall/10_setupservices.sh rename to sources/pns.pm/c3d/postinstall/scripts/10_setupservices.sh diff --git a/sources/pns.pm/envvars b/sources/pns.pm/envvars index 875dfc1..67de93f 100644 --- a/sources/pns.pm/envvars +++ b/sources/pns.pm/envvars @@ -1,5 +1,3 @@ DISTRIBUTION=Fedora DISTRIBUTION_VERSION=35 -ROOT_PACKAGES="hostname initscripts iproute rootfiles systemd-udev" -BASE_PACKAGES="NetworkManager iputils logrotate rsyslog tar vim-minimal" SPEC_PACKAGES="bind bind-utils" diff --git a/sources/pns.pm/firstboot/03_setupldap.sh b/sources/pns.pm/firstboot/03_setupldap.sh deleted file mode 100755 index 415d6db..0000000 --- a/sources/pns.pm/firstboot/03_setupldap.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - - -exit 0 -authselect select sssd with-mkhomedir --force - -cat >>/etc/openldap/ldap.conf <