[prev in list] [next in list] [prev in thread] [next in thread] 

List:       debian-hurd
Subject:    Bug#737759: marked as done (hurd: Add init.d script to create /var/run/mtab)
From:       owner () bugs ! debian ! org (Debian Bug Tracking System)
Date:       2017-06-27 4:21:05
Message-ID: handler.737759.D737759.149853713228780.ackdone () bugs ! debian ! org
[Download RAW message or body]

Your message dated Tue, 27 Jun 2017 06:18:45 +0200
with message-id <2flefu69i6y.fsf@diskless.uio.no>
and subject line Re: Bug#737759: hurd: Add init.d script to create /var/run/mtab
has caused the Debian Bug report #737759,
regarding hurd: Add init.d script to create /var/run/mtab
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
737759: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737759
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems


Received: (at submit) by bugs.debian.org; 5 Feb 2014 19:12:11 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2-bugs.debian.org_2005_01_02
	(2011-06-06) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-9.8 required=4.0 tests=BAYES_00,FOURLA,HAS_PACKAGE,
	MURPHY_DRUGS_REL8,RCVD_IN_DNSWL_MED,T_RP_MATCHES_RCVD autolearn=ham
	version=3.3.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 17; hammy, 151; neutral, 110; spammy,
	0. spammytokens: hammytokens:0.000-+--UD:init.d, 0.000-+--initd,
	0.000-+--init.d, 0.000-+--reinholdtsen, 0.000-+--Reinholdtsen
Return-path: <pre@ulrik.uio.no>
Received: from mail-out1.uio.no ([129.240.10.57])
	by buxtehude.debian.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256)
	(Exim 4.80)
	(envelope-from <pre@ulrik.uio.no>)
	id 1WB7tK-0007xz-Qs
	for submit@bugs.debian.org; Wed, 05 Feb 2014 19:12:11 +0000
Received: from mail-mx6.uio.no ([129.240.10.40])
	by mail-out1.uio.no with esmtp (Exim 4.75)
	(envelope-from <pre@ulrik.uio.no>)
	id 1WB7tG-0006vi-Rk
	for submit@bugs.debian.org; Wed, 05 Feb 2014 20:12:06 +0100
Received: from diskless.uio.no ([129.240.6.26])
	by mail-mx6.uio.no with esmtp  (Exim 4.80.1)
	(envelope-from <pre@ulrik.uio.no>)
	id 1WB7tG-0004jQ-6C; Wed, 05 Feb 2014 20:12:06 +0100
Received: from pre by diskless.uio.no with local (Exim 4.72)
	(envelope-from <pre@ulrik.uio.no>)
	id 1WB7tF-0005MK-OF; Wed, 05 Feb 2014 20:12:05 +0100
From: Petter Reinholdtsen <pere@hungry.com>
To: submit@bugs.debian.org
Subject: hurd: Add init.d script to create /var/run/mtab
User-Agent: Notmuch/0.13.2 (http://notmuchmail.org) Emacs/23.4.1 (i486-pc-linux-gnu)
Date: Wed, 05 Feb 2014 20:12:05 +0100
Message-ID: <2flob2lz856.fsf@diskless.uio.no>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: Petter Reinholdtsen <petter.reinholdtsen@usit.uio.no>
X-UiO-Ratelimit-Test: rcpts/h 2 msgs/h 1 sum rcpts/h 4 sum msgs/h 1 total rcpts 10534 \
                max rcpts/h 25 ratelimit 0
X-UiO-Spam-info: not spam, SpamAssassin (score=-6.1, required=5.0, \
autolearn=disabled, RP_MATCHES_RCVD=-1.052,UIO_MAIL_IS_INTERNAL=-5, uiobl=NO, \
                uiouri=NO)
X-UiO-Scanned: A9D433CE1F22EF88E1ED45E75FC3DB61AE0DA114
X-UiO-SPAM-Test: remote_host: 129.240.6.26 spam_score: -60 maxlevel 80 minaction 0 \
                bait 0 mail/h: 1 total 2320 max/h 8 blacklist 0 greylist 1 ratelimit \
                0
X-UiOonly: B8C1DFE3C89AEB426E3ACF2B285B6C55E7C7B2E8
Delivered-To: submit@bugs.debian.org


Package: hurd
Version: 1:0.5.git20140203-1
Severity: important
Tags: patch

At the moment in unstable when booting Hurd using sysvinit, df and
friends do not work because /var/run/mtab do not exist.  It should point
to /proc/mounts, and this is done in /etc/hurd/rc when not booting using
sysvinit.

Instead of creating the symlink in /etc/hurd/rc, I suggest to create a
new init.d script to create this symlink, and drop the code from
/etc/hurd/rc.  The following script is tested and found to be working
well.  It creates /run/mtab because /var/run is a symlink to /run.

#! /bin/sh
### BEGIN INIT INFO
# Provides:          hurd-mtab
# Required-Start:    mountkernfs
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# Short-Description: Create /run/mtab -> /proc/mount symlink on Hurd
### END INIT INFO

# Author: Petter Reinholdtsen

# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/bin

# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
# and status_of_proc is working.
. /lib/lsb/init-functions

case "$1" in
  start)
	[ "$VERBOSE" != no ] && log_action_begin_msg "Creating /run/mtab symlink"
	ln -s /proc/mount /run/mtab
	case "$?" in
		0|1) [ "$VERBOSE" != no ] && log_action_end_msg 0 ;;
		2) [ "$VERBOSE" != no ] && log_action_end_msg 1 ;;
	esac
	;;
  stop|restart|force-reload|status)
	;;
  *)
	echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
	exit 3
	;;
