device: Fix all ramdisk related things