Creating a new model assertion which includes “core” because “pciutils” snap requires it. I added it to the my-model.json using the following source code:
You have to remember that the base snap, is the base of which you to “base” your OS image off, so basically, core20, or core22 as a operating system base.
The only reason it is defined as a base, is that if you want a specific channel of core20 as a OS base, you could define the channel, etc…
That’s why ubuntu-image complains about the component “os”, because it does not understand why the extra “os” section, which is the OS itself.
@ruhan.vanderberg , for some reason when I was building before, it would not allow me to add pciutils without also adding core Snap. This is why I was running into this issue. This is the error I was getting:
Error: Error preparing image: cannot add snap "pciutils" without also adding its base "core" explicitly