On Tue, Aug 31, 2010 at 8:17 PM, Richard Shaw <[email protected]> wrote:
>>> need to add some logic. I'll look at my bash history, I may have
>>> specified them in the wrong order...
> The only thing I can come up with without mounting both the squashfs
> images is to do a regex search through isolinux.cfg and do something
> like:
>
> def arch(file):
>    """Accepts a text file object to search through and returns system
> architecture as a flag."""
>
>    x32_reg = re.compile("i[3-6]86")
>    x64_reg = re.compile("x86_64")
>
>    for line in <isolinux file object>:
>        if x32_reg.search(line): return '32BIT'
>        elif x64_reg.search(line): return '64BIT'
>
> Then of course whatever function calls this function will have to do
> something with that information. We'll need some logic to make sure we
> have exactly one positive return for each arch type.

That would probably work.
--
livecd mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/livecd

Reply via email to