correct nfs mount option is nfsvers

This commit is contained in:
Trevor Cooper 2024-04-08 09:08:33 -07:00
parent e9f102e4d4
commit 62c35a7d7c
Signed by: tcooper
GPG Key ID: 52364D7BBCEB35B8

View File

@ -114,7 +114,7 @@ sub _pxe_setup {
# https://fedoraproject.org/wiki/QA:Testcase_Kickstart_File_Path_Ks_Cfg
assert_script_run "curl -o ks.cfg https://git.rockylinux.org/tcooper/kickstarts/-/raw/main/root-user-crypted-net.ks";
# tweak the repo config in it
assert_script_run "sed -i -e 's,^url.*,nfs --server=nfs://172.16.2.110 --dir=/repo --opts=nfsver=4,g' ks.cfg";
assert_script_run "sed -i -e 's,^url.*,nfs --server=nfs://172.16.2.110 --dir=/repo --opts=nfsvers=4,g' ks.cfg";
# embed it
assert_script_run "echo ks.cfg | cpio -c -o >> /var/lib/tftpboot/rocky/initrd.img";
# chown root