Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408533 - app-misc/livecd-tools - /etc/init.d/gpm-pre sources /etc/sysconfig/mouse without checking
Summary: app-misc/livecd-tools - /etc/init.d/gpm-pre sources /etc/sysconfig/mouse with...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-17 01:05 UTC by Sebastian Pipping
Modified: 2012-10-11 03:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.