EulerOS/OpenEuler
EulerOS不需要安装dracut-modules-growroot包,只安装cloud-init和cloud-utils-growpart即可。其中,cloud-init已在安装Cloud-Init中安装。
- 检查是否已安装cloud-init、cloud-utils-growpart。若没有,需要执行本章节操作进行安装。
[root@localhost ~]# rpm -qa | grep cloud-init cloud-init-0.7.6-3.x86_64 [root@localhost ~]# rpm -qa | grep growpart [root@localhost ~]#
- 下载cloud-utils-growpart-0.27-10.x86_64.rpm包(下载网址:http://repo.huaweicloud.com/euler/2.2/os/x86_64/Packages/),并将安装包上传至虚拟机,然后执行以下命令,安装cloud-utils-growpart包。
rpm -ivh cloud-utils-growpart-0.27-10.x86_64.rpm
[root@bms-eulor22 home]# rpm -ivh cloud-utils-growpart-0.27-10.x86_64.rpm Preparing... ############################### [100%] Updating / installing... 1:cloud-utils-growpart-0.27-10 ############################### [100%]
也可以使用ISO做本地repo源,执行yum install cloud-utils-growpart进行安装。
- 再次执行1中的命令,检查cloud-utils-growpart包是否已安装成功。
[root@localhost ~]# rpm -qa | grep growpart cloud-utils-growpart-0.27-10.x86_64