Install package on Host OS Image

Hi All,

Just wondering how I would go about installing an application package such as vnstat on HostOS such that it is part of the base install when you flash a new device?

Cheers
Chris

1 Like

Hello @dash,
you can’t add new applications to the HostOS as it could decrease the stability of the system.
You can only add it to a container.

Cheers

1 Like

Thanks @dansku. I’ll have try work around it. It’s possible to run vnstat in a docker container and use privileged mode to give it the access it requires to host network interfaces but I feel privileged mode should be avoided.

Shouldn’t it be the user’s responsibility to not “decrease the stability of the system”? We just want to install htop.

1 Like

Hello

You can do this by building balenaOS yourself. Take a look at our instructions for how to do so here

1 Like