diff options
author | Andrew Lutomirski <luto@kernel.org> | 2020-07-19 10:33:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-19 10:33:31 -0700 |
commit | 1fd86a05556b5a3363fb964c3891b81a7c516222 (patch) | |
tree | 768b234f19c4ae86a398c3c5538eb9beae0b6809 | |
parent | 23a97c3ede73b63643a4fb46c30372aa58faa59b (diff) | |
parent | b8d743d0e65f68fa0dd5aab1b0ab2c2df7e3198e (diff) | |
download | virtme-1fd86a05556b5a3363fb964c3891b81a7c516222.tar.gz |
Merge pull request #57 from soleen/pasha-cleanup
remove duplicated check from virtme-prep-kdir-mods
-rwxr-xr-x | bin/virtme-prep-kdir-mods | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/virtme-prep-kdir-mods b/bin/virtme-prep-kdir-mods index d34e280..dd80ad5 100755 --- a/bin/virtme-prep-kdir-mods +++ b/bin/virtme-prep-kdir-mods @@ -1,12 +1,6 @@ #!/bin/sh # This is still a bit of an experiment. - -if ! [ -f modules.order ]; then - echo 'virtme-prep-kdir-mods must be run from a kernel build directory' >&2 - exit 1 -fi - FAKEVER=0.0.0 MODDIR=".virtme_mods/lib/modules/$FAKEVER" @@ -16,6 +10,7 @@ MODDIR=".virtme_mods/lib/modules/$FAKEVER" PATH=$PATH:/sbin:/usr/sbin if ! [ -f "modules.order" ]; then + echo 'virtme-prep-kdir-mods must be run from a kernel build directory' >&2 echo "modules.order is missing. Your kernel may be too old or you didn't make modules." >&2 exit 1 fi |