discover/grub2: Initial environment handling