Guys, I'm going to be honest with you. I don't use mylar or O2 thingies and I've not ever had problem with anything. Think back to how your grandmothers stored their goods. Nothing has happened in the past 100 years to change why we need mylar and o2 thingies. Nothing. The goods you are storing aren't any different.
Mike, plastic buckets work fine for sugar and rice, if you want to keep some in your kitchen, use clean, empty soda bottles. They are lighter in your cupboards and pour easily. When the amount in those get low, refill them from your buckets.
If you start with a clean environment with your storage, you shouldn't have much in the way of bugs coming from your side of things (weevils, millers, things like that). Yes, you will get weevils coming in with your goods. Throw a few whole bay leaves in on top of your goods to repel them. Make sure you don't cook the bay leaves in with your food.
If by chance you open a bucket and you see a few weevils. Sift them out. They ain't going to kill you, and you don't need to throw everything away.
Sorry, I'll stop off my soap box now.