Default repository location moved from /persistent/linglong to
/var/lib/linglong.
I just move all files from old location to the new one,
but system helper export some files as symbolink
point to old /persistent/linglong location.
And it is hard to perform this in debian mantainer scripts,
as ll-system-helper do not has a portal record or something else.
I just make a symbolink from /persisten/linglong to /var/lib/linglong
to fix this issue.
So now when check symbolink created by system_helper,
we should use canonicalFilePath() to
get an absolute path without symbolic links.
Related: linuxdeepin/developer-center#6784
Signed-off-by: black-desk <me@black-desk.cn>
- introduce the new utils/global module for holding functions using
everywhere;
- add qt message handler for logging to journald;
- add -DQT_MESSAGELOGCONTEXT for enabling source location of log.
Signed-off-by: black-desk <me@black-desk.cn>
Upgrade debian/compat to 12 to
let dh_installsystemduser auto enable and
start linglong-upgrade.timer and linglong-upgrade.service.
Signed-off-by: black-desk <me@black-desk.cn>
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>
- 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 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.
If config is not found in LINGLONG_ROOT, we will use the one we
installed in CMAKE_INSTALL_DATADIR.
We should not copy it to LINGLONG_ROOT.
This design give us a way to findout the user is using the default
configuration or not, which make we easy to update the default
configuration file.
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.