Gentoo Archives: gentoo-user

From: Harley Peters <harley@×××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Diskless client will not shutdown.
Date: Tue, 21 Jul 2009 01:56:46
Message-Id: 20090720205639.1cf2ae9b@parity.biterror.net
In Reply to: [gentoo-user] Diskless client will not shutdown. by Harley Peters
1 On Thu, 9 Jul 2009 14:31:45 -0500
2 Harley Peters <harley@×××××××××××××.net> wrote:
3
4 > I am running a diskless Mythtv frontend client.
5 > Everything is working great accept it will not shutdown.
6 > It goes through all the steps of shutting down successfully including
7 > remounting any remaining file systems read only.
8 > But it never issues the power down command.
9 > Yes acpi is setup correctly.
10 > The runlevels look the same as all the other machines I have.
11 > Anybody have any idea what actually issues the power down command or
12 > where to even start looking ?
13 >
14 > emerge --info:
15 >
16 > Portage 2.2_rc33 (default/linux/amd64/2008.0/no-multilib, gcc-4.3.3,
17 > glibc-2.8_p20080602-r1, 2.6.30 x86_64)
18 > =================================================================
19 > System uname:
20 > Linux-2.6.30-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3600+-with-gentoo-2.0.1
21 > Timestamp of tree: Thu, 09 Jul 2009 14:00:15 +0000 ccache version 2.4
22 > [disabled] app-shells/bash: 3.2_p39 dev-lang/python: 2.5.4-r2,
23 > 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8
24 > dev-util/ccache: 2.4-r8
25 > dev-util/cmake: 2.6.3-r1
26 > sys-apps/baselayout: 2.0.1
27 > sys-apps/openrc: 0.4.3-r3
28 > sys-apps/sandbox: 2.0
29 > sys-devel/autoconf: 2.13, 2.63-r1
30 > sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11
31 > sys-devel/binutils: 2.18-r3
32 > sys-devel/gcc-config: 1.4.1
33 > sys-devel/libtool: 2.2.6a
34 > virtual/os-headers: 2.6.30
35 > ACCEPT_KEYWORDS="amd64 ~amd64"
36 > CBUILD="x86_64-pc-linux-gnu"
37 > CFLAGS="-O2 -march=athlon64 -msse3 -pipe"
38 > CHOST="x86_64-pc-linux-gnu"
39 > CONFIG_PROTECT="/etc"
40 > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
41 > CXXFLAGS="-O2 -march=athlon64 -msse3 -pipe"
42 > DISTDIR="/usr/distfiles"
43 > EMERGE_DEFAULT_OPTS="--keep-going --jobs=4 --load-average=6"
44 > FEATURES="collision-protect distlocks fixpackages parallel-fetch
45 > preserve-libs protect-owned sandbox sfperms strict unmerge-orphans
46 > userfetch userpriv usersandbox"
47 > GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/
48 > ftp://gentoo.cites.uiuc.edu/pub/gentoo/ http://lug.mtu.edu/gentoo/
49 > ftp://lug.mtu.edu/gentoo/ " LDFLAGS="-Wl,-O1" MAKEOPTS="-j4 -l4.50"
50 > PKGDIR="/usr/packages" PORTAGE_CONFIGROOT="/"
51 > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
52 > --compress --force --whole-file --delete --stats --timeout=180
53 > --exclude=/distfiles --exclude=/local --exclude=/packages"
54 > PORTAGE_TMPDIR="/dev/shm" PORTDIR="/usr/portage"
55 > PORTDIR_OVERLAY="/usr/local/portage"
56 > SYNC="rsync://192.168.1.100/gentoo-portage" USE="3dnow 3dnowext X acl
57 > alsa amd64 bzip2 caps cli cracklib crypt custom-cflags custom-cxxflags
58 > dbus dri gdbm gif gpm hal iconv ipv6 isdnlog jpeg kerberos midi mmx
59 > mmxext mng mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre
60 > perl pppd python qt3support readline reflection sdl session spl sse
61 > sse2 ssl ssse3 sysfs tcpd threads tiff truetype unicode vdpau xinerama
62 > xorg xv zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym
63 > copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa
64 > lfloat linear meter mmap_emul mulaw multi null plug rate route share
65 > shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias
66 > authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
67 > authz_groupfile authz_host authz_owner authz_user autoindex cache dav
68 > dav_fs dav_lock deflate dir disk_cache env expires ext_filter
69 > file_cache filter headers include info log_config logio mem_cache mime
70 > mime_magic negotiation rewrite setenvif speling status unique_id
71 > userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev
72 > keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633
73 > glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="iguanaIR"
74 > USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, FFLAGS,
75 > INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS,
76 > PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
77 >
78
79 Just in case anybody else runs into this the problem is in /etc/inittab
80 The following line should be changed:
81
82 l0s:0:wait:/sbin/halt -dhip
83
84 to this:
85
86 l0s:0:wait:/sbin/halt -dhp
87
88 The -i halt option turns off all network interfaces which is bad on a
89 diskless client.
90
91 Harley