On 29.05.2012 09:48, Stephan Kulow wrote:
On 28.05.2012 20:43, Guido Berhoerster wrote:
On 28.05.2012 20:33, Stephan Kulow wrote:
Am 28.05.2012 18:51, schrieb Larry Finger:
According to openqa, the Live CDs for Build 0386 boot and run. Installation of Gnome failed on at least one run because package mdadm was not available. Although I could not find a successful KDE Live CD run at openqa, one was just reported here by Dale Richey. My download is in progress.
Unfortunately this is what I'm seeing here too: http://openqa.opensuse.org/viewimg/openqa/testresults/openSUSE-GNOME-LiveCD-...
mdadm's scripts seem to be broken, we need to fix that too.
But the livecd problem is most horrible:
expr(1) segfaults while kiwi tries to calculate how much memory to reserve - and in the end it doesn't give no memory at all, which causes clicfs to return a usage message -> no file system.
I'm trying to find out how to fix expr, others may check mdadm.
expr(1) has been obsolete for more than two decades, you can just use arithmetic expansion available in any Bourne-derived shell for integer arithmetic and bc(1) for floating point arithmetic.
I don't know why kiwi's initrd calls an external tool for it either :)
Marcus, can you please apply the following patch and submit a new kiwi for B1?
diff --git a/modules/KIWILinuxRC.sh b/modules/KIWILinuxRC.sh index 5769448..4bfe536 100644 --- a/modules/KIWILinuxRC.sh +++ b/modules/KIWILinuxRC.sh @@ -4620,12 +4620,11 @@ function mountSystemClicFS { fi if [ $ramOnly = 1 ];then haveKByte=`cat /proc/meminfo | grep MemFree | cut -f2 -d:| cut -f1 -dk` - haveMByte=`expr $haveKByte / 1024` - haveMByte=`expr $haveMByte \* 7 / 10` + haveMByte=$(($haveKByte * 7 / 10240)) clic_cmd="$clic_cmd -m $haveMByte" else haveBytes=`blockdev --getsize64 $rwDevice` - haveMByte=`expr $haveBytes / 1024 / 1024` + haveMByte=$(($haveBytes / 1024 / 1024)) wantCowFS=0 if \ [ "$kiwi_hybrid" = "yes" ]&& \
Greetings, Stephan
Actually, that is still inefficient, you can do this in pure bash (>=3): while read -r line; do if [[ $line =~ ^MemFree:\ +([[:digit:]]+)\ kB$ ]]; then ((haveMByte = BASH_REMATCH[1] * 7 / 10240)) break fi done < /proc/meminfo Most of the cat/grep/cut/expr in that script usage is probably unnecessary. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org