qubes-installer-qubes-os/anaconda/dracut/updates-genrules.sh
Marek Marczykowski-Górecki f73b3741f0 Update anaconda to 20.25.16
Apply result of "git diff anaconda-18.37.11-1..anaconda-20.25.16-1" and
resolve conflicts.
2014-04-08 05:50:31 +02:00

25 lines
703 B
Bash
Executable File

#!/bin/sh
# generate udev rules for fetching updates
. /lib/anaconda-lib.sh
updates=$anac_updates
[ -n "$updates" ] || return
case $updates in
# updates=<url>: handled by livenet's fetch-liveupdate.sh
http*|ftp*|nfs*)
wait_for_updates
;;
# updates=<disk>:<path>
# <disk> is sdb, /dev/sdb, LABEL=xxx, UUID=xxx
# <path> defaults to /updates.img if missing
*)
# accept hd:<dev>:<path> (or cdrom:<dev>:<path>)
updates=${updates#hd:}; updates=${updates#cdrom:}
splitsep ":" "$updates" dev path
dev=$(disk_to_dev_path $dev)
when_diskdev_appears $dev fetch-updates-disk \$env{DEVNAME} $path
wait_for_updates
;;
esac