Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 362331 - sys-apps/baselayout-1.12.14-r1: /etc/init.d/netmount needs to be updated to reflect portmap -> rpcbind change
Summary: sys-apps/baselayout-1.12.14-r1: /etc/init.d/netmount needs to be updated to r...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Normal major with 1 vote (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-06 18:36 UTC by Jeroen Roos
Modified: 2011-05-16 03:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
This patch fixes the problem on my computer (netmount.patch,986 bytes, patch)
2011-04-06 18:37 UTC, Jeroen Roos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roos 2011-04-06 18:36:21 UTC
Recently, portage forced me to uninstall portmap to use rpcbind instead, however, since that change, my NFS disks do not get mounted at boot time. If I do "mount -a" after boot, they work fine.

This is caused by /etc/init.d/netmount, which depends on portmap instead of rpcbind.



Reproducible: Always




Portage 2.1.9.42 (default/linux/amd64/10.0/desktop, gcc-4.4.5, glibc-2.11.3-r0, 2.6.36-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r8-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-1.12.14
Timestamp of tree: Tue, 05 Apr 2011 21:45:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.cambrium.nl/pub/os/linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "      
LANG="en_GB.utf8"                                                                                                                                                             
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB nl"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/lightscribe /shared/portage"
SYNC="rsync://mirror.cambrium.nl/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 asf bash-completion berkdb branding bzip2 cairo cdda cddb cdio cdr cli contrast cracklib crypt css cups curl cxx dbus divx dri dts dvd dvdr dvdread emboss emerald encode exif fam ffmpeg firefox flac fontconfig fortran gdbm gdu gif gimp gimpprint gmedia gphoto2 gpm gtk hdri hotpixels http ical iconv ipod ipv6 jpeg kde lastfm lcms lensfun libnotify mad midi mikmod mmx mng modules mozbranding mp3 mp4 mpeg mudflap multilib musicbrainz mysql ncurses nls nptl nptlonly nsplugin nspluginwrapper obex ogg openal openexr opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support qt4 rar readline realmedia sdl semantic-desktop session sms spell sql sse sse2 ssl startup-notification stream svg sysfs tcpd theora threads tiff truetype type1 udev unicode usb v4l v4l2 video vorbis vpx webkit wmp x264 xcb xine xml xmp xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB nl" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roos 2011-04-06 18:37:11 UTC
Created attachment 268753 [details, diff]
This patch fixes the problem on my computer
Comment 2 SpanKY gentoo-dev 2011-04-06 23:12:39 UTC
except the rpcbind init.d script has a "provide portmap" which means no other script should need to change
Comment 3 Guido Jäkel 2011-04-07 13:18:19 UTC
I stepped into exactly the same issue and workaround. 

And I confirm the reason traced down by Jeroen.

A comment in /etc/init.d/netmount says:

  # Only try to mount NFS filesystems if portmap was started.
  # This is to fix "hang" problems for new users who do not
  # add portmap to the default runlevel.

And by replacing portmap by rpcbind this strikes: portmap isn't started and the following lines will disable the "mount -a" for nfs and nfs4.
Comment 4 tanstaafl@libertytrek.org 2011-05-07 22:48:02 UTC
Ok, just bumped into this one myself - so is this patch the correct fix or not? It did seem to fix it for now, but will this break something else later??
Comment 5 Guido Jäkel 2011-05-09 06:38:25 UTC
As the patch just changes the term 'portmap' by 'rpcbind' it have to be correct in it's scope and may not break more than before.

An enhanced version will try to determine what program have to be used, e.g.:

  for PORTMAPPER in rpcbind portmap; do PORTMAPPER=$(which $PORTMAPPER 2>/null) && break; done
  [ -x "$PORTMAPPER" ] || eerror "no portmapper found"

and use $PORTMAPPER afterwards.
Comment 6 SpanKY gentoo-dev 2011-05-16 03:35:07 UTC
openrc has different syntax (not that i see anything wrong with existing code)