2014-07-18 09:07:42

by David Engraf

[permalink] [raw]
Subject: [PATCH] add error checks to initramfs

On a system with low memory extracting the initramfs may fail. If this
happens the user gets "Failed to execute /init" instead of an initramfs
error.

Check return value of sys_write and call error() when the write was
incomplete or failed.

Signed-off-by: David Engraf <[email protected]>


Attachments:
initramfs_error_check.patch (681.00 B)