X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=postinst-setup-ostree;h=b05a19838072ac6161b89e4530fe4ca7d261e12a;hp=2ed38906f4a10c200b7ecd94e5f012cbcfd8faa2;hb=d37bfde83dad8b42b92670437942e2f2dcc55425;hpb=e2f3fe9c927f19bf739cf3271790928145e21deb diff --git a/postinst-setup-ostree b/postinst-setup-ostree index 2ed3890..b05a198 100755 --- a/postinst-setup-ostree +++ b/postinst-setup-ostree @@ -1,24 +1,7 @@ #!/bin/sh set -ex -# have schroot use tmpfs -if [ ! -L /var/lib/schroot/unpack ]; then - rmdir /var/lib/schroot/unpack || true - ln -s /tmp /var/lib/schroot/unpack -fi - -# create user -if ! grep -q ^mock: /etc/group; then - getent group mock | sed 's/$/martin/' >> /etc/group -fi - -# copy back NM connections and fix SELinux context +# copy NM connections and fix SELinux context cp /home/martin/archiv/system-config/* /etc/ chcon -R -t NetworkManager_etc_t -u system_u /etc/NetworkManager chcon -R -t NetworkManager_etc_rw_t -u system_u /etc/NetworkManager/NetworkManager.conf /etc/NetworkManager/system-connections - -# crontabs -crontab -u martin - </dev/null -EOF