[Yaird-devel] Bug#351183: --run does not fix the disk renaming
problem
Jonas Smedegaard
dr at jones.dk
Tue Jun 6 22:29:49 UTC 2006
On Tue, 6 Jun 2006 14:55:50 -0700 (PDT) dean gaudet wrote:
> On Tue, 6 Jun 2006, Jonas Smedegaard wrote:
>
> > It is wrong to assume a purely no-older-than-etch system: Imagine
> > the process of upgrading from sarge to etch...
>
> aha... now i understand :)
>
> what you really need is some sort of weak dependency which implies
> that if the package is already installed then it must be a specific
> rev.
Correct. But such hinting would probably be too seldom needed to warrant
the added complexity.
> > Can someone come up with a test command that does not mess with
> > actual devices, and returns true for versions of mdadm that
> > properly supports "-Ac partitions"? Or even better, a complete
> > patch for yaird?
>
> ok cool...
>
> well according to the mdadm changelog the -Ac partitions bug was fixed
> in 1.10.0 ... so we'd want to stick something like this into
> Templates.cfg
>
> !case "`mdadm --version 2>&1`" in
> ! mdadm\ -\ v1.[1-9][^0-9]*)
> ! mdadm --assemble <TMPL_VAR NAME=target> --uuid
> <TMPL_VAR NAME=uuid> \ ! <TMPL_LOOP
> NAME=components> <TMPL_VAR NAME=dev></TMPL_LOOP> ! ;;
> ! *)
> ! mdadm -Ac partitions <TMPL_VAR NAME=target> --uuid
> <TMPL_VAR NAME=uuid> ! ;;
> !esac
>
> hmm well i need to handle mdadm v0.x too i guess... i'm trying to
> avoid added grep to the initrd.
>
> let me know if the above is generally what you're looking for -- an
> alternative is to test the mdadm version at mkinitrd time but i
> didn't see a way to do that without mucking in the perl (which i
> don't mind doing either).
Well, the above puts the test at boot time. That's ugly IMHO.
I'd prefer resolving mdadm features at build time. Something like this:
* Resolve mdadm capabilities in Plan.pm
* Set some variable (not the version, but flags each capability)
* Use TMPL_IF in mdadm template
> i probably won't be able to test a patch for a week or two though.
Just take your time :-)
- 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/yaird-devel/attachments/20060607/0d8fd07e/attachment.pgp
More information about the Yaird-devel
mailing list