FS#29427 - [mkinitcpio] failed to run command '/sbin/mkinicpio'

Attached to Project: Arch Linux
Opened by Ben Vassie (vassie) - Friday, 13 April 2012, 11:37 GMT
Last edited by Dave Reisner (falconindy) - Friday, 13 April 2012, 20:27 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture i686
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
initicpio images fail to build after configuring system
Executing chroot /mnt /sbin/mkinitcpio -p linux >>/var/log/aif/mkinitcpio.log 2>&1\n
chroot: failed to run command '/sbin/mkinicpio' : No such file or directory

Additional info:
mkinitcpio-0.8.7-1-any.pkg.tar.xz

Steps to reproduce:
Fresh install using archlinux-2011.08.19-netinstall-dual.iso
initicpio images fail to build after configuring system
Executing chroot /mnt /sbin/mkinitcpio -p linux >>/var/log/aif/mkinitcpio.log 2>&1\n
chroot: failed to run command '/sbin/mkinicpio' : No such file or directory
This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 13 April 2012, 20:27 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#29420 
Comment by Ben Vassie (vassie) - Friday, 13 April 2012, 12:09 GMT
Unless I'm mistaken, isn't mkinitcpio in /bin not /sbin?
Comment by Dave Reisner (falconindy) - Friday, 13 April 2012, 12:41 GMT
'type -p' or 'which' or 'pacman -Ql' would tell you It's in /usr/bin. The real problem here is that AIF doesn't want to do a path lookup.
Comment by Ben Vassie (vassie) - Friday, 13 April 2012, 13:02 GMT
type -p mkinitcpio says /sbin/mkinitcpio, I'm still booted into the live environment and mkinitcpio is indeed in /sbin ?
Comment by Dave Reisner (falconindy) - Friday, 13 April 2012, 13:03 GMT
On the install CD it does...
Comment by Trent (trentzb) - Friday, 13 April 2012, 19:19 GMT
I am using archlinux-2011.08.19-netinstall-dual.iso. I also see that AIF is doing a chroot to /mnt to run mkinitcpio where mkinitcpio does not exist in /sbin or /bin but /usr/bin rather. I just did a symlink of /usr/bin/mkinitcpio to /sbin and AIF continues just fine. Was this a recent change in mkinitcpo location?
Comment by Dave Reisner (falconindy) - Friday, 13 April 2012, 19:20 GMT
No, it was removal of a symlink. mkinitcpio has been in /usr/bin for several months now.
Comment by Trent (trentzb) - Friday, 13 April 2012, 19:45 GMT
I see it was removed a few days ago in 0.8.7-1, why was that?

Loading...