Skip to content

Commit

Permalink
util-linux-ng: fix reset update-alternative vs busybox
Browse files Browse the repository at this point in the history
* 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
Eric Bénard committed Sep 13, 2010
1 parent 84bfaa0 commit 5066349
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions recipes/util-linux-ng/util-linux-ng.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 5066349

Please sign in to comment.