1 2 3 4 5 6 7 8
install_live() { mount_iso install -d "$DATADIR/centos/" "$KERNELDIR/centos/$version" cp "$ISOPATH/$ISOFILE" "$DATADIR/centos/" cp "$ISOMNT/images/pxeboot/vmlinuz" "$ISOMNT/images/pxeboot/initrd.img" "$KERNELDIR/centos/$version" umount_iso }