diff --git a/0001-modify-web-success-migration-page.patch b/0001-modify-web-success-migration-page.patch new file mode 100644 index 0000000000000000000000000000000000000000..eb24def95bf129bc30c16a327e292af5ba44ed76 --- /dev/null +++ b/0001-modify-web-success-migration-page.patch @@ -0,0 +1,1301 @@ +From b9bc35327ed00171eac242404f3622b85f42e2ff Mon Sep 17 00:00:00 2001 +From: yahaha +Date: Thu, 27 Feb 2025 03:08:06 -0500 +Subject: [PATCH] modify web success migration page + +--- + README_zh.md | 45 +++++++--------- + templates/MT_agreement.html | 25 +++------ + templates/MT_check_environment.html | 88 ++++++++++++++---------------- + templates/MT_check_evn.html | 34 ++++-------- + templates/MT_check_root.html | 79 +++++++++++++-------------- + templates/MT_kernel.html | 103 +++++++++++++++--------------------- + templates/MT_migration.html | 53 +++++++++---------- + templates/MT_migration_results.html | 86 ++++++++++++------------------ + templates/MT_note.html | 22 ++------ + templates/MT_repo.html | 61 +++++++++------------ + 10 files changed, 249 insertions(+), 347 deletions(-) + +diff --git a/README_zh.md b/README_zh.md +index 97cee5a..4709db3 100644 +--- a/README_zh.md ++++ b/README_zh.md +@@ -71,13 +71,16 @@ scp -r /usr/lib/migration-tools-server/agent-rpm/el8 root@xx.xx.xx.xx:/root + + #### 迁移openeuler系统 + +->**注意:** openeuler系统目前仅支持单独使用脚本迁移 ++> + +-- 从server端分发迁移脚本至agent端 ++- 安装migration-tools-agent包 ++- 从server端分发迁移配置文件至agent端 + + ``` shell + cd /usr/lib/migration-tools-server/ut-Migration-tools-0.1/centos7/ + scp openeuler/centos72openeuler.py root@10.12.23.106:/root ++ ++scp /etc/migration-tools/migration-tools.conf root@10.12.23.106:/etc.migration- + ``` + + - 安装迁移所需依赖 +@@ -92,15 +95,16 @@ yum install python3 dnf rsync yum-utils -y + python3 centos7/openeuler/centos72openeuler.py + ``` + +-- 迁移完成后系统会自动重启,重启完成后即迁移完成 +-![openeuler迁移完成](./figures/openeuler-migration-complete.png) ++- + +-#### 迁移UOS系统 ++#### 迁移UOS/系统 ++ ++**注意:** + + ##### 安装migration-tools-agent端 + + 在准备迁移的centos机器上执行以下步骤 +->**注意:** 目前migration-tools仅支持centos7.4 cui迁移至openeuler 20.03-LTS-SP1 ++>**注意:** 目前migration-tools仅支持centos7.4 cui迁移至openeuler 20.03-LTS-SP1,openeuler系统目前仅支持迁移,无日志和迁移报告。 + + - 关闭防火墙 + +@@ -108,26 +112,12 @@ python3 centos7/openeuler/centos72openeuler.py + systemctl stop firewalld + ``` + +-- 安装epel-release(部分依赖包含在epel源中)`` +- +-``` shell +-yum install epel-release -y +-``` +- +-- 安装migration-tools-agent软件包(centos7系列需安装对应架构的软件包) ++- 配置运行系统的软件源并安装migration-tools-agent软件包。 + + - centos7: + + ``` shell +-cd /root/el7/x86_64 +-yum install ./* -y +-``` +- +-- centos8 +- +-``` shell +-cd /root/el8/ +-yum install ./* -y ++yum install migration-tools-agent + ``` + + - 修改配置文件 +@@ -148,7 +138,6 @@ systemctl restart migration-tools-agent + + - 登录web端 + 在server端和agent端服务均启动后,打开浏览器(建议使用:Chrome),在浏览器导航栏中输入`https://SERVER_IP:9999`即可。 +-![首页](./figures/首页.png) + + - 点击“我已阅读并同意此协议”,然后点击下一步 + ![许可协议](./figures/许可协议.png) +@@ -163,8 +152,8 @@ systemctl restart migration-tools-agent + + ![环境检测](./figures/环境检测.png) + +-- 用户检测页面会检查用户名以及密码,推荐使用root用户,点击下一步开始检测,检测完成后自动进入repo源配置页面 +-![用户检测](./figures/用户检测.png) ++- 用户检测页面会检查用户名以及密码,推荐使用root用户,迁移到UOS则点击下一步开始检测,检测完成后自动进入repo源配置页面。迁移openEuler系统可直接跳转迁移页面。 ++![用户检测](./figures/选择目标系统.png) + + repo源配置页面 + +@@ -198,7 +187,7 @@ repo源配置页面 + - 导出后,可在server端/var/tmp/migration-tools/目录下找到报告和日志的压缩包,解压后即可查看 + ![迁移完成](./figures/迁移完成.png) + +-- 迁移完成后,需手动重启agent机器,并验证是否迁移完成 ++- 迁移完成后,需手动重启agent机器,并验证是否迁移完成。 + + ###### 验证步骤 + +@@ -210,6 +199,7 @@ uosinfo + + 如显示以下信息表示升级成功 + 1002a: ++ + ``` shell + ################################################# + Release: UnionTech OS Server release 20 (kongli) +@@ -226,3 +216,6 @@ Kernel : 4.19.0-91.82.88.uelc20.x86_64 + Build : UnionTech OS Server 20 1050a 20220214 x86_64 + ################################################# + ``` ++ ++迁移完成后需要手动重启系统,重启完成后即迁移完成。 ++![openeuler迁移完成](./figures/openeuler-migration-complete.png) +diff --git a/templates/MT_agreement.html b/templates/MT_agreement.html +index 5f8a31e..be70ca8 100755 +--- a/templates/MT_agreement.html ++++ b/templates/MT_agreement.html +@@ -12,9 +12,7 @@ + + +
+- +
+- + +- +- +
+- +-
+- 欢迎使用统信服务器系统迁移软件。 +-
+- 此迁移工具用于将【当前操作系统】替换为【统信服务器操作系统 V20】,并将 RPM 软件包替换为统信的 RPM 软件包。 ++ ++
++ 欢迎使用统信服务器系统迁移软件。 ++
++ 此迁移工具用于将【当前操作系统】替换为【统信服务器操作系统 V20】,并将 RPM 软件包替换为统信的 RPM 软件包。 +
+- +- + 协议许可: +
+
+@@ -42,7 +36,7 @@ +

