FS#11610 - several initcpio hooks call /bin/replace, which does not exist

Attached to Project: Arch Linux
Opened by Dieter Plaetinck (Dieter_be) - Sunday, 28 September 2008, 11:31 GMT
Last edited by Roman Kyrylych (Romashka) - Sunday, 28 September 2008, 14:26 GMT
Task Type Bug Report
Category
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Several initcpio hooks call /bin/replace. However, /bin/replace (or any executable called 'replace' in $PATH) does not exist.

[dieter@dieter-mbp ~]$ grep '/bin/replace' /lib/initcpio/hooks/*
/lib/initcpio/hooks/encrypt: /bin/mknod "/dev/mapper/control" c $(/bin/replace "${dev_t}" ':')
/lib/initcpio/hooks/encrypt: set -- $(/bin/replace "${cryptkey}" ':'); ckdev=$1; ckarg1=$2; ckarg2=$3
/lib/initcpio/hooks/encrypt: set -- $(/bin/replace "${cryptdevice}" ':'); cryptdev="$1"; cryptname="$2";
/lib/initcpio/hooks/encrypt: do_oldcrypto $(/bin/replace -q "${crypto}" ':')
/lib/initcpio/hooks/lvm2: /bin/mknod "/dev/mapper/control" c $(/bin/replace "${dev_t}" ':')
[dieter@dieter-mbp ~]$ whereis replace
replace:
[dieter@dieter-mbp ~]$ which replace
which: no replace in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/share/eclipse:/opt/java/bin:/opt/java/jre/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core)

My arch install is brand new, I have the default packages installed (and some extra's). I can give whatever more info you want if you ask :-)
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Sunday, 28 September 2008, 14:26 GMT
Reason for closing:  Not a bug
Comment by Dieter Plaetinck (Dieter_be) - Sunday, 28 September 2008, 11:36 GMT
On a sidenote, the hooks do work for me. I use both the encrypt and lvm2 hook. (I get 'mknod: File exists - /dev/mapper/control' however but this is maybe normal? )

On another sidenote, this bug is probably invalid as the hooks are called in the initramfs environment, where /bin/replace will hopefully exist. correct?
Comment by Roman Kyrylych (Romashka) - Sunday, 28 September 2008, 14:26 GMT
$ pacman -Ql klibc-extras | grep replace
klibc-extras /usr/lib/klibc/bin/replace

The contents of /usr/lib/klibc is what is available in initcpio environment.

Loading...