test(packer): update sources

This commit is contained in:
Alexandre Pujol 2025-03-01 16:07:10 +01:00
parent fa6c37a7ab
commit 6d5a522dcb
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 14 additions and 33 deletions

View file

@ -17,12 +17,11 @@ readonly DISTRIBUTION
main() { main() {
install -dm0750 -o "$SUDO_USER" -g "$SUDO_USER" "/home/$SUDO_USER/Projects/" "/home/$SUDO_USER/Projects/apparmor.d" "/home/$SUDO_USER/.config/" install -dm0750 -o "$SUDO_USER" -g "$SUDO_USER" "/home/$SUDO_USER/Projects/" "/home/$SUDO_USER/Projects/apparmor.d" "/home/$SUDO_USER/.config/"
install -Dm0644 -o "$SUDO_USER" -g "$SUDO_USER" $SRC/.bash_aliases "/home/$SUDO_USER/.bash_aliases" install -Dm0644 -o "$SUDO_USER" -g "$SUDO_USER" $SRC/.bash_aliases "/home/$SUDO_USER/.bash_aliases"
install -Dm0644 -o "$SUDO_USER" -g "$SUDO_USER" $SRC/monitors.xml "/home/$SUDO_USER/.config/monitors.xml"
install -Dm0644 -o "$SUDO_USER" -g "$SUDO_USER" $SRC/htoprc "/home/$SUDO_USER/.config/htop/htoprc" install -Dm0644 -o "$SUDO_USER" -g "$SUDO_USER" $SRC/htoprc "/home/$SUDO_USER/.config/htop/htoprc"
install -Dm0644 $SRC/parser.conf /etc/apparmor/parser.conf
install -Dm0644 $SRC/site.local /etc/apparmor.d/tunables/multiarch.d/site.local install -Dm0644 $SRC/site.local /etc/apparmor.d/tunables/multiarch.d/site.local
install -Dm0755 $SRC/aa-update /usr/bin/aa-update install -Dm0755 $SRC/aa-update /usr/bin/aa-update
install -Dm0755 $SRC/aa-log-clean /usr/bin/aa-log-clean install -Dm0755 $SRC/aa-clean /usr/bin/aa-clean
cat $SRC/parser.conf >>/etc/apparmor/parser.conf
chown -R "$SUDO_USER:$SUDO_USER" "/home/$SUDO_USER/.config/" chown -R "$SUDO_USER:$SUDO_USER" "/home/$SUDO_USER/.config/"
case "$DISTRIBUTION" in case "$DISTRIBUTION" in

View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -eu -o pipefail
rm -vf /var/log/audit/* /var/log/syslog*
touch /var/log/audit/audit.log /var/log/syslog

View file

@ -1,4 +0,0 @@
#!/usr/bin/env bash
set -eu
rm -rf /var/log/audit/*
touch /var/log/audit/audit.log

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eu set -eu -o pipefail
export BUILDDIR=/tmp/build/ export BUILDDIR=/tmp/build/

View file

@ -1,23 +0,0 @@
<monitors version="2">
<configuration>
<logicalmonitor>
<x>0</x>
<y>0</y>
<scale>1</scale>
<primary>yes</primary>
<monitor>
<monitorspec>
<connector>Virtual-1</connector>
<vendor>RHT</vendor>
<product>QEMU Monitor</product>
<serial>0x00000000</serial>
</monitorspec>
<mode>
<width>1920</width>
<height>1080</height>
<rate>60</rate>
</mode>
</monitor>
</logicalmonitor>
</configuration>
</monitors>

View file

@ -1,4 +1,9 @@
# Turn creating/updating of the cache on by default
write-cache write-cache
cache-loc /etc/apparmor/earlypolicy/
# Enable early policy loads to confine systemd, and services that can not depend
# on the apparmor unit.
cache-loc=/etc/apparmor/earlypolicy/
# Adjust compression
Optimize=compress-fast Optimize=compress-fast