mount /dev/sda1 /mnt/sda1 mount --move /mnt/sda1 /tmp mount: "/dev/sda1 on /mnt/sda1 type jfs (rw) /mnt/sda1 on /tmp type none (rw)" Old mount entry is not removed, and new has invalid filesystem type. Reproducible: Always Steps to Reproduce: 1.emerge gentoo-sources-2.6.13 2.mount /dev/sda1 /mnt/sda1 && mount --move /mnt/sda1 /tmp 3.mount Actual Results: Old mount entry is not removed, and new has invalid filesystem type. Expected Results: Old entry should be moved to new location. Portage 2.0.51.19 (hardened/x86/2.6, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686) ================================================================= System uname: 2.6.13-gentoo i686 AMD Duron(tm) Gentoo Base System version 1.7.1 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 13:47:50)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -mcpu=pentium3 -fomit-frame-pointer -fforce-addr" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -mcpu=pentium3 -fomit-frame-pointer -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks loadpolicy prelink sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LC_ALL="pl_PL" LINGUAS="pl" MAKEOPTS="-j2" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X adns alsa apache2 bash-completion berkdb cdr crypt cups curl dlloader fam foomaticdb gd gdbm gif gimpprint gpm gstreamer gtk gtk2 hardened imagemagick imlib jack java junit kdeenablefinal ldap mad mmx ncurses nls nptl ogg opengl pam perl php pic png postgres ppds python qt readline ruby samba slang spell sqlite sse ssl tcltk tcpd tiff truetype userlocales vorbis x86 xine xml2 xmms zeroconf zlib linguas_pl userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LDFLAGS, PORTDIR_OVERLAY
the --move worked correctly, util-linux just didnt properly update the mtab file look at /proc/mounts and you should see that everything is in order
Created attachment 67647 [details, diff] util-linux-update-mtab-when-moving.patch try this patch please, seems to work for me
works fine
added to cvs and sent upstream, thanks