[arch-projects] [PATCH] [mkinitcpio] init: Remove unneeded test

Dave Reisner d at falconindy.com
Wed Nov 16 12:17:00 EST 2011


On Wed, Nov 16, 2011 at 02:03:31PM -0300, Gerardo Exequiel Pozzi wrote:
> Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
> ---
>  init |    8 +++-----
>  1 files changed, 3 insertions(+), 5 deletions(-)
> 
> diff --git a/init b/init
> index 7cc2d47..53c64d5 100644
> --- a/init
> +++ b/init
> @@ -36,11 +36,9 @@ else
>      udevd_running=0
>  fi
>  
> -if [ -n "${disablehooks}" ]; then
> -    for d in ${disablehooks//,/ }; do
> -        eval "hook_${d}=disabled"
> -    done
> -fi
> +for d in ${disablehooks//,/ }; do
> +    eval "hook_${d}=disabled"
> +done
>  
>  earlymodules=${earlymodules//,/ }
>  if [ -n "${earlymodules## }" ]; then
> -- 
> 1.7.7.3
> 

I meant to merge with with the other patch that gets rid of the sed
pipe.

FYI, it doesn't look like busybox is going away any time soon, but your
work is still much appreciated. Adding in the various binaries is no
problem, but as soon as you're in a rescue shell, life becomes a lot
more interesting. busybox is a real pain in the ass, but it fills in
this particular gap rather nicely. Going forward, I think we're
just going to override busybox with the few binaries that we need from
real userland.

d
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20111116/9c12e464/attachment.asc>


More information about the arch-projects mailing list