What | Removed | Added |
---|---|---|
Assignee | yast-internal@suse.de | thomas.blume@suse.com |
(In reply to Antonio Feijoo from comment #8) > Created attachment 876430 [details] > livenetroot.sh extracted from > agama-installer-openSUSE.s390x-9.0.0-openSUSE-Build9.34.iso/boot/s390x/initrd > > The following code is not shipped by dracut, compare it with > https://github.com/openSUSE/dracut/blob/SUSE/059/modules.d/90livenet/ > livenetroot.sh > > ``` > $ diff agama-initrd/sbin/livenetroot > ~/SUSE/059/modules.d/90livenet/livenetroot.sh > 18,28d17 > < let memsize=$(($(sed -n "s/MemTotal: *\([[:digit:]]*\).*/\1/p" > /proc/meminfo) / 1024)) > < let imgsize=$(($(curl -sI "$liveurl" | sed -n "s/Content-Length: > *\([[:digit:]]*\).*/\1/p") / (1024 * 1024))) > < > < if [ $((memsize - imgsize)) -lt 1024 ]; then > < sed -i 'N;/echo "$RDSOSREPORT"/s/echo$/echo\ > < echo Warning!!!\ > < echo The memory size of your system is too small for this live > image.\ > < echo Expect killed processes due to out of memory conditions.\ > < echo /' usr/bin/dracut-emergency > < emergency_shell > < fi > ``` > > I have no idea who/what is modifying livenetroot.sh... Thomas, since you've > worked with this in the past, have you added any patches to any installation > packages that modify the dracut code? Hm, that was indeed my approach for injecting a memory size check for livenetroot for the agama initrd that is build with kiwi. But, I don't remember that I submitted that anywhere. However, it's missing error handling for the case that curl cannot retrieve the Content-Length setting. I will work on it.