ghost: Import previous ramdisk changes

Signed-off-by: Zhao Wei Liew <zhaoweiliew@gmail.com>