[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: deep in initramfstools, loop device Q

hello viktor,

[ added d-kernel to cc, please keep it.]

On Wed, Aug 08, 2007 at 11:22:24PM +0200, Viktor wrote:
> 1) i'm trying to set ROOT=/dev/loop0 in a initramfs script
>    but after run_init it doesn't load the /sbin/init,
>    the target of loop0 is a file in a initramfs directory
>    that is mounted from /dev/sda1

what are your bootargs?
a root bootarg _always_ overrides any hardcoded ROOT invocation
on build.
> 2) does run_init clean the initramfs and mounts on it?

yes for the cleaning, no for the mounts.
this is done earlier.

see man initramfs-tools
read /usr/share/initramfs-tools/init
best regards


Reply to: