FS#55041 - mkinitcpio problem LUKS on LVM with ArchLinux ODROID-C2
Attached to Project:
Arch Linux
Opened by Georgios F. (g000444555) - Saturday, 05 August 2017, 13:39 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 05 August 2017, 16:06 GMT
Opened by Georgios F. (g000444555) - Saturday, 05 August 2017, 13:39 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 05 August 2017, 16:06 GMT
|
Details
Description:
Since the ARM architecture is not officially supported perhaps I should not be reporting the issue here. However, it does seem to be related to the upstream mkinitcpio package. I have already reported the issue in the related forum (https://archlinuxarm.org) but haven't had any response yet (newest package fix request can be found here https://archlinuxarm.org/forum/viewtopic.php?f=15&t=11907) The problem: There seem to be a problem with the initramfs generated by mkinitcpio for a LUKS encrypted root partition on the ArchLinux ODROID-C2 platform. Additional info: * mkinitcpio 23-1.1 * mkinitcpio-busybox 1.26.1-1 * systemd 234.11-4 * uname -a: Linux alarm 3.14.79-27-ARCH #1 SMP PREEMPT Mon Jul 10 19:29:37 MDT 2017 aarch64 GNU/Linux Steps to reproduce: I encrypted the rootfs of the [url=https://archlinuxarm.org/platforms/armv8/amlogic/odroid-c2]ArchLinux ODROID-C2 image[/url] using [url=https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#LUKS_on_LVM]LUKS on LVM[/url] 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 [code] MODULES="xts sha512_generic dm-crypt dm-mod" HOOKS="base udev autodetect modconf block encrypt lvm2 filesystems keyboard fsck" [/code] Then generated a new initramfs image (https://wiki.archlinux.org/index.php/Mkinitcpio#Using_encrypted_root) [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. [/code] And edited `boot/boot.ini` to adjust the u-boot boot loader configuration to boot from the encrypted partition: [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" [/code] However, when I reboot I get no prompt to enter the LUKS password and the system does not boot. Here is the [url=https://gist.github.com/g000444555/2597ca81258d3b9f621945d5b6ffbb5c]serial console output[/url]. Also, the complete setup is summarised in this [url=https://gist.github.com/g000444555/96a90bc1470d4a2b59d6ac027e45f93f]gist[/url]. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Saturday, 05 August 2017, 16:06 GMT
Reason for closing: Not a bug
Additional comments about closing: As noted, ALARM is not supported
Saturday, 05 August 2017, 16:06 GMT
Reason for closing: Not a bug
Additional comments about closing: As noted, ALARM is not supported