如果是 Rocky Linux & RHEL:
/var/log/cron
如果是 openSUSE & SLES:
/var/spool/mail/<user>
如果是 Rocky Linux & RHEL:
/var/log/cron
如果是 openSUSE & SLES:
/var/spool/mail/<user>
(步骤略)
# mkdir <directory for mounting the image>
# mount -t iso9660 <image> <directory for mounting the image>
# mkdir <directory of data for installing the system>
(注意:用于存放系统安装数据的目录必须要放在能够实现 PXE 安装时网络共享的目录里(例如:通过 httpd 服务进行网络共享))
# cp -rp <directory for mounting the image>/* <directory of data for installing the system>
# cp -rp <directory for mounting the image>/.treeinfo <directory of data for installing the system>
# mkdir <directory of BIOS boot file for installing the system>
(注意:用于存放 BIOS 安装引导文件的目录必须要放在能够实现 TFPT 网络共享的目录里)
# mkdir <directory of EFI boot file for installing the system>
(注意:用于存放 EFI 安装引导文件的目录必须要放在能够实现 TFPT 网络共享的目录里)
如果是 Rocky Linux & RHEL 则拷贝 initrd.img 文件、TRANS.TBL 文件和 vmlinuz 文件:
# curl <The URL of the network share when PXE installing>/<directory of data for installing the system>/images/pxeboot/initrd.img -O <directory of BIOS boot file for installing the system>/initrd.img
# curl <The URL of the network share when PXE installing>/<directory of data for installing the system>/images/pxeboot/TRANS.TBL -O <directory of BIOS boot file for installing the system>/TRANS.TBL
# curl <The URL of the network share when PXE installing>/<directory of data for installing the system>/images/pxeboot/vmlinuz -O <directory of BIOS boot file for installing the system>/vmlinuz
如果是 openSUSE & SLES 则拷贝 linux 文件和 initrd 文件:
# curl <The URL of the network share when PXE installing>/<directory of data for installing the system>/boot/x86_64/loader/linux -O <directory of BIOS boot file for installing the system>/linux
# curl <The URL of the network share when PXE installing>/<directory of data for installing the system>/boot/x86_64/loader/initrd -O <directory of BIOS boot file for installing the system>/initrd
如果是 Rocky Linux & RHEL 则拷贝 initrd.img 文件、TRANS.TBL 文件和 vmlinuz 文件:
# curl <The URL of the network share when PXE installing>/<directory of data for installing the system>/images/pxeboot/initrd.img -O <directory of EFI boot file for installing the system>/initrd.img
# curl <The URL of the network share when PXE installing>/<directory of data for installing the system>/images/pxeboot/TRANS.TBL -O <directory of EFI boot file for installing the system>/TRANS.TBL
# curl <The URL of the network share when PXE installing>/<directory of data for installing the system>/images/pxeboot/vmlinuz -O <directory of EFI boot file for installing the system>/vmlinuz
如果是 openSUSE & SLES 则拷贝 linux 文件和 initrd 文件:
# curl <The URL of the network share when PXE installing>/<directory of data for installing the system>/boot/x86_64/loader/linux -O <directory of EFI boot file for installing the system>/linux
# curl <The URL of the network share when PXE installing>/<directory of data for installing the system>/boot/x86_64/loader/initrd -O <directory of EFI boot file for installing the system>/initrd
# cd <directory of profile for installing the system>
(注意:进入到用于存放系统安装配置文件的目录必须要放在能够实现 PXE 安装时网络共享的目录里(例如:通过 httpd 服务进行网络共享))
如果是 Rocky Linux & RHEL 的话
# vim <BIOS system installation profile>
(步骤略)
(
补充:
1) 如果是 Rocky Linux & RHEL 的话系统安装配置文件是 CFG 文件,文件名最好以 .cfg 后缀结尾
2) 如果是 openSUSE & SLES 的话系统安装配置文件是 XML 文件,文件名最好以 .xml 后缀结尾
)
# vim <EFI system installation profile>
(步骤略)
(
补充:
1) 如果是 Rocky Linux & RHEL 的话系统安装配置文件是 CFG 文件,文件名最好以 .cfg 后缀结尾
2) 如果是 openSUSE & SLES 的话系统安装配置文件是 XML 文件,文件名最好以 .xml 后缀结尾
)
# chmod 755 <BIOS system installation profile>
# chmod 755 <EFI system installation profile>
# vim <directory of file for BIOS system installation menu>/pxelinux.cfg/default
如果是 Rocky Linux & RHEL 的话,添加以下内容:
......
label Rocky Linux or RHEL
menu label ^Installation Rocky Linux or RHEL
kernel <relative directory of pxelinux.cfg of BIOS boot file for installing the system>/vmlinuz
append initrd=<relative directory of pxelinux.cfg of BIOS boot file for installing the system>/initrd.img ks=<The URL of the network share when PXE installing>/<BIOS system installation profile>
(注意:这里的 vmlinuz 文件和 initrd.im 文件的位置要写 pxelinux.cfg 文件的相对路径)
如果是 openSUSE & SLES 的话,添加以下内容:
......
label openSUSE or SLES
menu label ^Installation openSUSE or SLE
kernel <relative directory of pxelinux.cfg of BIOS boot file for installing the system>/linux
append initrd=<relative directory of pxelinux.cfg of BIOS boot file for installing the system>/initrd splash=silent showopts install=<The URL of the network share when PXE installing>/<directory of data for installing the system>/ autoyast=<The URL of the network share when PXE installing>/<BIOS system installation profile>
(注意:这里的 linux 文件和 initrd 文件的位置要写 pxelinux.cfg 文件的相对路径)
(注意:用于存放 BIOS 系统安装菜单文件的目录必须要放在能够实现 TFPT 网络共享的目录里)
# vim <directory of file for EFI system installation menu>/grub.cfg
如果是 Rocky Linux & RHEL 的话,添加以下内容:
......
menuentry 'label Rocky Linux or RHEL' {
linuxefi <relative directory of pxelinux.cfg of EFI boot file for installing the system>/vmlinuz ks=<The URL of the network share when PXE installing>/<EFI system installation profile>
initrdefi <relative directory of pxelinux.cfg of EFI boot file for installing the system>/initrd.img
}
(注意:这里的 vmlinuz 文件和 initrd.im 文件的位置要写 pxelinux.cfg 文件的相对路径)
如果是 openSUSE & SLES 的话,添加以下内容:
......
menuentry 'label openSUSE or SUSE' {
linuxefi <relative directory of linux of EFI boot file for installing the system>/linux install=<The URL of openSUSE or SUSE image> autoyast=<The URL of the network share when PXE installing>/<EFI system installation profile>
initrdefi <relative directory of pxelinux.cfg of EFI boot file for installing the system>/initrd.img
}
(注意:这里的 linux 文件和 initrd 文件的位置要写 pxelinux.cfg 文件的相对路径)
(注意:用于存放 EFI 系统安装菜单文件的目录必须要放在能够实现 TFPT 网络共享的目录里)
# umount <directory for mounting the image>
1) DEFAULT 不严格的安全等级,可以让系统使用 TLSv1.2
2) FUTURE 严格的安全等级,只能让系统使用 TLSv1.2 不能使用 TLSv1.3
# update-crypto-policies --show
DEFAULT
或者:
# cat /etc/crypto-policies/state/current
DEFAULT:DEFAULT
(补充:从这里可以看出目前的 update-crypto-policies 参数是 DEFAULT)
# update-crypto-policies --set=FUTURE
或者:
# update-crypto-policies --set FUTURE
(补充:这里以将 update-crypto-policies 参数设置为 FUTURE 为例)
curl: (35) error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
Rocky Linux 8 & RHEL 8 已经默认废弃 TLSv1.2
可以使用 TLSv1.3 替代 TLSv1.2 或者将 update-crypto-policies 参数设置为 DEFAULT 以解决此报错
# update-crypto-policies --show
FUTURE
(补充:从这里可以看出目前的 update-crypto-policies 参数是 FUTURE)
# update-crypto-policies --set=DEFAULT
(补充:这里以将 update-crypto-policies 参数设置为 DEFAULT 为例)
# hdparm -Ttv /dev/sda
/dev/sda:
multcount = 128 (on)
IO_support = 1 (32-bit)
readonly = 0 (off)
readahead = 1024 (on)
geometry = 8354/255/63, sectors = 134217728, start = 0
Timing cached reads: 7304 MB in 2.00 seconds = 3658.90 MB/sec
Timing buffered disk reads: 612 MB in 3.01 seconds = 203.07 MB/sec
(补充:这里以测试 /dev/sda 硬盘的读取速度为例)