Re: initramfs: is it supposed to work?
From: H. Peter Anvin (hpa_at_zytor.com)
Date: 12/31/04
- Previous message: Dave Airlie: "[bk tree] minor DRM patches"
- In reply to: Michael Tokarev: "initramfs: is it supposed to work?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: linux-kernel@vger.kernel.org Date: Fri, 31 Dec 2004 08:06:03 +0000 (UTC)
Followup to: <41D4A2A6.3060607@tls.msk.ru>
By author: Michael Tokarev <mjt@tls.msk.ru>
In newsgroup: linux.dev.kernel
>
> o And finally, when booting the "right way", using initramfs where
> /init gets executed with pid=1 and should do the same pivot_root
> and things like that, before the umount loop mentioned above,
> it looks almost right:
> rootfs /initrd rootfs ro 0 0
> /dev/hda1 / ext3 rw 0 0
> (this is where eg umount from busybox chokes, also entering
> endless loop.. but tha's a different story, it's an obvious
> bug in busybox.. however in order to fix it properly one have
> to know which cases like the 3 mentioned above are possible).
>
You don't pivot_root initramfs, because initramfs *IS* rootfs.
Instead, use the run-init program from the klibc distribution, or
something similar. It cleans up the initramfs contents and overmounts
it with the new root filesystem.
-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/
- Previous message: Dave Airlie: "[bk tree] minor DRM patches"
- In reply to: Michael Tokarev: "initramfs: is it supposed to work?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|