Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496724 - dev-vcs/monotone - init script hangs when MTN_KEY is not set (hostname --fqdn hangs)
Summary: dev-vcs/monotone - init script hangs when MTN_KEY is not set (hostname --fqdn...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-02 03:39 UTC by Xuefer
Modified: 2018-01-28 01:27 UTC (History)
3 users (show)

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 Xuefer 2014-01-02 03:39:37 UTC
boot stuck at "Caching service dependencies" again. this time, caused by monotone init script

to reproduce:
rm /etc/conf.d/monotone (or just remove MTN_KEY setting)
touch /etc/init.d/monotone (just trigger make re re-cache)
reboot

to reproduce and see what's happening:
boot into single user mode by init=/bin/bash
# mkdir /dev/pts
# mount -t devpts /dev/pts
# screen (or /usr/bin/sshd, or agetty? just to open multiple terminal)
# rc
 ... Caching service dependencies ..
in another terminal, do:
# ps -efH
... hostname --fqdn 

we can see the 'hostname --fqdn' just sit there

reason analyzed:
/etc/init.d/monotone is invoking `hostname --fqdn` even if only `/etc/init.d/monotone depend` is called
network is not provided at boot time but hostname --fqdn needs network, thus stuck

case that can't be reproduce:
MTN_KEY is set in /etc/conf.d/monotone, then hostname is not invoked to generate a default MTN_KEY, and the bug is not reproduced
Comment 1 Larry the Git Cow gentoo-dev 2018-01-28 01:27:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48cb223907cae5bbe36d9cd35fb10865e15c414b

commit 48cb223907cae5bbe36d9cd35fb10865e15c414b
Author:     Mikle Kolyada <zlogene@gentoo.org>
AuthorDate: 2018-01-28 01:23:07 +0000
Commit:     Mikle Kolyada <zlogene@gentoo.org>
CommitDate: 2018-01-28 01:27:26 +0000

    dev-vcs/monotone: remove last rited package
    
    Closes: https://bugs.gentoo.org/634316
    Closes: https://bugs.gentoo.org/434242
    Closes: https://bugs.gentoo.org/496724
    Closes: https://bugs.gentoo.org/526280
    Closes: https://bugs.gentoo.org/537572

 dev-vcs/monotone/Manifest                  |   2 -
 dev-vcs/monotone/files/hooks.lua           |   4 -
 dev-vcs/monotone/files/monotone-0.36.initd |  84 ---------------------
 dev-vcs/monotone/files/monotone.confd      |  25 ------
 dev-vcs/monotone/files/read-permissions    |   7 --
 dev-vcs/monotone/files/write-permissions   |   2 -
 dev-vcs/monotone/metadata.xml              |  15 ----
 dev-vcs/monotone/monotone-1.0-r4.ebuild    | 117 -----------------------------
 8 files changed, 256 deletions(-)