2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 11:10:24 +00:00

modify the ubuntu_os_other_pkg

This commit is contained in:
junxiawang
2015-12-14 01:17:39 -05:00
parent 8d53d3d6e4
commit bc2a5a2a2a

View File

@@ -6,26 +6,26 @@ The Ubuntu ISO used to install the compute nodes only include packages to run a
Compute nodes can access the internet
-------------------------------------
#. : Specify the repository
#. Specify the repository
Define the **otherpkgdir** attribute in osimage to use the internet repository directly.: ::
Define the **otherpkgdir** attribute in osimage to use the internet repository directly.: ::
chdef -t osimage <osimage name> otherpkgdir="http://us.archive.ubuntu.com/ubuntu/ \
$(lsb_release -sc) main,http://us.archive.ubuntu.com/ubuntu/ $(lsb_release -sc)-update main"
#. : Define the otherpkglist file
#. Define the otherpkglist file
create an otherpkglist file,**/install/custom/install/ubuntu/compute.otherpkgs.pkglist**. Add the packages' name into thist file. And modify the otherpkglist attribute for osimage object. ::
create an otherpkglist file,**/install/custom/install/ubuntu/compute.otherpkgs.pkglist**. Add the packages' name into thist file. And modify the otherpkglist attribute for osimage object. ::
chdef -t osimage <osimage name> otherpkglist=/install/custom/install/ubuntu/compute.otherpkgs.pkglist
#. : Run ``updatenode <noderange> -S`` or ``updatenode <noderange> -P otherpkgs``
#. Run ``updatenode <noderange> -S`` or ``updatenode <noderange> -P otherpkgs``
Run ``updatenode -S`` to **install/update** the packages on the compute nodes ::
Run ``updatenode -S`` to **install/update** the packages on the compute nodes ::
updatenode <noderange> -S
Run ``updatenode -P`` otherpkgs to **install/update** the packages on the compute nodes ::
Run ``updatenode -P`` otherpkgs to **install/update** the packages on the compute nodes ::
updatenode <noderange> -P otherpkgs