diff --git a/products/anolis/kbase/ANCK-kernel-switch.md b/products/anolis/kbase/ANCK-kernel-switch.md deleted file mode 100644 index 6690a5a39b9fabc0a739a1bfd15e327c9fb7887c..0000000000000000000000000000000000000000 --- a/products/anolis/kbase/ANCK-kernel-switch.md +++ /dev/null @@ -1,65 +0,0 @@ -ANCK 内核切换声明 -===================== - - -## 1. 引言 - 本文适用于Anolis 8.8 及后续版本,如果您用的是8.6 及之前的版本,可以考虑升级到8.8 版本,或参考[安装 5.10 内核指南](xxx) - -## 2. 版本变动 - 在Anolis 8.8 版本中 5.10 ANCK 内核已经成熟并不再合适放置于 Experimental 仓库,因此自该版本开始,后续 5.10 内核将单独放置于 kernel-5.10 仓库中,Experimental 仓库中将无法获取到 5.10 内核包。 - -## 3. 获取方式 - 自Anolis 8.8 开始,kernel-5.10 仓库的配置文件将默认自带在系统中(由anolis-repos软件包提供),其对应的 repo 文件为 > /etc/yum.repos.d/AnolisOS-kernel-5.10.repo 。该仓库默认情况下是不开启的,如果需要使能该仓库请进行如下修改: - ```bash - $ yum list kernel --enablerepo=kernel-5.10 - $ yum install kernel --enablerepo=kernel-5.10 -y - ``` - 执行上述步骤后,即可正常安装 5.10 内核 - -## 4. 切换内核方式 - 如果您不希望继续使用 5.10 内核,可以通过安装其他版本内核的方式进行内核版本的切换。本文以切换 4.19 内核版本为例: - ### 4.1 安装 4.19 内核(可选) - 开启 Plus 仓库,并安装 4.19 内核包: - ```bash - $ yum list kernel --enablerepo=Plus - $ yum install kernel-4.19.91 --enablerepo=Plus -y - ``` - ### 4.2 切换默认内核 - ```bash - $ grubby --info=ALL - index=0 - kernel="/boot/vmlinuz-5.10.134-12.2.an8.x86_64" - args="ro cryptomgr.notests cgroup.memory=nokmem rcupdate.rcu_cpu_stall_timeout=300 vring_force_dma_api rhgb quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295 $tuned_params crashkernel=0M-2G:0M,2G-8G:192M,8G-:384M" - root="UUID=55bde6d2-582c-4fd4-b1b6-cc5bd933a201" - initrd="/boot/initramfs-5.10.134-12.2.an8.x86_64.img $tuned_initrd" - title="Anolis OS (5.10.134-12.2.an8.x86_64) 8.6" - id="20220704130104793829711868918489-5.10.134-12.2.an8.x86_64" - index=1 - kernel="/boot/vmlinuz-4.19.91-27.1.an8.x86_64" - args="ro crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M cryptomgr.notests rcupdate.rcu_cpu_stall_timeout=300 vring_force_dma_api rhgb quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295 $tuned_params cgroup.memory=nokmem" - root="UUID=55bde6d2-582c-4fd4-b1b6-cc5bd933a201" - initrd="/boot/initramfs-4.19.91-27.1.an8.x86_64.img $tuned_initrd" - title="Anolis OS (4.19.91-27.1.an8.x86_64) 8" - id="20220704130104793829711868918489-4.19.91-27.1.an8.x86_64" - index=2 - kernel="/boot/vmlinuz-4.19.91-26.6.an8.x86_64" - args="ro crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M cryptomgr.notests rcupdate.rcu_cpu_stall_timeout=300 vring_force_dma_api rhgb quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295 $tuned_params cgroup.memory=nokmem" - root="UUID=55bde6d2-582c-4fd4-b1b6-cc5bd933a201" - initrd="/boot/initramfs-4.19.91-26.6.an8.x86_64.img $tuned_initrd" - title="Anolis OS (4.19.91-26.6.an8.x86_64) 8" - id="20220704130104793829711868918489-4.19.91-26.6.an8.x86_64" - index=3 - kernel="/boot/vmlinuz-0-rescue-20220704130104793829711868918489" - args="ro crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M cryptomgr.notests cgroup.memory=nokmem rcupdate.rcu_cpu_stall_timeout=300 vring_force_dma_api rhgb quiet biosdevname=0 net.ifnames=0 console=tty0 console=ttyS0,115200n8 noibrs nvme_core.io_timeout=4294967295 nvme_core.admin_timeout=4294967295" - root="UUID=55bde6d2-582c-4fd4-b1b6-cc5bd933a201" - initrd="/boot/initramfs-0-rescue-20220704130104793829711868918489.img" - title="Anolis OS (0-rescue-20220704130104793829711868918489) 8" - id="20220704130104793829711868918489-0-rescue" - - ``` - 找到对应 4.19 内核的index,以上文为例可以看到index 是 1 - ```bash - $ grubby --set-default 1 - $ reboot - ``` - 执行如上命令后,重启系统即可切换默认内核 diff --git a/products/anolis/kbase/FAQ.md b/products/anolis/kbase/FAQ.md deleted file mode 100644 index c37a8d74f7e6fc5930f728763b0e71696e5c3d02..0000000000000000000000000000000000000000 --- a/products/anolis/kbase/FAQ.md +++ /dev/null @@ -1,9 +0,0 @@ -# FAQ - -### 1. Anolis 8.8 共支持多少个内核版本? - -> ​ 3个。包括:RHCK 4.18 版本、ANCK 4.19 版本、ANCK 5.10 版本共三个版本。 - -### 2. 为何新版本内核的版本发生了变化 - -> ​ 5.10 内核已经在先前版本中经历了稳定性测试,现已经进化成为成熟度较高的软件包,因此不再适合放置于 Experimental 仓库中,而是默认搭载于 8.8 版本中。 \ No newline at end of file diff --git a/products/anolis/kbase/assets/dde-1.jpg b/products/anolis/kbase/assets/dde-1.jpg deleted file mode 100644 index c1207a823909095df0c7889c88f2f6166f46c29f..0000000000000000000000000000000000000000 Binary files a/products/anolis/kbase/assets/dde-1.jpg and /dev/null differ diff --git a/products/anolis/kbase/assets/dde-2.jpg b/products/anolis/kbase/assets/dde-2.jpg deleted file mode 100644 index 5b41cba5e62ce429121e627d76b255dbd94ba70c..0000000000000000000000000000000000000000 Binary files a/products/anolis/kbase/assets/dde-2.jpg and /dev/null differ diff --git "a/products/anolis/kbase/\347\237\245\350\257\206\345\272\223.md" "b/products/anolis/kbase/\347\237\245\350\257\206\345\272\223.md" deleted file mode 100644 index c7b4029870183d71687745fbe9cf9097f87e23bc..0000000000000000000000000000000000000000 --- "a/products/anolis/kbase/\347\237\245\350\257\206\345\272\223.md" +++ /dev/null @@ -1,50 +0,0 @@ -# 知识库 - -### 1. 我安装了 5.10 内核,如何获取内核更新? - -> Anolis 8.8 /etc/yum.repo.d/ 中新增了 kernel-5.10.repo 配置文件,请在保证网络通畅的前提下,修改其中的 enabled=0 为 enabled=1 ,以启用 5.10 的 repo 从而获取更新 - -### 2. 如何获取其他版本的内核包: - -> Anolis OS 中不同版本的内核放置在不同的repo中: -> -> - -### 3. 我使用了 minimal iso 安装系统,为什么找不到 /var/log/messages 文件? - -> 该文件由 rsyslog 软件包提供,minimal ISO环境中默认不安装 rsyslog ,需要手动安装 rsyslog 包。 -> -> ``` -> yum install -y rsyslog -> ``` -> -> - -### 4. 如何使用 ISO 安装 DDE 组件: - -> 在 ISO 引导安装后,点击软件包选择选项: -> ![dde选项1](assets/dde-1.jpg "software-selection") - -> 随后勾选 'Deepin New Desktop Environment' -> ![dde选项2](assets/dde-2.jpg "DDE-select") - -### 5. 我是用的是 8.2/8.4/8.6 版本镜像,为何我无法获取到5.10的内核包了 - -> 因 5.10 内核包已满足成熟度要求,因此已移出 8.8 版本 Exprimental 仓库,因此该问题可以通过以下两种方式解决: -> ->
    ->
  1. (推荐)执行 yum update -y anolis-repos,在/etc/yum.repos.d/中会有Anolis-kernel-5.10.repo 仓库文件,将该仓库启用即可获取 5.10 内核包
  2. ->
  3. 在执行yum 命令时增加参数 --releasever [8.2/8.4/8.6] ,或执行 echo [8.2/8.4/8.6] > /etc/yum/vars/releasever -> ,或将 /etc/yum.repos.d/ 下所有仓库的url中的$releasever 修改为 [8.2/8.4/8.6] ,可以解决该问题,但该方式可能无法获取最新版本更新 ->
- -### 6. /etc/redhat-release 文件找不到了,如何再次获取? - ->自 Anolis 8.8 版本起,将不再默认提供 /etc/redhat-release ,如果需求,可以执行 ``` yum install -y anolis-compat-release ``` 重新获取