
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
15 lines
443 B
Bash
15 lines
443 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cp /usr/share/starlingx/initscripts/sysctl.conf /etc/sysctl.conf
|
|
chmod 644 /etc/sysctl.conf
|
|
cp /usr/share/starlingx/initscripts/mountnfs /etc/init.d/mountnfs
|
|
chmod 755 /etc/init.d/mountnfs
|
|
cp /usr/share/starlingx/initscripts/nsswitch.conf /etc/nsswitch.conf
|
|
chmod 644 /etc/nsswitch.conf
|
|
cp /usr/share/starlingx/initscripts/mount-functions /lib/init/mount-functions.sh
|
|
chmod 644 /lib/init/mount-functions.sh
|
|
|
|
#DEBHELPER#
|