archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
6.17k stars 536 forks source link

[2.7.0] Proprietary nvidia not installed when chose nvidia-proprietary #2253

Closed Xdavius closed 11 months ago

Xdavius commented 11 months ago

Reproductibility :

Screenshot_20231123_122320

Torxed commented 11 months ago

@svartkanin any idea what I missed?

Torxed commented 11 months ago

@Xdavius could you post the log?

svartkanin commented 11 months ago

The log would definitely help as that should show the installed drivers

Xdavius commented 11 months ago

@svartkanin any idea what I missed?

maybe... not friendly with python and trying to test now but, not sur the file i need to change :( I have looked in hardware.py and y see nvidia,nvidiaDKMS

for nvidiaDKMS, headers + dkms need to be installed for each different kernels

like nvidia-lts, the good standand module is nvidia-lts, it need to be selected il kernel lts is selected.

We need both options :

please, where in can find the log ? I send it to you ASAP

svartkanin commented 11 months ago

This is the installation https://github.com/archlinux/archinstall/blob/master/archinstall/lib/profile/profiles_handler.py#L215

Sorry only on my phone right now so can't dig into this atm

Xdavius commented 11 months ago

found this :

cmd_history.txt : https://termbin.com/4zu7 cmd_outpout.txt : https://termbin.com/3wxk

Torxed commented 11 months ago

No nvidia packages were installed by any command. (verified in cmd_history). Could you post /var/log/archinstall/install.log as it contains the config too?

Torxed commented 11 months ago

@svartkanin it looks like the graphics part never triggered, all other desktop packages were installed.

@Xdavius see above note, /var/log/archinstall/install.log : )

Xdavius commented 11 months ago

@svartkanin it looks like the graphics part never triggered, all other desktop packages were installed.

@Xdavius see above note, /var/log/archinstall/install.log : )

OK tomorrow now (day is passed here, need to go to work) =)

ComicShrimp commented 11 months ago

I've recently tried installing with similar choices and the nvidia proprietary drivers was not installed either, I'll get the logs to post here ASAP.

To complete the driver installation I had to install the nvidia package, configure the modeset with nvidia-drm.modeset=1 and add the modules to early loading as specified in Arch wiki in this link.

Torxed commented 11 months ago

I've recently tried installing with similar choices and the nvidia proprietary drivers was not installed either, I'll get the logs to post here ASAP.

To complete the driver installation I had to install the nvidia package, configure the modeset with nvidia-drm.modeset=1 and add the modules to early loading as specified in Arch wiki in this link.

Do you have the logs?

ComicShrimp commented 11 months ago

Here are the logs @Torxed

