summaryrefslogtreecommitdiff
path: root/dracut.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dracut.sh')
-rwxr-xr-xdracut.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/dracut.sh b/dracut.sh
index e4c70439..4d17e4de 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -689,10 +689,11 @@ esac
abs_outfile=$(readlink -f "$outfile") && outfile="$abs_outfile"
-[[ -f $srcmods/modules.dep ]] || {
- dfatal "$srcmods/modules.dep is missing. Did you run depmod?"
- exit 1
-}
+if [[ -d $srcmods ]]; then
+ [[ -f $srcmods/modules.dep ]] || {
+ dwarn "$srcmods/modules.dep is missing. Did you run depmod?"
+ }
+fi
if [[ -f $outfile && ! $force ]]; then
dfatal "Will not override existing initramfs ($outfile) without --force"