02ee161e81
Setting up a routine to run at first time the system boot may vary from distribution to distribution. This patch will remove the logic from the diskimage-builder code and put it into the elements. The base element will now deploy a dib-first-boot script and each OS element will ensure that this script runs at rc.local time. By doing that we will put the OS specific stuff in the OS elements and remove the embedded code out of the img-function file. Change-Id: I24c5d1b1185de5693f145347fe912245f1ba7dfe
6 lines
136 B
Bash
Executable file
6 lines
136 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
if [ -d /etc/first-boot.d ]; then
|
|
install -m 0755 -o root -g root $(dirname $0)/../dib-first-boot /usr/sbin/
|
|
fi
|