[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

grub loopback boot with findiso on luks/dm-crypt



Hello,

a live iso lays on an encrypted usb flash drive with an additional grub
partition and should be started by opening the luks partition in grub
and loading the iso to ram (loopback+findiso+toram). Yet the remaining
problem is the findiso step, the system hangs printing
"modprobe: module crypto_LUKS not found in modules.dep"
and after I somehow wrote manual_add_modules dm_crypt into
/usr/share/initramfs-tools/hooks/something, it gives me
"modprobe: module luks not found in modules.dep"
(and when swap is present, also "module swap not found" and even "module
unkown"...)

So how can I make sure that cryptsetup is used right in initrd, has all
the modules and findiso can do the job?
Thank you in advance!

Regards,
Kai

  cryptomount -u <uuid>
  set root=crypto0
  loopback loop /isos/debian-sid-lxde.iso
  linux (loop)/live/vmlinuz-3.10-1-amd64
initrd=/live/initrd.img-3.10-1-amd64 quiet boot=live config
findiso=/isos/debian-sid-lxde.iso toram=filesystem.squashfs noeject
quickreboot hostname=debian username=liveuser nopersistence
  initrd (loop)/live/initrd.img-3.10-1-amd64

P.S.: Because initrd is normally 23 bytes long, I use "--interactive
shell" and recreate via "update-initramfs -c -t -k all". cryptsetup
complains about fstab and crypttab and so on as well, but this should be
ok I think. The iso works fine when used the "normal" way ;)


Reply to: