Browse files

util-linux-ng: fix reset update-alternative vs busybox

* we actually get the following log :
	update-alternatives: Error: cannot register alternative reset
	to /bin/reset since it is already registered to /usr/bin/reset
* the fix is to have util-linux-ng install reset in /usr/bin

Signed-off-by: Eric Bénard <eric@eukrea.com>
  • Loading branch information...
1 parent 84bfaa0 commit 506634928d13725b28caf4500316dc5c3da08eda @ebenard ebenard committed Sep 13, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 recipes/util-linux-ng/util-linux-ng.inc
View
6 recipes/util-linux-ng/util-linux-ng.inc
@@ -125,9 +125,9 @@ do_install () {
sbinprogs="agetty blockdev ctrlaltdel cfdisk"
sbinprogs_a="pivot_root hwclock mkswap shutdown mkfs.minix fsck.minix losetup swapon fdisk fsck blkid vigr vipw"
- usrbinprogs_a="chfn chsh hexdump last logger mesg newgrp renice wall setsid chrt"
+ usrbinprogs_a="chfn chsh hexdump last logger mesg newgrp renice wall setsid chrt reset"
usrsbinprogs_a="readprofile"
- binprogs_a="dmesg kill more umount mount login reset"
+ binprogs_a="dmesg kill more umount mount login"
if [ "${base_sbindir}" != "${sbindir}" ]; then
mkdir -p ${D}${base_sbindir}
@@ -214,7 +214,7 @@ pkg_postinst_${PN} () {
update-alternatives --install ${base_bindir}/login login login.${PN} 100
update-alternatives --install ${base_sbindir}/vipw vipw vipw.${PN} 100
update-alternatives --install ${base_sbindir}/vigr vigr vigr.${PN} 100
- update-alternatives --install ${base_bindir}/reset reset reset.${PN} 100
+ update-alternatives --install ${bindir}/reset reset reset.${PN} 100
update-alternatives --install ${bindir}/setsid setsid setsid.${PN} 100
update-alternatives --install ${bindir}/chrt chrt chrt.${PN} 100

0 comments on commit 5066349

Please sign in to comment.