dracut-functions.sh: error out, if $initdir is not set

master
Harald Hoyer 2012-06-27 14:18:21 +02:00
parent 26c231f13b
commit ec1aa3bc48
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

[[ $initdir ]] || { echo "ERROR: initdir $initdir not set" 2>&1; exit 10; }
[[ -d $initdir ]] || mkdir -p $initdir
export initdir

# Generic substring function. If $2 is in $1, return 0.
strstr() { [[ $1 = *$2* ]]; }