compute checksum in ramdisk_init instead of external python script