Error with when creating initramfs_data.cpio.gz

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
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- line:112 [: ../temp/
rootfs/lib/ integer expression expected
Linux- line:113 [: ../temp/
rootfs/lib/ integer expression expected lines 112 and 113

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

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

Re: Error with when creating initramfs_data.cpio.gz
Quoted text here. Click to load it

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.


Site Timeline