1. add a script upgrade-all;
2. add a systemd user timer linglong-upgrade.timer;
3. add a systemd user service linglong-upgrade.service;
4. split misc/systemd/service to user and system;
5. update debian *.install.
Signed-off-by: black-desk <me@black-desk.cn>
- Add FilesystemHelper with Mount/Umount. These method only process with
mountpoint in /run/user/{uid}/linglong
Signed-off-by: Iceyer <me@iceyer.net>
Change-Id: Iaababa2e68806398e796ee0ba96dcf5fbcbedfe3
Signed-off-by: black-desk <me@black-desk.cn>
- This commit make ll-builder support project-wide config.
It will look for .linglong/builder/config.yml in the current
directory and all the parent directories.
If not found, it will search linglong/builder/config.yml in QT config
paths.
All above failed, it will use the default config we installed to
CMAKE_INSTALL_DATADIR.
- This commit move builder templates install location as well.
This commit make
- The username of which user runs the linglong package manager;
- The location of linglong package manager store its data files;
- The location of linglong package manager put its log.
configurable at compile time
This commit update systemd and dbus service files to use the system
user "linglong" created by systemd-sysuser, instead of the old
deepin-linglong user created in debian trigger.
Remove the scripts create deepin-linglong user as well.
Now we create /var/lib/linglong and chown it to linglong user in
systemd service file. We add a script call create-linglong-dirs to do
this job.
As script might be installed to /usr/lib/linglong or
/usr/libexec/linglong. I just ignore the error.
Service files should be configured in cmake, let's fix this later.
OstreeRepoHelper has method ensureRepoEnv which will create the ostree
repo if it doesn't exist. This should be fine.
Update1: But we indeed have some codes open the ostree repo before call
OSTreeRepoHelper's ensureRepoEnv method. This commit include some quick
hack to fix this issue, which should be refactor later.
Update2: ensureRepoEnv use ostree_repo_new which does not create the
ostree repo if it not exist. This behavior is not match comment. So I
refactor this method to make it do the job it should have done.
This commit introduce the new /misc directory, which should contains
all the static files.
This commit just install a sysuser config file which will make systemd
create "linglong" user. The systemd and dbus service configuration
files will be updated later.