The punishment for relatively minor offenses (often referred to as non-judicial punishment, or NJP) in the military is often extra duty (iaw DA PAM 27-10 CH 3-16(a)). Often this can include KP (kitchen patrol) duty. So an easy way to depict this duty as an undesirable task is peeling potatoes.