Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static: create device nodes if nvidia driver is loaded #259

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions hooks/001-extra-packages.chroot
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ PACKAGES=(
wpasupplicant
locales
cracklib-runtime
# This is a ub-device-create dependency
libpciaccess0
)

case "$(dpkg --print-architecture)" in
Expand All @@ -196,3 +198,11 @@ apt-get download snapd
dpkg --fsys-tarfile snapd_*.deb |
tar xf - ./usr/lib/systemd/system-generators/snapd-generator
rm snapd_*.deb

# Copy nvidia udev rules and dependencies (sources for this come from
# Canonical, not from Nvidia, see
# https://github.com/canonical/nvidia-graphics-drivers).
nvidia_common_pkg=nvidia-kernel-common-550
apt-get download "$nvidia_common_pkg"
dpkg --fsys-tarfile "$nvidia_common_pkg"_*.deb |
tar xf - ./sbin/ub-device-create ./lib/udev/rules.d/71-nvidia.rules
17 changes: 0 additions & 17 deletions static/usr/lib/udev/rules.d/71-nvidia.rules

This file was deleted.