Acknowledgement sent
to Ben Finney <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian sysvinit maintainers <[email protected]>.
(Mon, 19 Oct 2009 00:36:05 GMT) (full text, mbox, link).
Package: initscripts
Version: 2.87dsf-6
Severity: normal
When mounting NFS volumes, the ‘mountnfs.sh’ script needs the name
resolver to be started in order to resolve the NFS server's name. The
init script should have a ‘Required-Start’ field declaring a
dependency on the name resolver service.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (900, 'stable')
Architecture: powerpc (ppc64)
Kernel: Linux 2.6.30-2-powerpc64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_AU.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages initscripts depends on:
ii coreutils 7.4-2 The GNU core utilities
ii debianutils 3.2.1 Miscellaneous utilities specific t
ii libc6 2.9-25 GNU C Library: Shared libraries
ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip
ii mount 2.16.1-4 Tools for mounting and manipulatin
ii sysv-rc 2.87dsf-6 System-V-like runlevel change mech
ii sysvinit-utils 2.87dsf-6 System-V-like utilities
Versions of packages initscripts recommends:
ii e2fsprogs 1.41.9-1 ext2/ext3/ext4 file system utiliti
ii psmisc 22.8-1 utilities that use the proc file s
initscripts suggests no packages.
-- no debconf information
--
\ “Technology is neither good nor bad; nor is it neutral.” |
`\ —Melvin Kranzberg's First Law of Technology |
_o__) |
Ben Finney <[email protected]>
Acknowledgement sent
to Petter Reinholdtsen <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <[email protected]>.
(Mon, 19 Oct 2009 06:12:09 GMT) (full text, mbox, link).
Subject: Re: Bug#551555: mountnfs.sh: start should declare dependency on
name resolver
Date: Mon, 19 Oct 2009 08:02:04 +0200
[Ben Finney]
> When mounting NFS volumes, the ???mountnfs.sh??? script needs the
> name resolver to be started in order to resolve the NFS server's
> name. The init script should have a ???Required-Start??? field
> declaring a dependency on the name resolver service.
I agree. Which name resolver service did you have in mind.
Unfortunately $named can not be listed as a dependency for
mountnfs.sh, as it would generate a dependency loop. First of all,
all known implementations of $named start in rc2.d, while mountnfs.sh
need to happen in rcS.d/ if /usr/ is an NFS volume. Second,
mountnfs.sh is part of $remote_fs, which all known implementations of
$named depend on. For this to work the mountnfs.sh script need to be
split into one part executed from rcS.d/ taking care of mounting /usr/
(and perhaps other core file ystems), and another part executed from
rcS.d/ taking care of the rest, and several scripts in unrelated
packages need to move their scripts from rcS.d/ to rc2.d - rc5.d. Not
an easy task.
Happy hacking,
--
Petter Reinholdtsen
Acknowledgement sent
to Ben Finney <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <[email protected]>.
(Mon, 19 Oct 2009 06:57:03 GMT) (full text, mbox, link).
On 19-Oct-2009, Petter Reinholdtsen wrote:
> [Ben Finney]
> > The init script should have a ???Required-Start??? field declaring
> > a dependency on the name resolver service.
>
> I agree. Which name resolver service did you have in mind.
In my case ‘bind9’, but any name resolver would (I guess) meet the
requirement.
> For this to work the mountnfs.sh script need to be split into one
> part executed from rcS.d/ taking care of mounting /usr/ (and perhaps
> other core file ystems), and another part executed from rcS.d/
> taking care of the rest, and several scripts in unrelated packages
> need to move their scripts from rcS.d/ to rc2.d - rc5.d. Not an
> easy task.
I guess this bug report can be the focus of fixing that, then.
--
\ “Our task must be to free ourselves from our prison by widening |
`\ our circle of compassion to embrace all humanity and the whole |
_o__) of nature in its beauty.” —Albert Einstein |
Ben Finney <[email protected]>
Acknowledgement sent
to Rudy Zijlstra <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <[email protected]>.
(Sun, 01 Jul 2012 00:57:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Roger Leigh <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <[email protected]>.
(Sun, 01 Jul 2012 10:33:10 GMT) (full text, mbox, link).
Subject: Re: Bug#551555: mountnfs.sh: start should declare dependency on
name resolver
Date: Sun, 1 Jul 2012 11:30:18 +0100
On Sun, Jul 01, 2012 at 02:22:49AM +0200, Rudy Zijlstra wrote:
> Anything happening on this bug?
Not that I'm aware of.
There are other NFS issues outstanding as well, which could really use
the attention of an NFS expert.
NFS mounting a separate /usr is IMO not something we should support,
given that it makes no sense (just mount the rootfs on NFS directly).
If we were to relax this existing constraint, would that make the
dependencies any easier to fix?
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools
`- GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800
Acknowledgement sent
to Dmitry Bogatov <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <[email protected]>.
(Tue, 08 Jan 2019 12:39:08 GMT) (full text, mbox, link).
Subject: Re: Bug#551555: mountnfs.sh: start should declare dependency on name resolver
Date: Tue, 08 Jan 2019 12:37:37 +0000
control: tags -1 +moreinfo
[2009-10-19 08:02] Petter Reinholdtsen <[email protected]>
> [Ben Finney]
> > When mounting NFS volumes, the ???mountnfs.sh??? script needs the
> > name resolver to be started in order to resolve the NFS server's
> > name. The init script should have a ???Required-Start??? field
> > declaring a dependency on the name resolver service.
>
> I agree. Which name resolver service did you have in mind.
>
> Unfortunately $named can not be listed as a dependency for
> mountnfs.sh, as it would generate a dependency loop. First of all,
> all known implementations of $named start in rc2.d, while mountnfs.sh
> need to happen in rcS.d/ if /usr/ is an NFS volume.
Correct me if I am wrong, but on modern installations /usr is mounted by
initramfs (note usrmerge initiative), so I believe we could move
mountnfs.sh from S to (2 3 4 5) (with some modifications to not try
mount multiple times).
Objections?
Acknowledgement sent
to Petter Reinholdtsen <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <[email protected]>.
(Tue, 08 Jan 2019 15:33:09 GMT) (full text, mbox, link).
Subject: Re: Bug#551555: mountnfs.sh: start should declare dependency on name resolver
Date: Tue, 08 Jan 2019 16:32:07 +0100
[Dmitry Bogatov]
>> Unfortunately $named can not be listed as a dependency for
>> mountnfs.sh, as it would generate a dependency loop. First of all,
>> all known implementations of $named start in rc2.d, while mountnfs.sh
>> need to happen in rcS.d/ if /usr/ is an NFS volume.
>
> Correct me if I am wrong, but on modern installations /usr is mounted by
> initramfs (note usrmerge initiative), so I believe we could move
> mountnfs.sh from S to (2 3 4 5) (with some modifications to not try
> mount multiple times).
>
> Objections?
No objections, but note there used to be several scripts in rcS.d/
depending on /usr/ being mounted, and these need to be moved from S to
(2 3 4 5) first.
Also, I do not believe any initrd will NFS mount /usr/, so the use case
described do not really match your description. When /usr/ is NFS
mounted (for example because of size constraints), it is not possible to
merge / and /usr/.
--
Happy hacking
Petter Reinholdtsen
Acknowledgement sent
to Dmitry Bogatov <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <[email protected]>.
(Fri, 11 Jan 2019 12:39:05 GMT) (full text, mbox, link).
Subject: Re: Bug#551555: mountnfs.sh: start should declare dependency on name resolver
Date: Fri, 11 Jan 2019 12:36:43 +0000
[2019-01-08 16:32] Petter Reinholdtsen <[email protected]>
> [Dmitry Bogatov]
> >> Unfortunately $named can not be listed as a dependency for
> >> mountnfs.sh, as it would generate a dependency loop. First of all,
> >> all known implementations of $named start in rc2.d, while mountnfs.sh
> >> need to happen in rcS.d/ if /usr/ is an NFS volume.
> >
> > Correct me if I am wrong, but on modern installations /usr is mounted by
> > initramfs (note usrmerge initiative), so I believe we could move
> > mountnfs.sh from S to (2 3 4 5) (with some modifications to not try
> > mount multiple times).
> >
> > Objections?
>
> No objections, but note there used to be several scripts in rcS.d/
> depending on /usr/ being mounted, and these need to be moved from S to
> (2 3 4 5) first.
As far as I can tell, we can assume /usr being mounted (if it is
separate from /) at time /sbin/init is launched.
Another issue is that definition of $remote_fs is *all* file systems are
mounted. And there is some scripts, which 'Default-Start: S', depending
on $remote_fs. Seems to get this issue resolved, we need to get
following list of packages to get rid of dependency on $remote_fs or
move to (2 3 4 5) runlevels. Correct?
alsa-utils
arno-iptables-firewall
auto6to4
dpdk
eeepc-acpi-scripts
espeakup
fcoe-utils
ferm
initscripts
ipsec-tools
lm-sensors
netfilter-persistent
oss4-base
pidentd
policycoreutils
prads
pyroman
quota
racoon
screen
setserial
shorewall
shorewall-init
shorewall-lite
shorewall6
shorewall6-lite
switchconf
x11-common
zfs-fuse
zvbi
It results in 25 maintainers affected. Sounds like MBF.
> Also, I do not believe any initrd will NFS mount /usr/, so the use case
> described do not really match your description. When /usr/ is NFS
> mounted (for example because of size constraints), it is not possible to
> merge / and /usr/.
True. initramfs knows only two modes of operation -- either remote root
(nfs mode) or local root (local mode). It does not know, what to do, if
root is local and /usr is remote. Given upcoming `usrmerge', I do not
consider this limitation serious.
But if for some reason you prefer to have local root and remote /usr,
you could do this -- just modify your initramfs. I just conjured
following kludge for specific case of two virtual machines, 10.0.0.2 as
nfs-server and 10.0.0.3 as local-root,remote-usr:
ip link set up dev ens3
ip addr add 10.0.0.3/16 dev ens3
nfsmount 10.0.0.2:/usr /root/usr
^^^^^^^^ This snippet is to be inserted into mountroot()
function in /usr/share/initramfs-tools/scripts/local.
Probably, proper hook could be written and installed.
Acknowledgement sent
to Petter Reinholdtsen <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <[email protected]>.
(Fri, 11 Jan 2019 19:39:03 GMT) (full text, mbox, link).
Subject: Re: Bug#551555: mountnfs.sh: start should declare dependency on name resolver
Date: Fri, 11 Jan 2019 20:35:35 +0100
[Dmitry Bogatov]
>> No objections, but note there used to be several scripts in rcS.d/
>> depending on /usr/ being mounted, and these need to be moved from S to
>> (2 3 4 5) first.
>
> As far as I can tell, we can assume /usr being mounted (if it is
> separate from /) at time /sbin/init is launched.
Even on diskless workstations and thin clients using LTSP? It is the
use case I know about, but it is years since I tracked its status, so I
do not know if it is still an issue there.
> Another issue is that definition of $remote_fs is *all* file systems are
> mounted. And there is some scripts, which 'Default-Start: S', depending
> on $remote_fs. Seems to get this issue resolved, we need to get
> following list of packages to get rid of dependency on $remote_fs or
> move to (2 3 4 5) runlevels. Correct?
I can not confirm the list, but yes, every script in rcS.d/ depending on
$remote_fs will have to move to (2 3 4 5). Traditionally (as in
Solaris/SysV systems) mounting /usr/ was done in rc[2345].d/, but this
was for some strange reason never done in Debian. I tried to move
$remote_fs there, but ran out of steem before I managed to convince
enough maintainers to do the switch.
--
Happy hacking
Petter Reinholdtsen
Acknowledgement sent
to Dmitry Bogatov <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <[email protected]>.
(Sun, 13 Jan 2019 13:33:13 GMT) (full text, mbox, link).
Subject: Re: Bug#551555: mountnfs.sh: start should declare dependency on name resolver
Date: Sun, 13 Jan 2019 13:31:32 +0000
[2019-01-11 20:35] Petter Reinholdtsen <[email protected]>
> [Dmitry Bogatov]
> >> No objections, but note there used to be several scripts in rcS.d/
> >> depending on /usr/ being mounted, and these need to be moved from S to
> >> (2 3 4 5) first.
> >
> > As far as I can tell, we can assume /usr being mounted (if it is
> > separate from /) at time /sbin/init is launched.
>
> Even on diskless workstations and thin clients using LTSP? It is the
> use case I know about, but it is years since I tracked its status, so I
> do not know if it is still an issue there.
According to description of LTSP, it all depends on initramfs provided.
So, again, if you insist that / and /usr both remote and separate, you'd
have to slightly adjust your initramfs.
1. Thin-clients boot via a protocol called PXE (Pre-eXecution Environment)
2. PXE requests an IP address from a local DHCP server.
3. The DHCP server passes additional parameters to the thin-client and downloads a Linux initramfs filesystem image
via TFTP into a RAM disk on the client itself.
4. The thin-client then boots the downloaded Linux initramfs image, detects hardware, and connects to the LTSP
server's X session (normally handled by ldm).
> > Another issue is that definition of $remote_fs is *all* file systems are
> > mounted. And there is some scripts, which 'Default-Start: S', depending
> > on $remote_fs. Seems to get this issue resolved, we need to get
> > following list of packages to get rid of dependency on $remote_fs or
> > move to (2 3 4 5) runlevels. Correct?
>
> I can not confirm the list, but yes, every script in rcS.d/ depending on
> $remote_fs will have to move to (2 3 4 5). Traditionally (as in
> Solaris/SysV systems) mounting /usr/ was done in rc[2345].d/, but this
> was for some strange reason never done in Debian. I tried to move
> $remote_fs there, but ran out of steem before I managed to convince
> enough maintainers to do the switch.
Okay. I will initate discussion on debian-devel@ in preparation of mass
bug filling.
Acknowledgement sent
to Mark Hindley <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <[email protected]>.
(Fri, 21 Feb 2025 16:03:02 GMT) (full text, mbox, link).
Subject: Re: Bug#551555: mountnfs.sh: start should declare dependency on name
resolver
Date: Fri, 21 Feb 2025 16:01:30 +0000
Control: severity -1 wishlist
On Mon, Oct 19, 2009 at 11:29:24AM +1100, Ben Finney wrote:
> Package: initscripts
> Version: 2.87dsf-6
> Severity: normal
>
> When mounting NFS volumes, the ‘mountnfs.sh’ script needs the name
> resolver to be started in order to resolve the NFS server's name. The
> init script should have a ‘Required-Start’ field declaring a
> dependency on the name resolver service.
I know there was some discussion about refactoring the initscripts to achieve
this. However, catering for all varieties of remote fs mount is already
difficult and I propose to downgrade this to wishlist. Using the IP address in
/etc/fstab is probably better IMHO.
Mark
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.