* Making fsck optional
@ 2011-09-29 15:34 Daniel Drake
2011-09-30 8:11 ` WANG Cong
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Drake @ 2011-09-29 15:34 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Hi,
Recent versions of dracut have added many flavours fsck as standard to
the initramfs (depending on what is installed on the host system).
We'd like to avoid this for OLPC's embedded systems (for now) and
return to having a nice slim dracut initramfs.
Happy to code this, but looking for a little guidance on the best way
to do this. Any implementation suggestions for how we can make fsck
installation optional?
Would it be acceptable to make fs-lib's module-setup.sh look at an
environment variable NO_FSCK=1 and in that case avoid installing fsck,
or something like that?
cheers
Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Making fsck optional
2011-09-29 15:34 Making fsck optional Daniel Drake
@ 2011-09-30 8:11 ` WANG Cong
2011-09-30 10:55 ` Michal Soltys
0 siblings, 1 reply; 4+ messages in thread
From: WANG Cong @ 2011-09-30 8:11 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
On Thu, 29 Sep 2011 16:34:39 +0100, Daniel Drake wrote:
> Hi,
Hi, Daniel,
>
> Recent versions of dracut have added many flavours fsck as standard to
> the initramfs (depending on what is installed on the host system). We'd
> like to avoid this for OLPC's embedded systems (for now) and return to
> having a nice slim dracut initramfs.
>
> Happy to code this, but looking for a little guidance on the best way to
> do this. Any implementation suggestions for how we can make fsck
> installation optional?
>
> Would it be acceptable to make fs-lib's module-setup.sh look at an
> environment variable NO_FSCK=1 and in that case avoid installing fsck,
> or something like that?
Does adding --omit "fs-lib" to your command line help?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Making fsck optional
2011-09-30 8:11 ` WANG Cong
@ 2011-09-30 10:55 ` Michal Soltys
2011-10-04 2:23 ` WANG Cong
0 siblings, 1 reply; 4+ messages in thread
From: Michal Soltys @ 2011-09-30 10:55 UTC (permalink / raw)
To: WANG Cong; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
I'll prep patches to make it all configurable, essentially:
in config file:
fscks - list exact program names you want installed
nofscks - to inhibit installation of any such programs
The latter option takes precedence over the first one
and from commandline:
--fscks [LIST] - additional programs to install
--nofscks - inhibit
similar precedence as in config
(option names subject to change ;)
If the fsck_helpers list is empty and nofsck is not set, dracut will
opportunistically try to install any helper it might need, otherwise it
will limit itself to only specified programs, or to none at all.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Making fsck optional
2011-09-30 10:55 ` Michal Soltys
@ 2011-10-04 2:23 ` WANG Cong
0 siblings, 0 replies; 4+ messages in thread
From: WANG Cong @ 2011-10-04 2:23 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
On Fri, 30 Sep 2011 12:55:07 +0200, Michal Soltys wrote:
> I'll prep patches to make it all configurable, essentially:
>
> in config file:
> fscks - list exact program names you want installed nofscks - to inhibit
> installation of any such programs
>
> The latter option takes precedence over the first one
>
> and from commandline:
>
> --fscks [LIST] - additional programs to install --nofscks - inhibit
>
> similar precedence as in config
> (option names subject to change ;)
>
> If the fsck_helpers list is empty and nofsck is not set, dracut will
> opportunistically try to install any helper it might need, otherwise it
> will limit itself to only specified programs, or to none at all.
Michal, this makes sense to me. But Daniel wants to have no fscks,
so probably he wants to have an cmd option to prevent all fsck's
installed, with your design, he has to specify all fsck's after
--nofscks, right?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-04 2:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-29 15:34 Making fsck optional Daniel Drake
2011-09-30 8:11 ` WANG Cong
2011-09-30 10:55 ` Michal Soltys
2011-10-04 2:23 ` WANG Cong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox