Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Will Woods <wwoods-H+wXaHxf7aLQT0dZR+AlfA <at> public.gmane.org>
Subject: [PATCH 2/2] make livenet module optional
Newsgroups: gmane.linux.kernel.initramfs
Date: Thursday 20th October 2011 17:57:24 UTC (over 6 years ago)
The livenet module was intended to be optional, so its check() function
in module-setup.sh should return 255, not 0.

This was causing systems without 'wget' to fail to build initramfs, as
in RHBZ#747632.
---
 modules.d/90livenet/module-setup.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules.d/90livenet/module-setup.sh
b/modules.d/90livenet/module-setup.sh
index 3ee7521..613a225 100755
--- a/modules.d/90livenet/module-setup.sh
+++ b/modules.d/90livenet/module-setup.sh
@@ -5,7 +5,7 @@ check() {
     # a live, host-only image doesn't really make a lot of sense
     [[ $hostonly ]] && return 1
     command -v wget || return 1
-    return 0
+    return 255
 }
 
 depends() {
-- 
1.7.6.4
 
CD: 3ms