dracut-lib: add source_all to library
authorDavid Dillow <dave@thedillows.org>
Mon, 1 Jun 2009 04:39:56 +0000 (00:39 -0400)
committerDavid Dillow <dave@thedillows.org>
Mon, 1 Jun 2009 04:39:56 +0000 (00:39 -0400)
The network root handler will need this.

modules.d/99base/dracut-lib
modules.d/99base/init

index 1f31933..7078827 100644 (file)
@@ -14,3 +14,9 @@ getarg() {
     done
     return 1
 }
+
+source_all() {
+    local f
+    [ "$1" ] && [  -d "/$1" ] || return
+    for f in "/$1"/*.sh; do [ -f "$f" ] && . "$f"; done
+}
index ebbc6ad..73e96fd 100755 (executable)
@@ -14,12 +14,6 @@ emergency_shell()
     sh -i
 }
 
-source_all() {
-    local f
-    [ "$1" ] && [  -d "/$1" ] || return
-    for f in "/$1"/*.sh; do [ -f "$f" ] && . "$f"; done
-}
-
 export PATH=/sbin:/bin:/usr/sbin:/usr/bin
 export TERM=linux
 NEWROOT="/sysroot"