Problems creating new rootfs (arch-chroot and mkintcpio lvm)

Ask questions about Arch Linux ARM. Please search before making a new topic.

Problems creating new rootfs (arch-chroot and mkintcpio lvm)

Postby starfry » Sun Feb 01, 2015 3:55 pm

I'm trying to install Arch on a new LVM volume on a Cubieboard2. I'm doing this from an installed image on a SD-card that was installed by following the installation instructions.

I have already done this with the same drive on an x86 machine without issue. Here is what I am doing:

$this->bbcode_second_pass_code('', '
$ mount /dev/lvm/root-arm /mnt
$ pacman -S arch-install-scripts
$ pacstrap /mnt
')

So far, so good. Now, I hit my first problem:

$this->bbcode_second_pass_code('', '
$ arch-chroot /mnt
$ unshare: unshare failed: Invalid argument
')

For some reason, "unshare" doesn't like the "--pid" argument. It's the last line of the "arch-chroot" file. So, to be able to carry on, I copied "arch-chroot" and changed the last line so it didn't use "unshare". I then proceeded:

$this->bbcode_second_pass_code('', '
$ pacman -S mkinitcpio linux-sun7i
$ sed -i '/^HOOKS=/s/block/block lvm2/' /etc/mkinitcpio.conf
$ mkinitcpio -g /boot/initramfs-linux.img
==> Starting build: 3.4.103-5-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [lvm2]
==> ERROR: module not found: `dm-cache'
==> ERROR: module not found: `dm-cache-mq'
-> 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.
')

So am I doing anything wrong? Surely "arch-chroot" should just work. And, why isn't my initramfs working properly when using the "lvm" hook ?

(I can get around the dm-cache problem by using systemd in the initramfs but that doesn't asnwer the question)

Pertinent details:
$this->bbcode_second_pass_code('', '
[root@alarm ~]# lvm version
LVM version: 2.02.114(2) (2014-11-28)
Library version: 1.02.92 (2014-11-28)
Driver version: 4.22.0
[root@alarm ~]# uname -a
Linux alarm 3.4.103-5-ARCH #1 SMP PREEMPT Fri Jan 16 06:34:00 MST 2015 armv7l GNU/Linux
[root@alarm ~]# pacman -Qo mkinitcpio
/usr/bin/mkinitcpio is owned by mkinitcpio 18-2
')
starfry
 
Posts: 24
Joined: Wed Jul 18, 2012 7:24 pm

Return to User Questions

Who is online

Users browsing this forum: No registered users and 6 guests