使用特殊情况
mkdir /var/www/html/CentOS-7.6
mount -o loop /opt/CentOS-7-x86_64-Minimal-1810.iso /var/www/html/CentOS-7.6
mkdir -p /var/www/html/CentOS-6.10
mount -o loop /opt/CentOS-6.10-x86_64-minimal.iso /var/www/html/CentOS-6.10/
mkdir /opt/livecd/
cd /opt/livecd/
cp /var/www/html/CentOS-7.6/isolinux/vmlinuz vmlinuz7.6
cp /var/www/html/CentOS-7.6/isolinux/initrd.img initrd7.6.img
cp /var/www/html/CentOS-6.10/isolinux/initrd.img initrd6.10.img
cp /var/www/html/CentOS-6.10/isolinux/vmlinuz vmlinuz6.10
cobbler distro add --name=CentOS-6.10-X86_64-manual --kernel=/opt/livecd/vmlinuz6.10 --initrd=/opt/livecd/initrd6.10.img
cobbler distro edit --name=CentOS-6.10-X86_64-manual --kopts='repo= '
cobbler profile add --name=CentOS-6.10-X86_64-manual --distro=CentOS-6.10-X86_64-manual
cobbler distro add --name=CentOS-7.6-X86_64-manual --kernel=/opt/livecd/vmlinuz7.6 --initrd=/opt/livecd/initrd7.6.img
cobbler distro edit --name=CentOS-7.6-X86_64-manual --kopts='repo= '
cobbler profile add --name=CentOS-7.6-X86_64-manual --distro=CentOS-7.6-X86_64-manual
阅读(3178) | 评论(0) | 转发(0) |