cornelinux / yubikey-luks

Two factor authentication for harddisk encryption
615 stars 58 forks source link

suspend service does not unmount correctly #68

Closed ghost closed 3 years ago

ghost commented 3 years ago

I can only suspend my system once after a reboot. The next time I try to suspend, I get the error:

umount: /run/initramfs/dev: target is busy.
umount: /run/initramfs: target is busy.

This doesn't happen if I disable the yubikey-luks-suspend service, so I'm guessing it's something related to that

Vincent43 commented 3 years ago

Please try following:

  1. Find /usr/lib/yubikey-luks/yubikey-luks-suspend file and open in text editor
  2. Findmountpoint -q "${INITRAMFS_DIR}${p}" && umount "${INITRAMFS_DIR}${p}" line.
  3. Add -l option to umount call like mountpoint -q "${INITRAMFS_DIR}${p}" && umount -l "${INITRAMFS_DIR}${p}"
  4. Retest suspend again
ghost commented 3 years ago

It works with that patch, thank you :+1:

Vincent43 commented 3 years ago

Thx for testing. PR opened here: https://github.com/cornelinux/yubikey-luks/pull/69

dzatoah commented 3 years ago

Im having a similar problem:

umount: /run/initramfs: target is busy.
Press ENTER to continue.

/usr/lib/yubikey-luks/yubikey-luks-suspend: Zeile 64: BIND_MOUNTED ist nicht gesetzt.
umount: /run/initramfs: target is busy.
Press ENTER to continue.

This also doesn't happen if I disable the yubikey-luks-suspend service.. I built the latest git version.