tokiclover / mkinitramfs-ll

Lightweight, modular and powerfull initramfs generating tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

init device error on boot

nick-pelepchan opened this issue · comments

commented

I have been having some trouble getting your helpful script to work properly on my system. First off I am building a initramfs with gpg, luks and lvm and the keys are on a removable device.

mkifs-ll --gpg --lvm

this command seems to complete successfully. Upon restart of my system the script recognizes the removable device. The script then outputs this:

  • Removable Device Mounted
  • ROOT LV...
  • ...encrypted rootfs.
  • dev detached header doesn't exist.

It then drops into the minimal shell.

I have never setup or opened luks with the detached header option. Is it possible that the script that generates the initramfs is adding in this option?

Or perhaps there is an issue with my configuration? I have been looking through the scripts created for the initramfs and have found nothing that hints of a detached header....

Let me know what information or logs you need to further diagnose, thank you.

Your kernel cmdline seems to be at fault, so your kernel cmdline will be helpfull: cat /proc/cmdline. And note that a slash /' is a separator for detached headers! so you may be appending/dev/or a simply a slash/' to your PV(s). Take a look at the README file. I do not not remember if I tressed enough on that new /' slash separator: so/dev/' prefix may not be an option anymore.

New release fix the '/' slash separator issue: now the detached header sperator is a plus '+'.

issue closed, it should be a kernel cmdline issue: replaced that slash '/' separator that previously removed the optional '/dev/' prefix.

commented

I double checked my config and it was correct as far as not including any "/". I will have to check out my cmdline today, it is probably the issue. I will post the solution when I find it. Thanks again.

i also have this error with current git:

* [1]: _dev detached header doesn't exist.
* Dropping into a rescue shell ...
/init: line 1: can't create : nonexistent directory
/bin/sh: can't access tty:job control turened off
-(rsh:tty1:/)-#

my commandline:

BOOT_IMAGE=/kernel-genkernel-x86-3.6.11-gentoo ikroot=reg:sda1:/key iroot=rpool-ROOT izfs=sda2-a:sdb2-b