
Since initscripts was removed /etc/network/if-up.d/mountnfs doesn't exist anymore. Need to update logic here, copy from initscripts here. Add the service from Debian initscripts. Add the /lib/init/mount-functions.sh file. Let mountnfs service be installed by debhelper. Also change the buffer are to /usr/share/starlingx/initscripts, to avoid possible conflicts. Add sysvinv-utils dependency for /lib/init/vars.sh file. Tests on AIO-SX: PASS: build-pkgs && build-image PASS: unlocked enabled available PASS: mountnfs service is started at initial boot, same as on CentOS PASS: stop & start mountnfs service This work assumes advanced nfs tests were run when initscripts mountnfs was chosen in the first place. Depends-On: https://review.opendev.org/c/starlingx/tools/+/843853 Depends-On: https://review.opendev.org/c/starlingx/config-files/+/843854 Story: 2009101 Task: 44776 Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com> Change-Id: I9291345f869b0ad9ee35ddce8cba6125729dfd5a
14 lines
277 B
Desktop File
14 lines
277 B
Desktop File
[Unit]
|
|
Description=StarlingX Cloud Filesystem Auto-mounter
|
|
After=network.target nfscommon.service
|
|
Before=uexportfs.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/etc/init.d/mountnfs start
|
|
ExecStop=/etc/init.d/mountnfs stop
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|