Skip to content

Commit

Permalink
Modified tmpfiles.d addition syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
assrinivasan committed Nov 5, 2024
1 parent 2d2afc4 commit 3eb318e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions files/build_templates/sonic_debian_extension.j2
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,8 @@ sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/sonic-nettools_*.deb || \
sudo setcap 'cap_net_raw=+ep' $FILESYSTEM_ROOT/usr/bin/wol

# This is needed for moving monit logs, state and logrotate status to tmpfs
sudo touch $FILESYSTEM_ROOT/etc/tmpfiles.d/tmpfs-monit.conf
sudo echo "d /dev/shm/monit/ 0755 root root" > $FILESYSTEM_ROOT/etc/tmpfiles.d/tmpfs-monit.conf

sudo touch $FILESYSTEM_ROOT/etc/tmpfiles.d/tmpfs-logrotate.conf
sudo echo "d /dev/shm/logrotate/ 0755 root root" > $FILESYSTEM_ROOT/etc/tmpfiles.d/tmpfs-logrotate.conf
sudo bash -c "echo \"d /dev/shm/monit/ 0755 root root\"" > $FILESYSTEM_ROOT/etc/tmpfiles.d/tmpfs-monit.conf
sudo bash -c "echo \"d /dev/shm/logrotate/ 0755 root root\"" > $FILESYSTEM_ROOT/etc/tmpfiles.d/tmpfs-logrotate.conf


# Install a patched version of ifupdown2 (and its dependencies via 'apt-get -y install -f')
Expand Down

0 comments on commit 3eb318e

Please sign in to comment.