The previous code for this accidentally picked up a "p" when computing the partition number. This logic should be more robust
*** NixOS *** NixOS is a Linux distribution based on the purely functional package management system Nix. More information can be found at http://nixos.org/nixos and in the manual in doc/manual.