From 903a28a9956e907bfbefb0cc5bcd811252c22e9f Mon Sep 17 00:00:00 2001 From: Zhijiang Hu Date: Thu, 30 Nov 2017 07:47:54 -0500 Subject: [PATCH] kickstart file huge page automount bugfix Change-Id: I0d645e0d0b5f640e253371e9c7595dc3dff23002 Signed-off-by: Zhijiang Hu --- code/pxe_server_install/pxe_install/scripts/setup_func.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/pxe_server_install/pxe_install/scripts/setup_func.sh b/code/pxe_server_install/pxe_install/scripts/setup_func.sh index d1d284ec..b9220804 100755 --- a/code/pxe_server_install/pxe_install/scripts/setup_func.sh +++ b/code/pxe_server_install/pxe_install/scripts/setup_func.sh @@ -467,7 +467,7 @@ function custom_ks_hugepages [[ $sizes != "1G" && $sizes != "2M" ]] && { pxelog "[error]hugepagesize value error($sizes)" "console"; return 1; } sed -i "s/#bootloader_append_hugepage_place_holder/bootloader --append=\"intel_iommu=on iommu=pt transparent_hugepage=never default_hugepagesz=${sizes} hugepagesz=${sizes} hugepages=${pages}\"/g" $KS_FILE - sed -i "s/#fstab_hugetlbfs_place_holder/echo \"nodev /mnt/huge_1GB hugetlbfs pagesize=1GB 0 0\" >> /etc/fstab/g" $KS_FILE + sed -i "s/#fstab_hugetlbfs_place_holder/echo \"nodev \/mnt\/huge_1GB hugetlbfs pagesize=1GB 0 0\" >> \/etc\/fstab/g" $KS_FILE fi pxelog "end custom_ks_hugepages ${sizes}, ${sizes}\n"