Logs from installation ``` Mounting /dev/nvme0n1p3: mount /dev/nvme0n1p3 /mnt/arch_btrfs Partition /dev/nvme0n1p3 is currently mounted at: ['/mnt/arch_btrfs'] Unmounting mountpoint: /mnt/arch_btrfs Hardware model detected: System manufacturer System Product Name; UEFI mode: True Processor model detected: AMD Ryzen 7 5700X 8-Core Processor Memory statistics: 31311588 available out of 32774892 total installed Could not detect virtual system: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none System is not running in a VM: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none Virtualization detected: None; is VM: False Graphics devices detected: dict_keys(['NVIDIA Corporation GA104 [GeForce RTX 3060 Ti Lite Hash Rate] (rev a1)']) Disk states before installing: [ { "children": [], "fsavail": 0, "fsroots": [ "." ], "fstype": "squashfs", "fsuse_percentage": "100%", "fsver": "4.0", "log_sec": 512, "mountpoint": "/run/archiso/airootfs", "mountpoints": [ "/run/archiso/airootfs" ], "name": "loop0", "partn": null, "parttype": null, "partuuid": null, "path": "/dev/loop0", "pkname": null, "pttype": null, "ptuuid": null, "rota": false, "size": "685 MiB", "tran": null, "type": "loop", "uuid": null }, { "children": [ { "children": [], "fsavail": null, "fsroots": [], "fstype": "iso9660", "fsuse_percentage": null, "fsver": "Joliet Extension", "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "sda1", "partn": 1, "parttype": "0x0", "partuuid": "fd38acc6-01", "path": "/dev/sda1", "pkname": "sda", "pttype": "dos", "ptuuid": "fd38acc6", "rota": true, "size": "791 MiB", "tran": null, "type": "part", "uuid": "2023-11-01-06-55-57-00" }, { "children": [], "fsavail": null, "fsroots": [], "fstype": "vfat", "fsuse_percentage": null, "fsver": "FAT16", "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "sda2", "partn": 2, "parttype": "0xef", "partuuid": "fd38acc6-02", "path": "/dev/sda2", "pkname": "sda", "pttype": "dos", "ptuuid": "fd38acc6", "rota": true, "size": "15 MiB", "tran": null, "type": "part", "uuid": "6BD4-6502" } ], "fsavail": null, "fsroots": [], "fstype": "iso9660", "fsuse_percentage": null, "fsver": "Joliet Extension", "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "sda", "partn": null, "parttype": null, "partuuid": null, "path": "/dev/sda", "pkname": null, "pttype": "dos", "ptuuid": "fd38acc6", "rota": true, "size": "59442 MiB", "tran": "usb", "type": "disk", "uuid": "2023-11-01-06-55-57-00" }, { "children": [ { "children": [], "fsavail": null, "fsroots": [], "fstype": "vfat", "fsuse_percentage": null, "fsver": "FAT32", "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "nvme0n1p1", "partn": 1, "parttype": "c12a7328-f81f-11d2-ba4b-00a0c93ec93b", "partuuid": "8ff0559b-0c2e-4fca-9bd6-567b080c4dc4", "path": "/dev/nvme0n1p1", "pkname": "nvme0n1", "pttype": "gpt", "ptuuid": "bfe50774-7cb9-495d-82f6-c6fce73da297", "rota": false, "size": "600 MiB", "tran": "nvme", "type": "part", "uuid": "4F83-8493" }, { "children": [], "fsavail": null, "fsroots": [], "fstype": "ext4", "fsuse_percentage": null, "fsver": "1.0", "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "nvme0n1p2", "partn": 2, "parttype": "0fc63daf-8483-4772-8e79-3d69d8477de4", "partuuid": "a48df786-50d1-4c42-b33a-0802a4532a13", "path": "/dev/nvme0n1p2", "pkname": "nvme0n1", "pttype": "gpt", "ptuuid": "bfe50774-7cb9-495d-82f6-c6fce73da297", "rota": false, "size": "1024 MiB", "tran": "nvme", "type": "part", "uuid": "8c3cad52-33f8-4961-b995-fd1e683d818e" }, { "children": [], "fsavail": null, "fsroots": [], "fstype": "btrfs", "fsuse_percentage": null, "fsver": null, "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "nvme0n1p3", "partn": 3, "parttype": "0fc63daf-8483-4772-8e79-3d69d8477de4", "partuuid": "63400b24-4460-43fe-b9c7-a0ad03ad5041", "path": "/dev/nvme0n1p3", "pkname": "nvme0n1", "pttype": "gpt", "ptuuid": "bfe50774-7cb9-495d-82f6-c6fce73da297", "rota": false, "size": "456237 MiB", "tran": "nvme", "type": "part", "uuid": "8f63038e-843e-4e71-a8ca-e5003a7aead1" } ], "fsavail": null, "fsroots": [], "fstype": null, "fsuse_percentage": null, "fsver": null, "log_sec": 512, "mountpoint": null, "mountpoints": [], "name": "nvme0n1", "partn": null, "parttype": null, "partuuid": null, "path": "/dev/nvme0n1", "pkname": null, "pttype": "gpt", "ptuuid": "bfe50774-7cb9-495d-82f6-c6fce73da297", "rota": false, "size": "457862 MiB", "tran": "nvme", "type": "disk", "uuid": null } ] Testing connectivity to the Arch Linux mirrors... Password strength: very weak Password strength: very weak Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/__init__.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/custom.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktop.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/minimal.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/server.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/tailored.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/xorg.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/applications/__init__.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/applications/pipewire.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/__init__.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/awesome.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/bspwm.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/budgie.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/cinnamon.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/cutefish.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/deepin.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/enlightenment.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/gnome.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/hyprland.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/i3.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/kde.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/lxqt.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/mate.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/qtile.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/sway.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/desktops/xfce4.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/__init__.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/cockpit.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/docker.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/httpd.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/lighttpd.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/mariadb.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/nginx.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/postgresql.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/sshd.py Importing profile: /usr/lib/python3.11/site-packages/archinstall/default_profiles/servers/tomcat.py -- Chosen configuration -- { "__separator__": null, "additional-repositories": [ "multilib" ], "advanced": true, "archinstall-language": "English", "audio_config": { "audio": "pipewire" }, "bootloader": "Systemd-boot", "config_version": "2.6.3", "debug": false, "disk_config": { "config_type": "default_layout", "device_modifications": [ { "device": "/dev/nvme0n1", "partitions": [ { "btrfs": [], "dev_path": null, "flags": [ "Boot", "ESP" ], "fs_type": "fat32", "mount_options": [], "mountpoint": "/boot", "obj_id": "641545f1-6eb3-4c51-aeea-c2ce9edc6ab4", "size": { "sector_size": { "unit": "B", "value": 512 }, "unit": "MiB", "value": 512 }, "start": { "sector_size": { "unit": "B", "value": 512 }, "unit": "MiB", "value": 1 }, "status": "create", "type": "primary" }, { "btrfs": [ { "compress": false, "mountpoint": "/", "name": "@", "nodatacow": false }, { "compress": false, "mountpoint": "/home", "name": "@home", "nodatacow": false }, { "compress": false, "mountpoint": "/var/log", "name": "@log", "nodatacow": false }, { "compress": false, "mountpoint": "/var/cache/pacman/pkg", "name": "@pkg", "nodatacow": false }, { "compress": false, "mountpoint": "/.snapshots", "name": "@.snapshots", "nodatacow": false } ], "dev_path": null, "flags": [], "fs_type": "btrfs", "mount_options": [ "compress=zstd" ], "mountpoint": null, "obj_id": "bf29b183-cfe1-4054-9fff-2d608078cd16", "size": { "sector_size": { "unit": "B", "value": 512 }, "unit": "B", "value": 479566061568 }, "start": { "sector_size": { "unit": "B", "value": 512 }, "unit": "MiB", "value": 513 }, "status": "create", "type": "primary" } ], "wipe": true } ] }, "disk_encryption": null, "hostname": "arch", "kernels": [ "linux" ], "locale_config": { "kb_layout": "us", "sys_enc": "UTF-8", "sys_lang": "pt_BR.UTF-8" }, "mirror_config": null, "network_config": { "type": "nm" }, "no_pkg_lookups": false, "ntp": true, "offline": false, "packages": [ "firefox", "git" ], "parallel downloads": 10, "profile_config": { "gfx_driver": "Nvidia (proprietary)", "greeter": "sddm", "profile": { "custom_settings": { "Kde": {} }, "details": [ "Kde" ], "main": "Desktop" } }, "save_config": null, "script": "guided", "silent": false, "swap": true, "timezone": "America/Araguaina", "version": "2.6.3" } Unmounting all existing partitions: /dev/nvme0n1 Unmounting: /dev/nvme0n1p1 Unmounting: /dev/nvme0n1p2 Unmounting: /dev/nvme0n1p3 Wiping partitions and metadata: /dev/nvme0n1 Creating partitions: /dev/nvme0n1 Type: primary Filesystem: fat32 Geometry: 2048 start sector, 1048576 length Type: primary Filesystem: btrfs Geometry: 1050624 start sector, 936652464 length Calling partprobe: partprobe /dev/nvme0n1 Unmounting all existing partitions: /dev/nvme0n1 Unmounting: /dev/nvme0n1p1 Unmounting: /dev/nvme0n1p2 Unmounting: /dev/nvme0n1p3 Error calling lsblk: lsblk: /dev/nvme0n1p3: not a block device { "blockdevices": [ ] } Error calling lsblk: lsblk: /dev/nvme0n1p3: not a block device { "blockdevices": [ ] } Error calling lsblk: lsblk: /dev/nvme0n1p3: not a block device { "blockdevices": [ ] } Formatting filesystem: /usr/bin/mkfs.fat -F32 /dev/nvme0n1p1 Calling partprobe: partprobe /dev/nvme0n1p1 partition information found: {'name': 'nvme0n1p1', 'path': '/dev/nvme0n1p1', 'pkname': 'nvme0n1', 'size': '512 MiB', 'log_sec': 512, 'pttype': 'gpt', 'ptuuid': 'd73da0b2-f841-4d5b-b632-b678bd918412', 'rota': False, 'tran': 'nvme', 'partn': 1, 'partuuid': 'c47eda0b-9920-4447-8aa1-753875b30010', 'parttype': 'c12a7328-f81f-11d2-ba4b-00a0c93ec93b', 'uuid': 'FEE6-C475', 'fstype': 'vfat', 'fsver': 'FAT32', 'fsavail': None, 'fsuse_percentage': None, 'type': 'part', 'mountpoint': None, 'mountpoints': [], 'fsroots': [], 'children': []} Formatting filesystem: /usr/bin/mkfs.btrfs -f /dev/nvme0n1p2 Calling partprobe: partprobe /dev/nvme0n1p2 partition information found: {'name': 'nvme0n1p2', 'path': '/dev/nvme0n1p2', 'pkname': 'nvme0n1', 'size': '457349 MiB', 'log_sec': 512, 'pttype': 'gpt', 'ptuuid': 'd73da0b2-f841-4d5b-b632-b678bd918412', 'rota': False, 'tran': 'nvme', 'partn': 2, 'partuuid': '5cfd5728-627b-4544-8847-c80543162f6b', 'parttype': '0fc63daf-8483-4772-8e79-3d69d8477de4', 'uuid': '24d2c984-aa16-4c82-a32a-d3484908fb34', 'fstype': 'btrfs', 'fsver': None, 'fsavail': None, 'fsuse_percentage': None, 'type': 'part', 'mountpoint': None, 'mountpoints': [], 'fsroots': [], 'children': []} Creating subvolumes: /dev/nvme0n1p2 Mounting /dev/nvme0n1p2: mount /dev/nvme0n1p2 /mnt/arch_btrfs Creating subvolume: @ Creating subvolume: @home Creating subvolume: @log Creating subvolume: @pkg Creating subvolume: @.snapshots Partition /dev/nvme0n1p2 is currently mounted at: ['/mnt/arch_btrfs'] Unmounting mountpoint: /mnt/arch_btrfs Starting installation Mounting partitions in order Mounting /dev/nvme0n1p2: mount -o subvol=@ /dev/nvme0n1p2 /mnt/archinstall Mounting /dev/nvme0n1p2: mount -o subvol=@home /dev/nvme0n1p2 /mnt/archinstall/home Mounting /dev/nvme0n1p2: mount -o subvol=@log /dev/nvme0n1p2 /mnt/archinstall/var/log Mounting /dev/nvme0n1p2: mount -o subvol=@pkg /dev/nvme0n1p2 /mnt/archinstall/var/cache/pacman/pkg Mounting /dev/nvme0n1p2: mount -o subvol=@.snapshots /dev/nvme0n1p2 /mnt/archinstall/.snapshots Mounting /dev/nvme0n1p1: mount /dev/nvme0n1p1 /mnt/archinstall/boot Waiting for time sync (systemd-timesyncd.service) to complete. Waiting for automatic mirror selection (reflector) to complete. Waiting for Arch Linux keyring sync (archlinux-keyring-wkd-sync) to complete. System is not running in a VM: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none The multilib flag is set. This system will be installed with the multilib repository enabled. The testing flag is not set. This system will be installed without testing repositories enabled. Installing packages: ['base', 'base-devel', 'linux-firmware', 'linux', 'btrfs-progs', 'amd-ucode'] Setting up swap on zram Installing packages: ['zram-generator'] Enabling service systemd-zram-setup@zram0.service Adding bootloader Systemd-boot to /dev/nvme0n1p1 Installing packages: ['efibootmgr'] System is not running in a VM: ['/usr/bin/systemd-detect-virt'] exited with abnormal exit code [1]: none Identifying root partition by PARTUUID: 5cfd5728-627b-4544-8847-c80543162f6b kernel parameters: root=PARTUUID=5cfd5728-627b-4544-8847-c80543162f6b zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs Installing packages: ['networkmanager'] Enabling service NetworkManager.service Creating user mario Setting password for mario Enabling sudo permissions for mario Installing audio server: Pipewire Installing packages: ['pipewire', 'pipewire-alsa', 'pipewire-jack', 'pipewire-pulse', 'gst-plugin-pipewire', 'libpulse', 'wireplumber'] Installing packages: ['firefox', 'git'] Installing packages: ['nano', 'vim', 'openssh', 'htop', 'wget', 'iwd', 'wireless_tools', 'wpa_supplicant', 'smartmontools', 'xdg-utils'] Installing profile Kde... Installing packages: ['plasma-meta', 'konsole', 'kwrite', 'dolphin', 'ark', 'plasma-wayland-session', 'egl-wayland'] Installing packages: ['sddm'] Enabling service sddm Activating systemd-timesyncd for time synchronization using Arch Linux and ntp.org NTP servers Enabling service systemd-timesyncd Setting password for root Setting keyboard language to us Keyboard language for this installation is now set to: us Updating /mnt/archinstall/etc/fstab For post-installation tips, see https://wiki.archlinux.org/index.php/Installation_guide#Post-installation Installation completed without any errors. You may now reboot. ```
Torxed commented 11 months ago

Ok so the main issue appears to be that:

"profile_config": {
    "gfx_driver": "Nvidia (proprietary)",
}

Doesn't actually end up in additional packages being installed some how. nvidia (of any kind) is clearly there, it's simply not translated into pacman/pacstrap.

svartkanin commented 11 months ago

Let me have a look at this today

svartkanin commented 11 months ago

I found the problem, @Torxed your nvidia-dkms PR may have been redundant as we're already installing that package https://github.com/svartkanin/archinstall/blob/f6446323fcc2c972f7b38fdf484771eb4510a2f5/archinstall/lib/profile/profiles_handler.py#L222-L222

I'll prepare a PR