esac

> 

-- 
Happy hacking
Petter Reinholdtsen



Received: (at 737759-done) by bugs.debian.org; 27 Jun 2017 04:18:52 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
	(2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.8 required=4.0 tests=BAYES_00,FOURLA,
	HAS_BUG_NUMBER,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,
	RP_MATCHES_RCVD,SPF_PASS autolearn=ham autolearn_force=no
	version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 16; hammy, 142; neutral, 31; spammy,
	0. spammytokens: hammytokens:0.000-+--UD:init.d, 0.000-+--initd,
	0.000-+--init.d, 0.000-+--H*u:Notmuch, 0.000-+--H*u:notmuchmail.org
Return-path: <pre@ulrik.uio.no>
Received: from mail-out02.uio.no ([2001:700:100:8210::71])
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.84_2)
	(envelope-from <pre@ulrik.uio.no>)
	id 1dPhxk-0007Tb-7T
	for 737759-done@bugs.debian.org; Tue, 27 Jun 2017 04:18:52 +0000
Received: from mail-mx04.uio.no ([129.240.10.25])
	by mail-out02.uio.no with esmtp (Exim 4.82_1-5b7a7c0-XX)
	(envelope-from <pre@ulrik.uio.no>)
	id 1dPhxe-0002LI-9G
	for 737759-done@bugs.debian.org; Tue, 27 Jun 2017 06:18:46 +0200
Received: from diskless.uio.no ([129.240.6.26])
	by mail-mx04.uio.no with esmtp  (Exim 4.82_1-5b7a7c0-XX)
	(envelope-from <pre@ulrik.uio.no>)
	id 1dPhxd-0005zT-Go; Tue, 27 Jun 2017 06:18:46 +0200
Received: from pre by diskless.uio.no with local (Exim 4.72)
	(envelope-from <pre@ulrik.uio.no>)
	id 1dPhxd-00057H-Av; Tue, 27 Jun 2017 06:18:45 +0200
From: Petter Reinholdtsen <pere@hungry.com>
To: 737759-done@bugs.debian.org
Subject: Re: Bug#737759: hurd: Add init.d script to create /var/run/mtab
In-Reply-To: <20170626234016.nwtxjvmqmshr72cg@var.youpi.perso.aquilenet.fr>
References: <2flob2lz856.fsf@diskless.uio.no> \
<handler.737759.B.139162753130787.ack@bugs.debian.org> \
<20140206111436.GA13272@ulrik.uio.no> <20140206114529.GN6751@type> \
<20140206115813.GF6637@diskless.uio.no> <20140206121218.GQ6751@type> \
<20170625072021.GA30385@diskless.uio.no> \
                <20170626234016.nwtxjvmqmshr72cg@var.youpi.perso.aquilenet.fr>
User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu)
Date: Tue, 27 Jun 2017 06:18:45 +0200
Message-ID: <2flefu69i6y.fsf@diskless.uio.no>
MIME-Version: 1.0
Content-Type: text/plain
Sender: Petter Reinholdtsen <petter.reinholdtsen@usit.uio.no>
X-UiO-SPF-Received: Received-SPF: neutral (mail-mx04.uio.no: 129.240.6.26 is neither \
permitted nor denied by domain of ulrik.uio.no) client-ip=129.240.6.26; \
                envelope-from=pre@ulrik.uio.no; helo=diskless.uio.no;
X-UiO-Ratelimit-Test: rcpts/h 2 msgs/h 1 sum rcpts/h 6 sum msgs/h 2 total rcpts 44647 \
                max rcpts/h 80 ratelimit 0
X-UiO-Spam-info: not spam, SpamAssassin (score=-4.0, required=5.0, \
autolearn=disabled, AWL=0.322,HEADER_FROM_DIFFERENT_DOMAINS=0.001,RP_MATCHES_RCVD=-0.001,SPF_NEUTRAL=0.652,UIO_MAIL_IS_INTERNAL=-5, \
                uiobl=NO, uiouri=NO)
X-UiO-Scanned: 7B417459EDA0F210F4F6A28672690E3C1CB06B46
X-UiO-SPAM-Test: remote_host: 129.240.6.26 spam_score: -39 maxlevel 80 minaction 0 \
                bait 0 mail/h: 1 total 47352 max/h 60 blacklist 0 greylist 1 \
                ratelimit 0
X-UiOonly: 050358B3A29F5F70ED5F7FF902755A0F83E26699


[Samuel Thibault]
> AIUI, now that we have /etc/mtab as a symlink to /proc/mounts, tools
> are happy already.

Right.  Then I close this issue to get it out of my list of open issues
to track.

-- 
Happy hacking
Petter Reinholdtsen



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic