guns / go-luks-suspend

Lock encrypted LUKS volumes on suspend in Arch Linux
https://aur.archlinux.org/packages/go-luks-suspend/
85 stars 9 forks source link

Document uninstalling #11

Open besendorf opened 4 years ago

besendorf commented 4 years ago

Hi, I uninstalled go-luks-suspend with yay -R go-luks-suspend but when I try to update the kernel now the suspend module cant be found

(6/9) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.4.10-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [lvm2]
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
  -> Running build hook: [shutdown]
==> ERROR: Hook 'suspend' cannot be found
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.4.10-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [lvm2]
  -> Running build hook: [resume]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
  -> Running build hook: [shutdown]
==> ERROR: Hook 'suspend' cannot be found
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.
Fehler: Befehl konnte nicht korrekt ausgeführt werden
Maryse47 commented 4 years ago

suspend module is part of go-luks-suspend so obviously you can't use it after package removal.

Patola commented 2 years ago

suspend module is part of go-luks-suspend so obviously you can't use it after package removal.

I think his point is that the hook should be removed in the post-uninstall scripts, no?

Maryse47 commented 2 years ago

As long as there is post-install script that adds this hook, yes. But there is no such script. Adding the hook is manual process done by user therefore removing hook manually is logical and consistent step. keep in mind that manipulating mkinitcpio.conf automatically would be error prone with risk of locking out user from system on next boot. No tool in Arch does this.

Patola commented 2 years ago

Indeed, it's sensible that it's this way then. Thanks for the explanation.