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