ramdisk: Fix device name generation