Marvin Renich <m...@renich.org> writes:

> I think what is needed is for nvidia-kernel-{legacy-.*}?dkms
> and nvidia-{legacy-.*}?driver to each have their own copy of the
> nvidia.ids file (4K).  Then, during preinst, check if the unpacked (new)
> version of that file contains the pci id for the GPU.  If it does,
> continue with the installation (the hardware is still supported).

You can't access files from your package during preinst.  preinst by
definition happens before you've been unpacked.  You'd have to embed the
list directly in the preinst script.

> One thing I am not sure about is whether the unpacked files are moved
> into their proper place in the file system before or after running the
> preinst script.

After.

-- 
Russ Allbery (r...@debian.org)               <http://www.eyrie.org/~eagle/>


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to