Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-25 23:55:35 +02:00
parent a9888b716f
commit df91503a50

View File

@ -342,7 +342,20 @@
copy: copy:
dest: "/etc/rc.local" dest: "/etc/rc.local"
content: | content: |
depmod -a #!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/sbin/depmod -a
exit 0 exit 0
- name: make /etc/rc.local executable - name: make /etc/rc.local executable
@ -350,19 +363,6 @@
path: "/etc/rc.local" path: "/etc/rc.local"
mode: 0755 mode: 0755
- name: make rc.local service
copy:
dest: "/etc/systemd/system/rc-local.service"
content: |
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
# To shrink the final image, remove the nexmon directory (takes 2.5G of space) post build and installation # To shrink the final image, remove the nexmon directory (takes 2.5G of space) post build and installation
- name: Delete nexmon content & directory - name: Delete nexmon content & directory
file: file: