Browse Source

dracut-functions.sh: create $initdir, if it does not exist

master
Harald Hoyer 13 years ago
parent
commit
eaa924b69e
  1. 4
      dracut-functions.sh

4
dracut-functions.sh

@ -28,6 +28,10 @@ if [[ $DRACUT_KERNEL_LAZY ]] && ! [[ $DRACUT_KERNEL_LAZY_HASHDIR ]]; then @@ -28,6 +28,10 @@ if [[ $DRACUT_KERNEL_LAZY ]] && ! [[ $DRACUT_KERNEL_LAZY_HASHDIR ]]; then
DRACUT_KERNEL_LAZY_HASHDIR="$initdir/.kernelmodseen"
fi

if [[ $initdir ]] && ! [[ -d $initdir ]]; then
mkdir -p "$initdir"
fi

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


Loading…
Cancel
Save