Make the inventory persistent.

Signed-off-by: netchip <w00tc0d3@outlook.com>