FS#29420 - chroot: failed to run command `/sbin/mkinitcpio': No such file or directory"
Attached to Project:
Release Engineering
Opened by Catalin (acan) - Friday, 13 April 2012, 05:29 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Monday, 26 November 2012, 04:53 GMT
Opened by Catalin (acan) - Friday, 13 April 2012, 05:29 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Monday, 26 November 2012, 04:53 GMT
|
Details
Description: Arch fails to install.
It is not possible to finish the "Configure system" step because it gives the following error: "MKINITCPIO FAILED - SYSTEM MAY NOT BOOT STARTING mkinitcpio . Executing chroot /mnt /sbin/mkinitcpio -p linux >>/var/log/aif/mkinitcpio.log 2>&1\n chroot: failed to run command `/sbin/mkinitcpio': No such file or directory" I think it is having something with the fresh mkinitcpio update (0.8.7-1). |
This task depends upon
Closed by Gerardo Exequiel Pozzi (djgera)
Monday, 26 November 2012, 04:53 GMT
Reason for closing: Deferred
Monday, 26 November 2012, 04:53 GMT
Reason for closing: Deferred
It says that I can continue on my own risk and I can install the grub, so yes, I can boot.
It seems that the installation from the cd goes fine, and this make me think that the newer related packages, from remote repos, have some problems.
* I followed /arch/setup until the error.
* I opened a separated virtual shell, without closing the installation program
* I created a sane environment for chroot.
cd /mnt
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
as described in Chroot ArchWiki.
* I entered as chroot
chroot /mnt /bin/bash
* I performed
/sbin/mkinitcpio -p linux
without any error. In my initial tests this command complainted about missing /dev, so I suspect this is the reason of the problem.
I open again the virtual shell with the installer (ctrl-alt-f1). I says that it is all ok also if its mkinitcpio command was failed, and I execute the last step of the installation.
See this changelog:
https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/mkinitcpio&id=8431419a99d509c4d7fd4b00f9536aa972450169
- ln -s /usr/bin/mkinitcpio "$pkgdir/sbin/mkinitcpio"
Is that normal? If not, this should be assigned to Dave Reisner.
PS: Massimo, are you sure you used "/sbin/mkinitcpio" ? This is surprising, since the symlink is not created anymore.