Commit Graph

23 Commits

Author SHA1 Message Date
kamiyadm 025d41be8c fix: move the reinstall operation to new script
-

Log:
2024-05-13 13:04:40 +08:00
kamiyadm 82212cba5c chore: handle upgrade from old linglong
-

Log:
2024-04-29 15:06:49 +08:00
kamiyadm cddef41681 chore: update linglong-bin.postinst
dh_installsysusers is not working properly in debhelper(12.1).
Just hardcode these contents which are generated by debhelper(13.11.4)
in the postinst script.

Log:
2024-04-28 17:30:07 +08:00
dengbo 34a7ba6a39 fix: kernel.unprivileged_userns_clone not set in uos v20
linglong.conf should be reload after install

Log:
2024-04-28 11:47:37 +08:00
black-desk aa9837e0bb
chore: remove old xsession script
Related: linuxdeepin/developer-center#7033
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-23 16:15:28 +08:00
black-desk 3ab8ef2a03
fix: make a symbolink from old repo location
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>
2024-01-08 15:29:35 +08:00
black-desk 7b1ece15a9
fix: enable dh_installsysusers
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-08 15:13:23 +08:00
black-desk f309518046
fix: update postinst script
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-05 16:26:50 +08:00
black-desk 69c69c95a4
feat: add postinst for upgrade from 1.3.x
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-02 17:30:46 +08:00
Chen Linxuan 4c2e5d2ea1 refactor: remove all debian scripts
We finally can remove all the debian maintainer scripts.
2023-02-15 19:45:59 +08:00
Chen Linxuan 5969bac379 fix: update default repo url
The default repo url is now set to https://mirror-repo-linglong.deepin.com/.
2023-02-15 19:45:59 +08:00
Chen Linxuan 2494c3faae refactor: do not create log dir in debian trigger.
We create log dir in create-linglong-dirs now.
2023-02-15 19:45:59 +08:00
Chen Linxuan 4be58ef48b refactor: deepin-linglong -> linglong
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.
2023-02-15 19:45:59 +08:00
Chen Linxuan dbefb9e1e5 refactor: create ostree repo in ll-package-manager
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.
2023-02-15 19:45:59 +08:00
Chen Linxuan ef2317f819 refactor: void copy config to LINGLONG_ROOT
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.
2023-02-15 19:45:59 +08:00
Chen Linxuan 78b52fb930 refactor: use env generator instead of profile
Remove shell profile scripts. Just use systemd user environment
generator should be fine.
2023-02-15 19:45:59 +08:00
liujianqiang 8b26202e06 fix: 更改外网仓库模式
更改外网仓库修改方式.

Log:
Change-Id: I095678a41a6c8501382e8a7d0e7a9ccf724726f2
2022-11-11 10:18:29 +08:00
huqinghong 5e83cd2004 refactor: 调整服务名与部分源码结构
1. 调整space.linglong.Service.desktop服务名
2. 调整部分源代码目录
3. 调整脚本默认仓库地址

Log:
Change-Id: I8d4eb2be70fc09538defb53a5e402727626540ae
2022-11-09 16:11:35 +08:00
huqinghong 2ef05acb2a fix: 升级玲珑包仓库地址不对
升级玲珑包仓库地址不对

Log:
Change-Id: I9fa9797fa8ccb7d1b14795416f2c876216e393e2
2022-11-08 15:45:47 +08:00
lihe 0c4a1120f6 refactor: fix the error package manager name
- the package manager is not system-helper, correct that issue.
- the dbus service should be org.deepin.linglong.PackageManager.

Change-Id: Ib66fd2d20dcfcd0557184fb6812151ce17df90e7
2022-09-02 09:52:33 +08:00
chenlinxuan de81beb35c fix: fix profile script error
/etc/os-release can be anything, might not have "VERSION_ID" in it.
  So after sed, $VERSION can be empty string, or even a string with
  space inside.

  We should always quote variable when we using it.

Change-Id: I14046270ef446c9f878c66336150735c44038dd0
2022-08-11 11:13:07 +08:00
chenlinxuan da037d2b5f fix: Clean up env setup script
* Fix a error when $VERSION is empty;
  * Remove no effect code.

Change-Id: I435332cb0b646677bf6cdf71c64b1bc4fce20405
2022-08-01 20:36:23 +08:00
liujianqiang 55aa7c5763 fix: 规范post脚本格式
规范post脚本格式.

Log:
Change-Id: Ibdc753e6f54c2c1f9b79ad96d868ba73e424554b
2022-08-01 10:14:35 +08:00