github.com/yasker/longhorn-engine@v0.0.0-20160621014712-6ed6cfca0729/package/launch (about)

     1  #!/bin/bash
     2  
     3  set -x
     4  
     5  if [ "$1" == "controller" ]; then
     6    if [ ! -d /sys/kernel/config ]; then
     7      modprobe target_core_user
     8    fi
     9  
    10    mount --rbind /host/dev /dev
    11    mount -t configfs none /sys/kernel/config
    12  fi
    13  
    14  exec longhorn "$@"