木兰公共许可证, 第2版

+

2021年5月 http://license.coscl.org.cn/MulanPubL-2.0

+

您对“贡献”的复制、使用、修改及分发受木兰公共许可证,第2版(以下简称“本许可证”)的如下条款的约束:

+- 0. 定义 ++ 0. 定义 +

“贡献“是指由“贡献者”许可在“本许可证”下的受版权法保护的作品,包括最初“贡献者”许可在“本许可证”下的作品及后续“贡献者”许可在“本许可证”下的“衍生作品”。

+

“贡献者” 是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。

+

“法人实体” 是指提交贡献的机构及其“关联实体”。

+@@ -88,28 +82,22 @@ +

1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字;

+

2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中;

+

3, 请将如下声明文本放入每个源文件的头部注释中。

+- +
+- +
+
+ + + 下一步 +
+- +
+
+

+- + + + + +- + + +- + + + +diff --git a/templates/MT_check_environment.html b/templates/MT_check_environment.html +index 2724e06..1e6da94 100644 +--- a/templates/MT_check_environment.html ++++ b/templates/MT_check_environment.html +@@ -14,59 +14,54 @@ + + +
+- +
+- + +
+
+-
++
+ +- + + + +@@ -74,13 +69,12 @@ + + + +- + +- + + +diff --git a/templates/MT_check_evn.html b/templates/MT_check_evn.html +index 82cfc5c..fe9c8d8 100755 +--- a/templates/MT_check_evn.html ++++ b/templates/MT_check_evn.html +@@ -12,9 +12,7 @@ + + +
+- +
+- + +- + +- ++
+ +
+
+-
+- +- ++
+
+
+-
+-
++
++
+ + +
+- +
+
+- + + + + +- + + +- + +- + + +diff --git a/templates/MT_check_root.html b/templates/MT_check_root.html +index bc296bf..eb4dc3f 100755 +--- a/templates/MT_check_root.html ++++ b/templates/MT_check_root.html +@@ -13,9 +13,7 @@ + +
+
+- +
+- + +- + +- +- +-
+- +-
++
++
++
+
+ +-
+- +- +-
++
++ ++ ++
+
+
+- +
+
+ +-
+- +- +-
++
++ ++ ++
+
+
+-
+- +- ++
++
++
++ ++
++ ++
++
++
++
++ ++ ++
+
+-
+-
+-
+-
+-
+- +-
+-
+
+
++
++
++
++
+ + +
+- +
+
+- + + + + +- + + +- + +- + + +diff --git a/templates/MT_kernel.html b/templates/MT_kernel.html +index 5277833..e8b93c8 100755 +--- a/templates/MT_kernel.html ++++ b/templates/MT_kernel.html +@@ -9,13 +9,10 @@ + + + +- + + +
+- +
+- + +- +- + +- +
+

当前系统版本内核

+
+- +-
+-
+- +-
+- +-
+-
+-
++
++
++ ++
++ ++
++
++
+
+-
+-
+-
+-
+-
+-
+- +-
+-
+
+
++
++
++
++
++
++
++
++
+ + +
+- +
+
+- + + + + +- + + +- + +- + + +diff --git a/templates/MT_migration.html b/templates/MT_migration.html +index 77bf56a..e72aefd 100644 +--- a/templates/MT_migration.html ++++ b/templates/MT_migration.html +@@ -14,9 +14,7 @@ + + +
+- +
+- + +
+-
++
+ +
+- + + + + + +- + +- + + +diff --git a/templates/MT_migration_results.html b/templates/MT_migration_results.html +index ca6625a..e095e8a 100755 +--- a/templates/MT_migration_results.html ++++ b/templates/MT_migration_results.html +@@ -16,9 +16,7 @@ + +
+
+- +
+- + + + +