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

Installation is unable to write to boot/efi #222

Open
sakrayaami opened this issue Mar 8, 2024 · 1 comment
Open

Installation is unable to write to boot/efi #222

sakrayaami opened this issue Mar 8, 2024 · 1 comment

Comments

@sakrayaami
Copy link

Hello,
I'm experiencing issues on an Arch based distro using the latest kernel and every available version of nvidia-all.
Error I get at the end of the installation is:
(11/15) Reloading system bus configuration... (12/15) Update Nvidia modules in initcpio dracut: Executing: /usr/bin/dracut --kver=6.6.21-1-lts --force dracut: Can't write to /boot/efi/842c13385be0448d93ab256428336a4b/6.6.21-1-lts: Directory /boot/efi/842c13385be0448d93ab256428336a4b/6.6.21-1-lts does not exist or is not accessible. dracut: Executing: /usr/bin/dracut --kver=6.7.9-arch1-1 --force dracut: Can't write to /boot/efi/842c13385be0448d93ab256428336a4b/6.7.9-arch1-1: Directory /boot/efi/842c13385be0448d93ab256428336a4b/6.7.9-arch1-1 does not exist or is not accessible. dracut: Executing: /usr/bin/dracut --kver=6.7.9-zen1-1-zen --force dracut: Can't write to /boot/efi/842c13385be0448d93ab256428336a4b/6.7.9-zen1-1-zen: Directory /boot/efi/842c13385be0448d93ab256428336a4b/6.7.9-zen1-1-zen does not exist oris not accessible. error: command failed to execute correctly (13/15) Updating the desktop file MIME type cache... (14/15) Performing snapper post snapshots for the following configurations... ==> root: 906 (15/15) Syncing all file systems... -> exit cleanup done

@raku-cat
Copy link

Personally have just been going without the hook and have had no issues, though I have my own hooks for dracut and such.
Here's a patch to quickly drop the lines that I've been using:

diff --git a/PKGBUILD b/PKGBUILD
index 7e0f708..350b6ba 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1891,7 +1891,6 @@ if [ "$_dkms" = "false" ] || [ "$_dkms" = "full" ]; then
                 install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
       fi
 
-      install -Dm644 "${srcdir}/nvidia-tkg.hook" "${pkgdir}/usr/share/libalpm/hooks/nvidia-tkg.hook"
   else
       pkgdesc="Full NVIDIA drivers' package for all kernels on the system (drivers and shared utilities and libraries)"
       depends=("nvidia-utils-tkg>=$pkgver" 'libglvnd')
@@ -1922,7 +1921,6 @@ if [ "$_dkms" = "false" ] || [ "$_dkms" = "full" ]; then
                 install -Dm644 /dev/stdin "${pkgdir}/etc/modules-load.d/${pkgname}.conf"
       fi
 
-      install -Dm644 "${srcdir}/nvidia-tkg.hook" "${pkgdir}/usr/share/libalpm/hooks/nvidia-tkg.hook"
   fi
   }
 source /dev/stdin <<EOF
@@ -2062,7 +2060,6 @@ if [ "$_dkms" = "true" ] || [ "$_dkms" = "full" ]; then
       cp -dr --no-preserve='ownership' kernel-dkms "${pkgdir}/usr/src/nvidia-${pkgver}"
 
 
-      install -Dm644 "${srcdir}/nvidia-tkg.hook" "${pkgdir}/usr/share/libalpm/hooks/nvidia-tkg.hook"
 
       install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 "${srcdir}/${_pkg}/LICENSE"
   fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants