slashbeast / better-initramfs

Small and reliable initramfs solution supporting (remote) rescue shell, lvm, dmcrypt luks, software raid, tuxonice, uswsusp and more.
BSD 3-Clause "New" or "Revised" License
318 stars 54 forks source link

luks_trim problems #12

Closed proteansec closed 11 years ago

proteansec commented 11 years ago

Hi,

Whenever I try to boot better-initramfs with the luks_trim parameter enabled in my grub.conf, the better-initramfs cannot boot. The problem is that I get the following error:

cryptsetup --allow-discards luksOpen /dev/sda3 enc_root failed

cryptsetup unknown action

But if I run the same command in a rescue console, it works. I've even noticed that luksOpen doesn't asks me for a password, so I guess it's not waiting for the password but continuing nevertheless. But this only happes when I use luks_trim option. If I boot without that option, everything is OK.

slashbeast commented 11 years ago

note to self: apperantly if the --allow-discards is after luksOpen, it does presume that it is not an option but a device path, however if user it manualy in rescueshell it seems to work.

slashbeast commented 11 years ago

Check the latest devel branch and let me know if the issue is fixed for you.

slashbeast commented 11 years ago

fix confirmed via irc.