diff options
author | Andrew Lutomirski <luto@kernel.org> | 2019-10-02 10:18:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-02 10:18:32 -0700 |
commit | 6e73caa827631b3b32f589c6a5670889784469e9 (patch) | |
tree | 993038ecede8a65b1989ab57de3cea70b2e0d758 | |
parent | b367abf5f02fa9a3b56b6d98f21600bb786bb09c (diff) | |
parent | 55cbd23f46b2a591392b2604282647b3a6985f37 (diff) | |
download | virtme-6e73caa827631b3b32f589c6a5670889784469e9.tar.gz |
Merge pull request #45 from marcosps/opensuse_depmod
virtme-prep-kdir-mods: Check if depmod is in the user's PATH
-rwxr-xr-x | bin/virtme-prep-kdir-mods | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/virtme-prep-kdir-mods b/bin/virtme-prep-kdir-mods index 089bce6..d34e280 100755 --- a/bin/virtme-prep-kdir-mods +++ b/bin/virtme-prep-kdir-mods @@ -10,6 +10,11 @@ fi FAKEVER=0.0.0 MODDIR=".virtme_mods/lib/modules/$FAKEVER" +# Some distro don't have /sbin or /usr/sbin in user's default path. Make sure +# to setup the right path to find all the commands needed to setup the modules +# (depmod, etc.). +PATH=$PATH:/sbin:/usr/sbin + if ! [ -f "modules.order" ]; then echo "modules.order is missing. Your kernel may be too old or you didn't make modules." >&2 exit 1 |