Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276265 - sys-kernel/genkernel doesn't force fsck when /forcefsck exists
Summary: sys-kernel/genkernel doesn't force fsck when /forcefsck exists
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-02 17:39 UTC by Craig Andrews
Modified: 2011-08-06 10:28 UTC (History)
4 users (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 Craig Andrews gentoo-dev 2009-07-02 17:39:19 UTC
When /forcefsck exists in the root partition, the system should run fsck before mounting the partition for read/write.

When using genkernel with luks and dmraid (I'm not sure if this problem is a result of luks, raid, the combination, or not related at all), the boot up process ignores the /forcefsck file that exists on the root partition. This makes fscking the root partition incredibly difficult, as one has to use a live cd, set up dmraid, luks, etc just to check the disk.

Reproducible: Always

Steps to Reproduce:
1. use genkernel
2. create /fsck on the root file system
3. reboot

Actual Results:  
no fsck

Expected Results:  
fsck runs on startup

# emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 01 Jul 2009 13:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r5
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch prelink protect-owned sandbox sfperms strict unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,--hash-style=both,-z,relro,-O1,-z,now,--as-needed"
LINGUAS="en"
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/openrc /usr/local/portage/layman/webapps-experimental /usr/local/portage/layman/sabayon /usr/local/portage/layman/java-overlay /usr/local/portage/layman/sunrise /usr/local/portage/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aiglx alsa amd64 amr amrnb amrwb animation apache2 artworkextra asf aspnet2 asyncns authdaemond avahi avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo caps ccache cdda cddb cdparanoia cdr chm cli consolekit cracklib crypt css cups curl daap dbus dga dirac divx4linux dlloader dpms dri dts dv dvb dvd dvdr dvdread enca encode exif fam fame fat fbcondecor fbsplash ffmpeg fftw firefox flac foomaticdb fortran freetype ftp gaim gd gdbm geoip gif gimpprint glib glibc-omitfp glitz glut gnome gnutls gphoto2 gpm gstreamer gstreamer10 gtk gtk2 hal hardenedphp hbci howl howl-compat iconv ieee1394 imagemagick imap imlib innodb ipv6 isdnlog java java5 joystick jpeg jpeg2k junit kde kdehiddenvisibility lapack lcms libfame libnotify libsamplerate libusb lirc live lm_sensors lzo mad maildir mdnsresponder-compat midi mjpeg mmap mms mmx mmxext mng mono motif mozilla mozsvg mp3 mpeg mpeg2 mplayer mudflap multilib musepack mysql mythtv ncurses nemesi network nls nptl nptlonly ntfs offensive ofx ogg oggvorbis openal openexr opengl openmp pam pango pcre pdf pdflib perl pic pie png pnp policykit ppd ppds pppd prelude pulseaudio python qt qt3 qt3support qt4 quicktime rar readline reflection resolvconf rtc samba sasl schroedinger screensaver sctp sdl session sharedmem shout sni snmp sox speex spell spl sqlite sse sse2 ssl suspend2 svg sysfs tcpd theora threads tiff tls transcode truetype truetype-fonts type-fonts unicode unzip upnp ups usb v4l v4l2 vcd videos vorbis webdav webkit webservices wifi wmf wv x264 xanim xcb xinerama xml2 xorg xpm xprint xrandr xscreensaver xv xvid xvmc zeroconf zip 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 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 auth_digest proxy proxy_ajp proxy_connect proxy_http" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="mceusb2" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-07-04 22:44:47 UTC
/forcefsck should be detected by openrc.
Comment 2 Roy Marples 2009-07-05 08:15:31 UTC
(In reply to comment #1)
> /forcefsck should be detected by openrc.

It does, and correctly also.
I use lvm on my laptop and it works fine with that also.
I don't use either luks or dmraid.
Comment 3 Richard Scott 2009-08-13 20:41:05 UTC
The file /etc/init.d/checkfs is the file that looks for /forcefsck... its nothing to do with genkernel.

Do you have checkfs configured to start at boot?
Comment 4 Richard Cox 2009-09-12 16:35:29 UTC
(In reply to comment #3)
> The file /etc/init.d/checkfs is the file that looks for /forcefsck... its
> nothing to do with genkernel.
> 
> Do you have checkfs configured to start at boot?
> 

I'm having the same problem...no raid for lvm on my system...just a simple disk setup.  I've noticed that 'shutdown -r -F now' doesn't work either.  I'm using genkernel to build an initrd kernel module image only.  This has worked in the past.
Comment 5 Richard Cox 2009-09-12 16:39:57 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > The file /etc/init.d/checkfs is the file that looks for /forcefsck... its
> > nothing to do with genkernel.
> > 
> > Do you have checkfs configured to start at boot?
> > 
> 
> I'm having the same problem...no raid for lvm on my system...just a simple disk
> setup.  I've noticed that 'shutdown -r -F now' doesn't work either.  I'm using
> genkernel to build an initrd kernel module image only.  This has worked in the
> past.
> 

One other thing...there is not checkfs init script on my system...it looks like the fsck init script is supposed to be doing the job now.
Comment 6 Xake 2011-08-03 08:01:25 UTC
@candrews

Is this bug still relevant, or is it time for someone to mark this bug as "RESOLVED WORKSFORME"?