[Yaird-devel] Overriding some probing
Jonas Smedegaard
dr at jones.dk
Mon Dec 12 23:39:29 UTC 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 13 Dec 2005 00:22:15 +0100
Jonas Smedegaard <dr at jones.dk> wrote:
> > Setting up this stuff is perhaps ten minutes work. The bonus
> > over manually making an initramfs is that yaird will handle the
> > module and shared library dependencies for you.
> >
> > Perhaps this exercise could be made a bit simpler by allowing pieces
> > of shell script in the Default.cfg file?
A clarification: I want to be able to preserve the default but divert
on a single run.
> I would say that being able to pass custom arguments would make it
> simpler:
>
> yaird --arg-template="usbstick" --arg-rootdev="/dev/sda"
>
> The following somewhere at the top of the default Default.cfg would
> define the default of the arguments (ARG-ROOTDEV is undefined by
> default):
>
> ARG-TEMPLATE Templates
>
> And I'd then be able to hack Default.cfg to behave exactly as usual
> for my host machine, but _also_ be able to redirect to using a custom
> template (which honours additional weird arguments specific to that
> setup).
...and I forgot, that after the ARG-TEMPLATE I'd then have something
like this (depending on the syntax of variables):
TEMPLATE FILE "/usr/lib/yaird/conf/%%TEMPLATE%%.cfg"
If someone wanted the whole dir replaceable they could do so by
adjusting those two lines.
- Jonas
- --
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
- Enden er nær: http://www.shibumi.org/eoti.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDngoxn7DbMsAkQLgRAtM3AKCQiT6aDneyDRWUqhvvirEFr2prwgCfXlot
f05wp/Ep+eBWE+TgAwWLNQc=
=/lvG
-----END PGP SIGNATURE-----
More information about the Yaird-devel
mailing list