FS#14625 - [mkinitcpio] Missing dependency: file
Attached to Project:
Arch Linux
Opened by Kenni Lund (Kenni) - Thursday, 07 May 2009, 21:19 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 31 May 2009, 13:20 GMT
Opened by Kenni Lund (Kenni) - Thursday, 07 May 2009, 21:19 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 31 May 2009, 13:20 GMT
|
Details
Description:
The package "file" should be added as dependency to mdadm or mkinitcpio. As described in http://www.archlinux.org/pipermail/arch-dev-public/2009-March/010567.html I changed the mkinitcpio hook "raid-partitions" to "mdadm". But this results in an error, as the command "file" is required, which wasn't installed on my system: --- >>> Generating initial ramdisk, using mkinitcpio. Please wait... ==> Building image "default" ==> Running command: /sbin/mkinitcpio -k 2.6.29-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img :: Begin dry run :: Parsing hook [base] :: Parsing hook [udev] :: Parsing hook [autodetect] :: Parsing hook [pata] :: Parsing hook [scsi] :: Parsing hook [sata] :: Parsing hook [mdadm] Custom /etc/mdadm.conf file will be used in initramfs for assembling arrays. /lib/initcpio/functions: line 186: file: command not found ERROR: unknown type '' for binary '/sbin/mdassemble.static' :: Parsing hook [usbinput] :: Parsing hook [keymap] :: Parsing hook [filesystems] :: Generating module dependencies :: Generating image '/boot/kernel26.img'...SUCCESS ==> SUCCESS --- Additional info: mdadm 2.6.9-1 mkinitcpio 0.5.23-1 kernel26 2.6.29.2-1 |
This task depends upon
I did a core install to begin with, it seems like the file package was removed when it was marked as an unneeded dependency.
You need to be carefull when removing these "unneeded dependency" and check what they are. Problably other core packages would fall in the same category than file. Here, file is listed as "Explicitly installed". Maybe you didn't installed all of base when you installed Arch. Running 'pacman -S base' will make them listed as "Explicitly installed".
But I wonder how "file" ended up as a unneeded dependency on my system. I never unselect packages from base on initial install and I surely didn't do it on this install to save a few MBs, as the system has a 3TB RAID array. However, it is a quite old installation from 2007, so something must have gone wrong down the path.