nit  i cannot help but think this could be below the two if statements  something like this  if boot option is none boot option  netboot  make partitions expected kwargs  boot option boot option purely a nit though 