Hi,
I'm having problem with creating a bootable initramfs for LUKS encrypted root partition using mkinitcpio.
I am trying to encrypt the rootfs of the ArchLinux ODROID-C2 image using LUKS on LVM
According to instructions, I edited `/etc/mkinitcpio.conf`, and added `encrypt lvm2` BEFORE `filesystems` in `HOOKS`, and `xts sha512-generic dm-crypt dm-mod` to `MODULES`, as follows
$this->bbcode_second_pass_code('', '
MODULES="xts sha512_generic dm-crypt dm-mod"
HOOKS="base udev autodetect modconf block encrypt lvm2 filesystems keyboard fsck"
')
Then generated a new initramfs image (https://wiki.archlinux.org/index.php/Mk ... ypted_root)
$this->bbcode_second_pass_code('', '
# mkinitcpio -p linux-odroid-c2
==> Building image from preset: /etc/mkinitcpio.d/linux-odroid-c2.preset: 'default'
-> -k 3.14.79-27-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.14.79-27-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [encrypt]
-> Running build hook: [lvm2]
==> ERROR: module not found: `dm_cache_smq'
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> 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.
')
And edited `boot/boot.ini` to adjust the u-boot boot loader configuration to boot from the encrypted partition:
$this->bbcode_second_pass_code('', '
setenv bootargs "root=/dev/mapper/vg-root cryptdevice=/dev/mmcblk0p2:lvm rootwait ro ${condev} no_console_suspend hdmitx=${cec} ${forcergb} hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes elevator=noop disablehpd=${hpd} ${cmode} max_freq=${max_freq} maxcpus=${maxcpus} monitor_onoff=${monitor_onoff} disableuhs=${disableuhs} mmc_removable=${mmc_removable} usbmulticam=${usbmulticam} net.ifnames=0"
')
When I reboot the screen is completely blank even though the blue led keeps blinking. The system does not boot.
Could you please let me know whether I'm missing something?