clearlinux / swupd-client

Software update client
Other
114 stars 61 forks source link

Create a new flag --datadir and save all data related to one specific installation on datadir. #1541

Closed otaviobp closed 4 years ago

otaviobp commented 4 years ago

Datadir default should be ${PATH_PREFIX}/var/lib/swupd/

So running this:

swupd bundle-add --path /mnt/chroot --statedir /var/lib/swupd --datadir /mnt/chroot/var/lib/swupd vim

is the same as this:

swupd bundle-add --path /mnt/chroot vim

And that would save all downloaded and extracted files to /var/lib/swupd, but all tracked bundles to /mnt/chroot/var/lib/swupd/