Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187350 - baselayout-2.0.0_alpha4 does not mount filesystems and thus fails to start all init.d's
Summary: baselayout-2.0.0_alpha4 does not mount filesystems and thus fails to start al...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-01 08:37 UTC by Simonas Leleiva
Modified: 2007-08-02 13:42 UTC (History)
1 user (show)

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 Simonas Leleiva 2007-08-01 08:37:25 UTC
Happened couple of times as soon as I unmasked baselayout-2, but after couple of reboots everything went fine.
Now I had to shutdown my computer with pressing powerbutton, as Gentoo totally crashed (beryl stuff). This is the first error I get:
* Configuring kernel parameters ...    [ ok ]
/etc/init.d/bootmisc: line 36: /var/run/utmp: No such file or directory
... (and the like oč touch, chgrp, chmod commands on /var* (I have my var on separate partition))
* Updating environment ...
* /sbin/env-update: fopen `/etc/profile.env': Read-only file system
* Cleaning /var/lock, /var/run ...
/etc/init.d/bootmisc: line 53: find: command not found
<....>          [ ok ]
* Wiping /tmp directory ...
rm: cannot remove `gconfd-sledšge/lock/ior': Read-only file system
<...>
* Checking root filesystem ...
* Remounting root filsystem read/write
* Checking all filsystems
...
<all related errors of not mounted file systems and services failed to start>
...

This is (none).(none) (Linux i686 ......)
(none) login:

My FSs are ext3. /var, /boot, /usr are on separate partitions. Afterwards I have to run /etc/init.d/localmount as root to mount those partitions. Then after the system boots, but has no services (really anoying when I have to run needed this by hand..)

Reproducible: Sometimes

Steps to Reproduce:
1.Upgrade to baselayout-2
2.Poweroff system with power button (no graceful shutdown)
3.Power on :)




sledge@(none) ~ $ emerge --info
Portage 2.1.3_rc9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6-r0, 2.6.21-suspend2-r5-newra2 i686)
=================================================================
System uname: 2.6.21-suspend2-r5-newra2 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System release 2.0.0_alpha4
Timestamp of tree: Tue, 24 Jul 2007 15:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.6-r2, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march[equal tongue]entium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march[equal tongue]entium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributi ons/gentoo"
LANG="lt_LT.utf8"
LC_ALL="lt_LT.utf8"
LINGUAS="lt"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude[equal slant]distfiles --exclude[equal slant]local --exclude[equal slant]packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/xeffects /usr/portage/local/
layman/xeffects-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi aiglx alsa berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus divx dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gmedia gnome gpm gstreamer gtk gtk2 hal iconv isdnlog jpeg kerberos ldap libg++ mad midi mikmod mmx mmx ext mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3support quicktime readline real realmedia reflection sdl session slang spell spl sse sse2 ssl svg tcpd tetex tiff truetype truetype-fonts type1-fonts unicode v4l v4l2 vorbis win32codecs wmp x86 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="lt" USERLAND="GNU" VIDEO_CARDS="i810
vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COM
PRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-08-01 09:29:44 UTC
We've already made our svn more resiliant, much more so than alpha4. At any rate,  I can't repo this on my laptop! Try this in the meantime

rm -f /lib/rcscripts/init.d/deptree
/etc/init.d/keymaps restart

The 2nd command is safe and will trigger a rebuild of the deptree. See if that has any errors or not and if it fixes your reboot issue.
Comment 2 Simonas Leleiva 2007-08-01 15:26:31 UTC
No, did not work. In addition -- I don't get the output anywhere in first boot screen as compared to that later on when run as root: /etc/init.d/localmount (about /mnt/card not found and the like) -- but it still exists in rc-update (just is not run, as after * Remounting all file systems I immediately get * Setting user font (blaming on already cannot open font file default8x16)

Moreover, when I first emerged baselayout-2.0.0_alpha4, the emerge failed with an error after merging baselayout-2 in, so later on I did emerge -C baselayout-1...(the prev version). I needed to emerge baselayout-2 to get rid of such startup errors, now it does not help anymore).

How can I try out your svn, incorporate it nicely to the gentoo (dispatch-conf issues, etc.) ?

Thanks
Comment 3 Simonas Leleiva 2007-08-01 15:37:59 UTC
one more time, what happens:
# ~: emerge baselayout
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
Killed

~ # cat /var/tmp/portage/sys-apps/baselayout-2.0.0_alpha4/temp/build.log:
....
>>> Completed installing baselayout-2.0.0_alpha4 into /var/tmp/portage/sys-apps/baselayout-2.0.0_alpha4/image

ecompressdir: bzip2 -9 usr/share/man
strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment
   lib/rcscripts/bin/fstabinfo
   lib/rcscripts/bin/mountinfo
   lib/rcscripts/bin/rc-depend
   lib/libeinfo.so.0
   lib/librc.so.0
   bin/rc-status
   sbin/env-update
   sbin/rc
   sbin/rc-update
   sbin/runscript
   sbin/start-stop-daemon
EOF :)

Comment 4 Roy Marples (RETIRED) gentoo-dev 2007-08-01 15:41:56 UTC
So this is really a portage error installing baselayout?
Comment 5 Simonas Leleiva 2007-08-02 08:56:50 UTC
Yes, but it still merges in, I had baselayout-2 perfectly working until the power failure; what else information can I provide you?
Comment 6 Simonas Leleiva 2007-08-02 13:05:17 UTC
Ok, now I want my normal system back desperately, I downgraded to 1.12.10-r4 but then I started getting http://forums.gentoo.org/viewtopic-t-452643-highlight-svcdir.html problem, but there is no existing /sbin/livecd-functions.sh -- to delete as for a solution..

I again upgraded to alpha4, and now I get the exact error as during the first install:
...
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
!!! FAILED postinst: 2304

build.log:
...
>>> Completed installing baselayout-2.0.0_alpha4 into /var/tmp/portage/sys-apps/baselayout-2.0.0_alpha4/image/

ecompressdir: bzip2 -9 usr/share/man
strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment
   lib/rcscripts/bin/fstabinfo
   lib/rcscripts/bin/mountinfo
   lib/rcscripts/bin/rc-depend
   lib/libeinfo.so.0
   lib/librc.so.0
   bin/rc-status
   sbin/env-update
   sbin/rc
   sbin/rc-update
   sbin/runscript
   sbin/start-stop-daemon

and then for some super-strange reason I get all my /var/tmp and /var mount simple disappeared! (I don't know if this unmount happened during the first install as now I run from a chrooted LiveCD -- probably not, I would have noticed :))
I don't get such unmounts when i do `ebuild ... install and/or merge' though..
However then after emerge --resume starts `Performing Global Updates: /usr/portage/profiles/updates/4Q-2002 etc.'  and then /var/tmp and /var disappear again. /var/tmp and /var devices were fscked as clean..
Comment 7 Simonas Leleiva 2007-08-02 13:42:41 UTC
Ok, case somehow closed. SOLUTION: emerge/unmerge downgrade/upgrade from a LiveCD and you will have yourself a working system (after first restart /proc did not moutn, another bunch of errors, but less, after another restart everything started to work fine).