You don't need to know many guitar scales to play guitar solos – but you do need to know this one. The minor pentatonic is good ... It’ll help you keep position shifts to a minimum.
The shapes, both major and minor, occur in every position ... the pentatonic pattern because I’m thinking about how I might embellish a G chord, rather than playing notes from a scale.