Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 408533

Summary: app-misc/livecd-tools - /etc/init.d/gpm-pre sources /etc/sysconfig/mouse without checking
Product: Gentoo Linux Reporter: Sebastian Pipping <sping>
Component: [OLD] Core systemAssignee: Gentoo LiveCD Package Maintainers <livecd>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: autobuilds   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sebastian Pipping gentoo-dev 2012-03-17 01:05:17 UTC
During minimal livecd boot I run into this error:

  /etc/init.d/gpm-pre: line 15: /etc/sysconfig/mouse: No such file or directory

These lines in there need to be guared by does-file-exist checks:

  source /etc/sysconfig/gentoo
  source /etc/sysconfig/mouse

These lines in hwsetup.sh seem to create /etc/sysconfig/mouse:

  for i in $(ls -1d /sys/class/input/mouse* 2>/dev/null); do
    [ -r "${i}/device/protocol" ] || continue
    p="$(cat ${i}/device/protocol 2>/dev/null)"
    d="$(cat ${i}/device/input*/name 2>/dev/null | tail -1)"
    [ -n "$d" ] && writeconfig "FULLNAME='$d'" /etc/sysconfig/mouse
    [ -n "$p" ] && writeconfig "XMOUSETYPE='$p'" /etc/sysconfig/mouse
    break
  done

In case I do not hear back within a week I may try to fix this myself.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-03 02:20:34 UTC
There is a FIXME in livecd-tools-*/init.d/gpm-pre that is probably related. Also, I assume livecd-tools would be running hwsetup from sys-apps/hwsetup. I don't see what would install hwsetup.sh.
Comment 2 William Hubbs gentoo-dev 2012-10-03 14:30:36 UTC
All, I have pushed commit 476fe7f to resolve this issue.

@jmbsvicetto:
Do you want to do a test build with livecd-tools-9999 to make sure
everything works or should I go ahead and release livecd-tools-2.0.3?
Comment 3 William Hubbs gentoo-dev 2012-10-11 03:12:15 UTC
This is included in livecd-tools-2.0.3.