Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443060 - /lib64/rc/net/system.sh tries to create /etc/resolv.conf on readonly root filesystem
Summary: /lib64/rc/net/system.sh tries to create /etc/resolv.conf on readonly root fil...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard: openrc:oldnet
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-14 08:29 UTC by namelesspirate
Modified: 2013-04-25 23:08 UTC (History)
0 users

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 namelesspirate 2012-11-14 08:29:36 UTC
/lib64/rc/net/system.sh (line 56) tries to create /etc/resolv.conf while the root filesystem is still read-only.
Fresh gentoo install from minimal cd on amd64
Comment 1 SpanKY gentoo-dev 2012-11-14 23:29:51 UTC
by the time net scripts run, the rootfs should be rw.  please post detailed information about what it is you're booting as well as:
 - `emerge --info` (you should be posting this in every bug report)
 - version of openrc
 - `rc-status --all`
 - your /etc/fstab
 - your /proc/cmdline
Comment 2 namelesspirate 2012-11-15 07:22:38 UTC
>by the time net scripts run, the rootfs should be rw.
I agree when booting one can clearly see, that net scripts run before remounting root fs rw





emerge --info
Portage 2.1.11.31 (default/linux/amd64/10.0/server, gcc-4.5.4, glibc-2.15-r3, 3.5.7-gentoo x86_64)
=================================================================
System uname: Linux-3.5.7-gentoo-x86_64-QEMU_Virtual_CPU_version_-cpu64-rhel6-with-gentoo-2.1
Timestamp of tree: Wed, 14 Nov 2012 07:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ rsync://de-mirror.org/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://gentoo.mneisen.org/ http://mirror.netcologne.de/gentoo/ ftp://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ rsync://mirror.opteamax.de/gentoo/ http://mirror.opteamax.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://ftp.join.uni-muenster.de/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp-stud.hs-esslingen.de/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.ipv6.uni-muenster.de/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j 16"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext acl acpi amd64 apache2 berkdb bzip2 caps cli cracklib crypt curl cxx dri fortran ftp gd iconv imap ipv6 jpeg maildir memlimit mime mmx mmxext modules mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre php png posix pppd readline session sharedext sharedmem snmp spamassassin spell sse sse2 sse3 ssl tcpd threads tiff tokenizer truetype unicode utf8 vhosts vpopmail xml zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="alias auth_basic auth_digest authn_default authn_file authz_default authz_user authz_host setenvif filter deflate dir mime mime_magic negotiation rewrite vhost_alias log_config cgid" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, USE_PYTHON





rc-status --all
Runlevel: default
syslog-ng        [  started  ]
iptables         [  started  ]
mysql            [  started  ]
netmount         [  started  ]
sshd             [  started  ]
svscan           [  started  ]
apache2          [  stopped  ]
lighttpd         [  started  ]
ntp-client       [  started  ]
memcached        [  started  ]
udev-postmount   [  started  ]
unrealircd       [  stopped  ]
vixie-cron       [  started  ]
local            [  started  ]
Runlevel: sysinit
dmesg            [  started  ]
udev-mount       [  started  ]
udev             [  started  ]
net.eth1         [  started  ]
net.eth0         [  started  ]
devfs            [  started  ]
Runlevel: boot
hwclock          [  started  ]
modules          [  started  ]
fsck             [  started  ]
root             [  started  ]
mtab             [  started  ]
localmount       [  started  ]
sysctl           [  started  ]
bootmisc         [  started  ]
termencoding     [  started  ]
procfs           [  started  ]
keymaps          [  started  ]
hostname         [  started  ]
net.lo           [  started  ]
urandom          [  started  ]
swap             [  started  ]
Runlevel: shutdown
killprocs        [  stopped  ]
savecache        [  stopped  ]
mount-ro         [  stopped  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
Dynamic Runlevel: manual





cat /etc/fstab 
/dev/vda1               /boot           ext2            noauto,noatime  1 2
/dev/vda3               /               ext3            noatime         0 1
/dev/vda2               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0





cat /proc/cmdline 
root=/dev/vda3  console=tty0 console=ttyS0,115200n8
Comment 3 William Hubbs gentoo-dev 2012-11-17 19:49:35 UTC
(In reply to comment #2)
> rc-status --all
> Runlevel: default
> syslog-ng        [  started  ]
> iptables         [  started  ]
> mysql            [  started  ]
> netmount         [  started  ]
> sshd             [  started  ]
> svscan           [  started  ]
> apache2          [  stopped  ]
> lighttpd         [  started  ]
> ntp-client       [  started  ]
> memcached        [  started  ]
> udev-postmount   [  started  ]
> unrealircd       [  stopped  ]
> vixie-cron       [  started  ]
> local            [  started  ]
> Runlevel: sysinit
> dmesg            [  started  ]
> udev-mount       [  started  ]
> udev             [  started  ]
> net.eth1         [  started  ]
> net.eth0         [  started  ]
> devfs            [  started  ]

This is your issue. Please remove net.eth0 and net.eth1 from the sysinit runlevel and add them to either boot or default.

Report back whether this allows the net scripts to come up.
Comment 4 William Hubbs gentoo-dev 2012-11-21 21:21:28 UTC
Please re-open this bug after you have tested and report your resuults.

Thanks,

William
Comment 5 namelesspirate 2012-12-07 06:32:37 UTC
Adding the scripts to the boot runlevel solves the problem.
I don't know how the ended up in sysinit in the first place, I'm pretty sure I installed the system 100% according to the handbook.