base: save host_devs which we need bring up and process them with wait_for_dev

master
Harald Hoyer 2013-03-06 17:11:50 +01:00
parent a9c7dc74c4
commit ca36b9b8f8
1 changed files with 19 additions and 0 deletions

View File

@ -86,4 +86,23 @@ install() {
} > $initdir/etc/initrd-release
echo dracut-$DRACUT_VERSION > $initdir/lib/dracut/dracut-$DRACUT_VERSION
ln -sf initrd-release $initdir/etc/os-release

## save host_devs which we need bring up
(
. "$moddir/dracut-lib.sh"
for _dev in ${host_devs[@]}; do
_pdev=$(get_persistent_dev $_dev)

case "$_pdev" in
/dev/?*)
if ! dracut_module_included "systemd"; then
PREFIX="$initdir" wait_for_dev $_pdev
else
DRACUT_SYSTEMD=1 PREFIX="$initdir" wait_for_dev $_pdev
fi
;;
*) ;;
esac
done
)
}