lkml.org 
[lkml]   [2005]   [Jan]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: initramfs: is it supposed to work?
Date
Followup to:  <pan.2005.01.01.15.40.12.264342@dungeon.inka.de>
By author: Andreas Jellinghaus <aj@dungeon.inka.de>
In newsgroup: linux.dev.kernel
>
> Hi,
>
> run-init seems to mount the new root, rm files in the old root,
> mount, chroot, open the console, exec. any reason we can't do
> that in shell script commands?
>
> > You don't pivot_root initramfs, because initramfs *IS* rootfs.
> >
> > Instead, use the run-init program
>
> ok, but still: is it ok for the kernel to die?
> after all pivot_root works fine, unless /initrd is unmounted.
> what exactly is the kernel internal that makes pivot_root special?
>

Your /initrd here is rootfs, and by unmounting rootfs, you've pulled
the rug out from underneath the kernel any time it needs to spawn a
kernel thread.

-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.055 / U:11.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site