MAPPERDEV=/dev/mapper/$(dmsetup info -C --noheadings -o name $BLOCKDEV)
echo "(hd0) $MAPPERDEV" > $TARGET/boot/grub/device.map
MAPPERDEV=/dev/mapper/$(dmsetup info -C --noheadings -o name $BLOCKDEV)
echo "(hd0) $MAPPERDEV" > $TARGET/boot/grub/device.map