473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

365 100+
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
Jan 12 '10 #1
6 4875
ashitpro
542 Expert 512MB
are you specifying -u and -g options while running your script?
Jan 12 '10 #2
tvnaidu
365 100+
This gets run automatically through Makefile, I have issuing only "make", then it gets called this script.

do you want me to change Makefile?.
Jan 12 '10 #3
ashitpro
542 Expert 512MB
problem is script is expecting $uuid and $guid as numeric values, but some how it is not getting initialized to proper values...

First, edit that script and print those variables and see if they are actually numbers. If not check make file. see how it is getting called from makefile.
Jan 12 '10 #4
tvnaidu
365 100+
I added print $uid and $gid in script, I get zero for both. any other clues?. appreciated.
Jan 12 '10 #5
ashitpro
542 Expert 512MB
Change these statements...

[ "$root_uid" = "squash" ] && uid=0 || [ "$uid" -eq "$root_uid" ] && uid=0

[ "$root_gid" = "squash" ] && gid=0 || [ "$gid" -eq "$root_gid" ] && gid=0

to

[ "$root_uid" = "0" ] && uid=0 || [ "0" -eq "0" ] && uid=0

[ "$root_gid" = "0" ] && gid=0 || [ "0" -eq "0" ] && gid=0

basically, expression [ "$uid" -eq "$root_uid" ] expects numbers..
And make sure that you are running this script as root user.
Jan 12 '10 #6
tvnaidu
365 100+
Thanks a lot. I found the issue, issue is with Makefile where I copy all shared libs, one extra file gets created, that is why this error came.

appreciated for quick help
Jan 12 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: owen | last post by:
Generally speaking, what does it mean when I see a "button" with red text showing this message instead of the control I've dragged onto the web form in Design View.? (But the page works fine at...
6
by: Martin Marques | last post by:
When running initdb on a fresh 7.4 install I get this error: postgres@bugs:~$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data -E latin1 The files belonging to this database system will be...
8
by: Kragen Sitaker | last post by:
ERROR: Cannot insert a duplicate key into unique index pg_class_relname_nsp_index We've been getting this error in our application every once in a while --- typically once an hour to once a day,...
2
by: Mary | last post by:
Hello, I am having a problem with the cl compiler. I have written a C class (RegConnect.c) which uses Win32 API functions such as RegOpenKey, RegCloseKey etc. Initially when I was trying to...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
0
by: Ravi Ambros Wallau | last post by:
Hi: I've created a custom control - a grid that uses Infragistics to display some filters, the grid itself, and some buttons. Well, when using this control directly on WebForm, everything works...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
0
by: Herman Jones | last post by:
I'm getting the following error when I build a Class Library project: Embedding manifest... Project : error PRJ0002 : Error result 1 returned from 'C:\WINDOWS\system32\cmd.exe'. It happens with...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.