[Fedora-livecd-list] 4 commits - tools/livecd-iso-to-disk.sh tools/liveimage-mount

Frederick Grose fgrose at gmail.com
Tue Mar 22 16:12:34 UTC 2011


On Tue, Mar 22, 2011 at 11:46 AM, Brian C. Lane <bcl at redhat.com> wrote:

> On Tue, Mar 22, 2011 at 11:09:01AM -0400, Frederick Grose wrote:
> > Sorry,
> >
> > The followup patch,
> > https://bugzilla.redhat.com/attachment.cgi?id=486551
> > is needed.
> >
>
> != instead of ==, right?
>
> But that means SYSLINUXPATH will always be ""
>
> That doesn't make sense to me, it will break multi support.
>
> Brian
>

    check=($(syslinux --version 2>&1)) || :
    if [[ 'syslinux' != $check ]]; then
        SYSLINUXPATH=""
    elif [ -n "$multi" ]; then
        SYSLINUXPATH="$LIVEOS/syslinux"
    else
        SYSLINUXPATH="syslinux"
    fi


The check variable will contain the array returned by

syslinux --version


if the first member is NOT 'syslinux', then

   the program failed to run, and (for some use case I'm not familiar with)

   the files have been directed to ""

else (if syslinux --version did return 'syslinux') check for  the multi
flag,
else default to the syslinux directory.

       --Fred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/livecd/attachments/20110322/c78674e2/attachment.html 


More information about the livecd mailing list