jeaye / nixos-in-place

Install NixOS on top of any existing Linux distribution without rebooting
MIT License
460 stars 57 forks source link

$grub_device wrong with devices using nvme #20

Open Shou opened 8 years ago

Shou commented 8 years ago
>>>    GRUB => /dev/nvmen1p5
>>>    Root => /dev/nvme0n1p5 (ext4)

It's supposed to be nvme0n1. Line 26 of install is the culprit, it's assuming /dev/sdX format:

grub_device=$(echo $root_mount | sed "s|[0-9]\+||")