I try to use gdal_translate in my windows command prompt to convert a single band .tif raster to a single band .gpkg.
gdal_translate -of GPKG example.tif example.gpkg
I always get a .gpkg with four bands and the nodata pixels get change to a value between 0 and 255.
I tried all possible combinations of the following commands with no succes:
-band -mask -expand