From: Andreas Haumer <andreas@xss.co.at>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: lkml <linux-kernel@vger.kernel.org>, alan@lxorguk.ukuu.org.uk
Subject: 2.4.22-pre4: devfs on initrd stays busy after pivot_root
Date: Tue, 29 Jul 2003 16:08:23 +0200 [thread overview]
Message-ID: <3F267FD7.4040400@xss.co.at> (raw)
In-Reply-To: <Pine.LNX.4.55L.0307091918400.5325@freak.distro.conectiva>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
Marcelo Tosatti wrote:
> Hi,
>
> Here goes -pre4. It contains a lot of updates and fixes.
>
> We decided to include this new code quota code which allows usage of
> quotas with 32bit UID/GIDs.
>
> Most Toshibas should work now due to an important ACPI fix.
>
> Please help and test.
>
Beginning with 2.4.22-pre4 I can't unmount devfs on my
initial ramdisk anymore because of EBUSY
I use initrd and let the kernel mount devfs on /dev on boot.
I then set up all the drivers needed to mount the real root
device, do a "pivot_root" and continue with /sbin/init,
just like it is described in Documentation/initrd.txt
When the boot process is finished, filesystems are mounted as
follows:
root@install:~ {520} $ mount
rootfs on / type rootfs (rw)
/dev/root on /initrd type romfs (ro)
none on /initrd/dev type devfs (rw)
/dev/ide/host0/bus0/target0/lun0/part3 on / type ext2 (rw)
devfs on /dev type devfs (rw)
proc on /proc type proc (rw)
I then want to get rid of everything mounted under /initrd
root@install:~ {521} $ umount /initrd/dev
umount: /initrd/dev: device is busy
This used to work just fine with 2.4.21 and 2.4.22-pre[123]
It does not work with 2.4.22-pre4 and 2.4.22-pre8
Also, with linux-2.4.21-ac4 unmounting /initrd/dev
does not work.
I made a diff between pre3 and pre4 and some changes in
fs/exec.c, fs/binfmt_elf.c and kernel/fork.c (around new
function "unshare_files()") look suspicious to me. I find
these changes in both 2.4.21-ac4 and 2.4.22-pre4 patchset
(but I'm not a kernel hacker, so I might be wrong)
Any idea anyone?
- - andreas
- --
Andreas Haumer | mailto:andreas@xss.co.at
*x Software + Systeme | http://www.xss.co.at/
Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0
A-1100 Vienna, Austria | Fax: +43-1-6060114-71
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/Jn/MxJmyeGcXPhERApunAKCIUOiZh8kSaeJEXHwj06yBlvMnhQCfe9M3
hfmnS3VtpDx5sCMq5nlJLmU=
=1Tnh
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2003-07-29 14:10 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-09 22:24 Linux 2.4.22-pre4 Marcelo Tosatti
2003-07-09 22:48 ` J.A. Magallon
2003-07-09 22:56 ` Herbert Pötzl
2003-07-09 22:51 ` Alex Romosan
2003-07-10 0:02 ` -pre4 fixed on ftp.kernel.org " Marcelo Tosatti
2003-07-09 23:04 ` Onur Kucuk
2003-07-09 23:13 ` [PATCH] do_generic_direct_write: bad flag check J.A. Magallon
2003-07-10 3:29 ` Marcelo Tosatti
2003-07-10 3:48 ` Daniel
2003-07-10 0:03 ` Linux 2.4.22-pre4 J.A. Magallon
2003-07-10 0:29 ` [PATCH] hfsplus: group Apple FS's and help text J.A. Magallon
2003-07-10 0:36 ` J.A. Magallon
2003-07-10 5:23 ` Linux 2.4.22-pre4 Aschwin Marsman
2003-07-10 7:58 ` Willy Tarreau
2003-07-10 15:51 ` compile warnings Rafał 'rmrmg' Roszak
2003-07-10 22:26 ` Diego Calleja García
2003-07-11 0:18 ` Rafał 'rmrmg' Roszak
2003-07-29 14:08 ` Andreas Haumer [this message]
2003-07-29 14:16 ` 2.4.22-pre4: devfs on initrd stays busy after pivot_root Alan Cox
2003-07-29 14:54 ` Herbert Pötzl
2003-07-30 9:54 ` Andreas Haumer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F267FD7.4040400@xss.co.at \
--to=andreas@xss.co.at \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.