Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
January 12, 2010, 1:40 am

I am getting these Two lines 112 and 113 errors when running this
shell script, any idea what is wrong with this script, also I have
HTML link for full script, I pointed to 2.6.x code:
GEN usr/initramfs_data.cpio.gz
Linux-2.6.20.21/scripts/gen_initramfs_list.sh line:112 [: ../temp/
rootfs/lib/libblk.so.1.1 integer expression expected
Linux-2.6.20.21/scripts/gen_initramfs_list.sh line:113 [: ../temp/
rootfs/lib/libblk.so.1.1 integer expression expected
gen_initramfs_list.sh lines 112 and 113
--------------------------------------------------
[ "$root_uid" = "squash" ] && uid=0 || [ "$uid" -eq "$root_uid" ] &&
uid=0
[ "$root_gid" = "squash" ] && gid=0 || [ "$gid" -eq "$root_gid" ] &&
gid=0
http://lxr.free-electrons.com/source/scripts/gen_initramfs_list.sh
shell script, any idea what is wrong with this script, also I have
HTML link for full script, I pointed to 2.6.x code:
GEN usr/initramfs_data.cpio.gz
Linux-2.6.20.21/scripts/gen_initramfs_list.sh line:112 [: ../temp/
rootfs/lib/libblk.so.1.1 integer expression expected
Linux-2.6.20.21/scripts/gen_initramfs_list.sh line:113 [: ../temp/
rootfs/lib/libblk.so.1.1 integer expression expected
gen_initramfs_list.sh lines 112 and 113
--------------------------------------------------
[ "$root_uid" = "squash" ] && uid=0 || [ "$uid" -eq "$root_uid" ] &&
uid=0
[ "$root_gid" = "squash" ] && gid=0 || [ "$gid" -eq "$root_gid" ] &&
gid=0
http://lxr.free-electrons.com/source/scripts/gen_initramfs_list.sh

Re: Error with gen_initramfs_list.sh when creating initramfs_data.cpio.gz

It's got to be the -eq parts because = is a string compare, whereas
-eq is an integer compare. So my best guess is $uid & $gid are not set
or $root_ are not set. Try to find where the variables get
set and what they're supposed to represent.
Jerry
Site Timeline
- » RDP/VNC between 2 mobiles / between mobile & PCs
- — Next thread in » Embedded Linux
-
- » MicroXwin 2.0 Release for MIPS Au12XX and x86
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Israel sees 60% drop in hospitalizations for age 60-plus 3 weeks after 1st shot
- — The site's Newest Thread. Posted in » Electronics Design
-
- » browser mischief
- — The site's Last Updated Thread. Posted in » Raspberry Pi Group
-