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

Bug 485716

Summary: sys-apps/watchdog - consider moving /usr/sbin/watchdog to /sbin
Product: Gentoo Linux Reporter: grey dot <sickmind>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED WONTFIX    
Severity: normal Keywords: EBUILD
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild

Description grey dot 2013-09-23 08:40:05 UTC
In many cases kicking watchdog is required from the very beginning, since otherwise the system gets rebooted before it manages to mount /usr (especially if the latter requires fsck). A notable example would be a system with no initrd, with / partition on UBI and /usr on an embedded/external mmc card. Is this reason good enough?

Reproducible: Always
Comment 1 grey dot 2013-09-23 08:49:00 UTC
Created attachment 359288 [details]
ebuild
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-09-23 12:18:05 UTC
Comment on attachment 359288 [details]
ebuild

--- watchdog-5.13-r1.ebuild     2013-09-23 14:17:15.171886504 +0200
+++ -   2013-09-23 14:17:55.176345321 +0200
@@ -24,7 +24,7 @@
                append-cppflags $(${PKG_CONFIG} libtirpc --cflags)
                export LIBS+=" $(${PKG_CONFIG} libtirpc --libs)"
        fi
-       econf $(use_enable nfs)
+       econf --sbindir=/sbin $(use_enable nfs)
 }
 
 src_install() {
Comment 3 William Hubbs gentoo-dev 2013-09-26 17:10:42 UTC
Based on the council's decision in the 24-Sep meeting and the news item
that is going out on 27-Sep, I would recommend closing this as wontfix.
Comment 4 grey dot 2013-09-27 09:06:42 UTC
(In reply to William Hubbs from comment #3)
> Based on the council's decision in the 24-Sep meeting and the news item
> that is going out on 27-Sep, I would recommend closing this as wontfix.

Could you be more specific, Mr. Hubbs?
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2013-09-27 09:23:19 UTC
(In reply to grey dot from comment #4)
> (In reply to William Hubbs from comment #3)
> > Based on the council's decision in the 24-Sep meeting and the news item
> > that is going out on 27-Sep, I would recommend closing this as wontfix.
> 
> Could you be more specific, Mr. Hubbs?

If you need separate /usr, then you should use initramfs that mounts the /usr early so it's available for the rest of boot process
That's what the council voted for

However it's up to package maintainers if they want to support it by other means, like moving this binary in /sbin is still doable but the maintainer now has legimate reasons for refusing such request if he wants
Comment 6 SpanKY gentoo-dev 2013-10-15 19:53:19 UTC
busybox provides a watchdog and lives in / if you really want one