4 DESCRIPTION="Installing driver updates..."
6 . /scripts/live-functions
21 if [ ! -d /tmp/driver-updates ]; then
25 log_begin_msg "$DESCRIPTION"
27 install_dir=/var/cache/driver-updates
29 mkdir "/root$install_dir"
30 cp -a /tmp/driver-updates/*.deb "/root$install_dir/"
32 # We cannot leave packages in a bad state. So if the install fails, remove
33 # it. This will get caught in casper.log.
34 for deb in "/root$install_dir"/*; do
35 if ! chroot /root dpkg -i "$install_dir/$deb"; then
36 chroot /root dpkg -P "${deb%%_*}"