#!/bin/sh PREREQ="udev" prereqs() { echo "$PREREQ"; } case $1 in prereqs) prereqs; exit 0 ;; esac . /usr/share/initramfs-tools/hook-functions # Ensure directory exists inside initramfs root if [ ! -e "${DESTDIR}/usr/lib/firmware/edid" ]; then mkdir -p "${DESTDIR}/usr/lib/firmware/edid" fi # Copy the file to the correct standard location if [ -r "/usr/lib/firmware/edid/edid.bin" ]; then cp "/usr/lib/firmware/edid/edid.bin" "${DESTDIR}/usr/lib/firmware/edid/" fi # Ensure graphics drivers load early enough to see the EDID manual_add_modules i915 radeon amdgpu exit 0