Skip to contentSkip to conversation

question on pivot_root and kernel threads

DISCUSSION Chris Friesen 1 participant 1 message Feb 10, 2004

lore
Share & tools
lore
#0 lore raw

I've got an embedded system that we're trying to move from 2.4.18 to 2.4.22 (which involves a userspace upgrade as well). It netboots with an initrd, and then at startup converts it to a tmpfs, unmounts the original ramdisk, and frees the memory.

With 2.4.22 suddenly it started complaining about being unable to unmount the original ramdisk. After some digging, it seems that the kernel threads (keventd, ksoftirqd_CPU0, kswapd, bdflush, kupdated, and mtdblockd) are starting up with stdin/stdout/stderr set to /dev/console in the original ramdisk. When I do the pivot_root so that the original ramdisk is mounted at "/mnt", I end up with a bunch of references to "/mnt/dev/console", and I can't unmount "/mnt" since the refcount is nonzero.

At a guess, its related to this thread:

http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=hpYn.1fz.21%40gated-at.bofh.it

Did this ever get resolved properly?

Thanks,

Chris

Signature · 4 lines
Chris Friesen                    | MailStop: 043/33/F10
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: [email protected]