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

Re: initramfs-tools: how to to avoid nuking tmpfs?



hello

On Sun, 15 Jun 2008, Timo Juhani Lindfors wrote:

> Hi,
> 
> http://iki.fi/lindi/darcs/vtgrab-initramfs/
> 
> is a kludge that starts "rvcd :6100" in the beginning of
> initramfs. "rcvd" allows me to control virtual consoles over network
> so that I can e.g. fix a system that has stopped at fsck using
> 
> twiglet -c target.somewhere.org:6100
> 
> ("rcvd" and "twiglet" are part of normal debian "vtgrab" package.)

never heard of but ok why not..

> The ugliest part is that init-bottom/vtgrab currently does
> 
> echo 'exec chroot ${rootmnt} ${init} "$@" <${rootmnt}/dev/console >${rootmnt}/dev/console' >> /conf/param.conf

indeed very ugly.
 
> so that "run-init" is never run and tmpfs is not nuked. Can you think
> of a cleaner way to have programs started from initramfs persist?

no there shouldn't be. look at udev. it restarts early after.
as initscript, shouldn't give harm as either the rootmnt works
and the initramfs console is uninteresting or you are there..
 
> I tried looking at /usr/share/doc/initramfs-tools/copyright for
> upstream mailing list, do they have one? If they do, I could forward
> my question there.

cc'ed above :)

best regards
 
-- 
maks


Reply to: