5 # initramfs-tools header
21 # live-initramfs header
23 . /scripts/live-functions
25 log_begin_msg "Installing driver updates..."
27 # live-initramfs script
29 if [ ! -d /tmp/driver-updates ]; then
33 install_dir=/var/cache/driver-updates
35 mkdir "/root$install_dir"
36 cp -a /tmp/driver-updates/*.deb "/root$install_dir/"
38 # We cannot leave packages in a bad state. So if the install fails, remove
39 # it. This will get caught in live.log.
40 for deb in "/root$install_dir"/*; do
41 [ -f "$deb" ] || continue
43 if ! chroot /root dpkg -i "$install_dir/$debbase"; then
44 chroot /root dpkg -P "${debbase%%_*}"