dracut: Fix error: local: can only be used in a function

Signed-off-by: Thomas Renninger <trenn@suse.de>