From ae5bc1fd8ab2aab28b335adf456bc41c0175c4e7 Mon Sep 17 00:00:00 2001 From: David Dillow Date: Mon, 1 Jun 2009 00:39:56 -0400 Subject: [PATCH] dracut-lib: add source_all to library The network root handler will need this. --- modules.d/99base/dracut-lib | 6 ++++++ modules.d/99base/init | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules.d/99base/dracut-lib b/modules.d/99base/dracut-lib index 1f31933f..7078827b 100644 --- a/modules.d/99base/dracut-lib +++ b/modules.d/99base/dracut-lib @@ -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 +} diff --git a/modules.d/99base/init b/modules.d/99base/init index ebbc6ada..73e96fd4 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -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"