ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] "[: 101: -ne: unexpected operator" when script is creating an


From: Stuart Hughes
Subject: Re: [Ltib] "[: 101: -ne: unexpected operator" when script is creating an initamfs compressed filesystem
Date: Fri, 21 Sep 2012 09:12:23 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Lightning/1.0b2 Thunderbird/3.1.20

Hi Terry,

Are you using the dash shell? if so there's a section that is not supported.


echo "creating an initamfs compressed filesystem image: initramfs.cpio.gz" geninitramfs -U -D $dev_tab -d $stage | gen_init_cpio - | gzip -9 > $tdir/initramfs.cpio.gz
    # Note: not supported in dash (sigh)
    if [ -n "\$PIPESTATUS" -a \$PIPESTATUS -ne 0 ]
    then
        exit 1
    fi
    if [ "$pcf->{DEPLOYMENT_RAMDISK_U_BOOT}" = "y" ]

This may be what you're running into, but without more in-context output I can't tell.

If this is the case, I'd recommend changing to a standard bash shell.

Regards, Stuart

On 21/09/12 03:38, Lv Terry-R65388 wrote:
Hi All,

        I'm using ltib to generate an ramfs and I encountered an error when the 
script is creating an initamfs compressed filesystem.

        creating an initamfs compressed filesystem image: initramfs.cpio.gz
        [: 101: -ne: unexpected operator

        The error place is in bin/Ltibutils.pm.

        Do you know why?

Yours
Terry
_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/ltib




reply via email to

[Prev in Thread] Current Thread [Next in Thread]