Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248291 - sys-apps/util-linux: unable to `mount -o remount` when using journal=update
Summary: sys-apps/util-linux: unable to `mount -o remount` when using journal=update
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://article.gmane.org/gmane.linux....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-23 13:19 UTC by Carmine Paolino
Modified: 2008-11-29 06:16 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 Carmine Paolino 2008-11-23 13:19:06 UTC
emerging memtest86+ when /boot is mounted makes emerge fail.

Reproducible: Always

Steps to Reproduce:
1. mount /boot
2. emerge memtest86+
3.

Actual Results:  
>>> Merging sys-apps/memtest86+-2.01 to /
 * 
 * To avoid automounting and autoinstalling with /boot,
 * just export the DONT_MOUNT_BOOT variable.
 * 
 * 
 * Your boot partition, detected as being mounted as /boot, is read-only.
 * Remounting it in read-write mode ...
 * 
 * 
 * Unable to remount in rw mode. Please do it manually!
 * 
 * 
 * ERROR: sys-apps/memtest86+-2.01 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_preinst
 *             environment, line 1999:  Called mount-boot_pkg_preinst
 *             environment, line 1849:  Called mount-boot_mount_boot_partition
 *             environment, line 1815:  Called die
 * The specific snippet of code:
 *                   die "Can't remount in rw mode. Please do it manually!";
 *  The die message:
 *   Can't remount in rw mode. Please do it manually!
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/sys-apps/memtest86+-2.01/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/memtest86+-2.01/temp/environment'.
 * 
!!! FAILED preinst: 1


# mount
[cut]
/dev/sda1 on /boot type ext3 (rw,noatime,journal=update)

# emerge --info
Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r9 i686)
=================================================================
System uname: 2.6.25-gentoo-r9 i686 Pentium III (Katmai)
Timestamp of tree: Sun, 23 Nov 2008 03:22:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildsyspkg distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.supp.name/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="aac acl alsa apache2 apm avahi bash-completion berkdb bzip2 calendar cli cracklib crypt dbus dri exif fastcgi flac fortran ftp gd gdbm gif gpm hal hddtemp icecast iconv ipv6 isdnlog jabber java6 jpeg lm_sensors midi mmx mp3 mssql mudflap mysql ncurses nls nptl nptlonly ogg openmp pam pcre pdf perl php png pppd pulseaudio python readline reflection samba sasl session spl sqlite sse ssl subversion symlink sysfs tcpd tiff truetype unicode vim-syntax vorbis x86 xinetd xml xmlrpc xorg zip 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_user autoindex cache dav dav_fs deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Maciej Grela 2008-11-24 11:54:22 UTC
(In reply to comment #0)
> emerging memtest86+ when /boot is mounted makes emerge fail.
> 

Try to execute the following command:

mount -o remount,rw /boot; echo $?

It is the same thing the ebuild tries to do so any error messages would give us a hint what is happening. Also, check the output of 

dmesg | tail 

after executing the command.

Comment 2 Michal Januszewski (RETIRED) gentoo-dev 2008-11-27 12:52:48 UTC
If there is a bug, it is in the mount-boot eclass, not in the memtest86+ ebuild. Reassigning.
Comment 3 Carmine Paolino 2008-11-27 19:15:58 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > emerging memtest86+ when /boot is mounted makes emerge fail.
> > 
> 
> Try to execute the following command:
> 
> mount -o remount,rw /boot; echo $?
> 
> It is the same thing the ebuild tries to do so any error messages would give us
> a hint what is happening. Also, check the output of 
> 
> dmesg | tail 
> 
> after executing the command.
> 

# mount -o remount,rw /boot; echo $?
mount: /boot not mounted already, or bad option
32

# dmesg | tail
[cut]
EXT3-fs: cannot specify journal on remount

# grep boot /etc/fstab 
UUID=2cef7036-cd9e-4bfc-bda4-acd9f82bed3d	/boot		ext3		noauto,noatime,journal=update	1 2

I tried without specifying journal=update and it works:
# mount -o remount,rw /boot; echo $?
0

so I think the problem is that journal=update is not supported when remounting.
It may be nice if you warn users about that.
Thanks!
Comment 4 SpanKY gentoo-dev 2008-11-27 19:20:30 UTC
yes, i think this a bug in util-linux
Comment 5 SpanKY gentoo-dev 2008-11-29 06:16:57 UTC
putting journal= options in /etc/fstab makes no sense.  dont do it.  review the upstream mailing list for more info.