You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qubes-installer-qubes-os/anaconda/dracut/driver-updates-genrules.sh

24 lines
822 B

#!/bin/bash
command -v wait_for_dd >/dev/null || . /lib/anaconda-lib.sh
# Don't leave initqueue until we've finished with the requested dd stuff
[ -f /tmp/dd_todo ] && wait_for_dd
if [ -f /tmp/dd_interactive ]; then
initqueue --onetime --settled --name zz_dd_interactive \
systemctl start driver-updates@$(find_tty).service
fi
# Run driver-updates for LABEL=OEMDRV and any other requested disk
for dd in LABEL=OEMDRV $(cat /tmp/dd_disk); do
when_diskdev_appears "$(disk_to_dev_path $dd)" \
driver-updates --disk $dd \$devnode
done
# force us to wait at least until we've settled at least once
echo '> /tmp/settle.done' > $hookdir/initqueue/settled/settle_done.sh
echo '[ -f /tmp/settle.done ]' > $hookdir/initqueue/finished/wait_for_settle.sh
# NOTE: dd_net is handled by fetch-driver-net.sh