diff --git a/xCAT-server/share/xcat/install/centos/compute.centos7.tmpl b/xCAT-server/share/xcat/install/centos/compute.centos7.tmpl index b8cc19ca5..71da3c7c9 100644 --- a/xCAT-server/share/xcat/install/centos/compute.centos7.tmpl +++ b/xCAT-server/share/xcat/install/centos/compute.centos7.tmpl @@ -33,6 +33,7 @@ clearpart --all --initlabel #XCAT_PARTITION_START# # xCAT based partitioning %include /tmp/partitionfile + #No RAID #/boot really significant for this sort of setup nowadays? #part /boot --size 50 --fstype ext3 @@ -134,7 +135,6 @@ rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password# # OR auth --useshadow --enablemd5 - # # SE Linux # diff --git a/xCAT-server/share/xcat/install/centos/kvm.centos7.tmpl b/xCAT-server/share/xcat/install/centos/kvm.centos7.tmpl index 17e6078c4..71da3c7c9 100644 --- a/xCAT-server/share/xcat/install/centos/kvm.centos7.tmpl +++ b/xCAT-server/share/xcat/install/centos/kvm.centos7.tmpl @@ -12,8 +12,6 @@ lang en_US %include /tmp/repos -#INSTALL_SOURCES# - #device ethernet e100 keyboard "us" @@ -25,8 +23,7 @@ zerombr # # Wipe out the disk # -# Clear partitioning via partitition file -#clearpart --all --initlabel +clearpart --all --initlabel #clearpart --linux # @@ -34,7 +31,7 @@ zerombr # #XCAT_PARTITION_START# -#Use script based partition table creation +# xCAT based partitioning %include /tmp/partitionfile #No RAID @@ -168,5 +165,6 @@ cat >> /var/log/xcat/xcat.log << "EOF" EOF echo "Running Kickstart Post-Installation script..." #INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.xcat# +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rhels7# } &>>/var/log/xcat/xcat.log %end diff --git a/xCAT-server/share/xcat/install/rh/compute.rhels7.tmpl b/xCAT-server/share/xcat/install/rh/compute.rhels7.tmpl index b8cc19ca5..71da3c7c9 100644 --- a/xCAT-server/share/xcat/install/rh/compute.rhels7.tmpl +++ b/xCAT-server/share/xcat/install/rh/compute.rhels7.tmpl @@ -33,6 +33,7 @@ clearpart --all --initlabel #XCAT_PARTITION_START# # xCAT based partitioning %include /tmp/partitionfile + #No RAID #/boot really significant for this sort of setup nowadays? #part /boot --size 50 --fstype ext3 @@ -134,7 +135,6 @@ rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password# # OR auth --useshadow --enablemd5 - # # SE Linux # diff --git a/xCAT-server/share/xcat/install/rh/kvm.rhels7.tmpl b/xCAT-server/share/xcat/install/rh/kvm.rhels7.tmpl index 9bc3b7250..71da3c7c9 100644 --- a/xCAT-server/share/xcat/install/rh/kvm.rhels7.tmpl +++ b/xCAT-server/share/xcat/install/rh/kvm.rhels7.tmpl @@ -31,13 +31,14 @@ clearpart --all --initlabel # #XCAT_PARTITION_START# +# xCAT based partitioning +%include /tmp/partitionfile + #No RAID #/boot really significant for this sort of setup nowadays? #part /boot --size 50 --fstype ext3 -%include /tmp/partitionfile #part swap --size 1024 #part / --size 1 --grow --fstype ext4 -#XCAT_PARTITION_END# #RAID 0 /scr for performance #part / --size 1024 --ondisk sda @@ -68,6 +69,7 @@ clearpart --all --initlabel #part raid.41 --size 1 --grow --ondisk sda #part raid.42 --size 1 --grow --ondisk sdb #raid /scr --level 1 --device md4 raid.41 raid.42 +#XCAT_PARTITION_END# # # bootloader config @@ -75,7 +77,12 @@ clearpart --all --initlabel # --useLilo # --md5pass # -bootloader +#The bootloader config here is commented out +#For user customized partition file or partition script, +#the bootloader configuration should be specified in the user customized partition file/script +#For the xCAT default partition scheme, the bootloader configuration is in /tmp/partitionfile +#which is generated in %pre section +##KICKSTARTBOOTLOADER# # # install or upgrade @@ -128,7 +135,6 @@ rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password# # OR auth --useshadow --enablemd5 - # # SE Linux # @@ -146,8 +152,19 @@ reboot #INCLUDE_DEFAULT_PKGLIST# %end %pre +{ +echo "Running Kickstart Pre-Installation script..." #INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/pre.rh.rhels7# +} &>>/tmp/pre-install.log %end %post +mkdir -p /var/log/xcat/ +{ +cat >> /var/log/xcat/xcat.log << "EOF" +%include /tmp/pre-install.log +EOF +echo "Running Kickstart Post-Installation script..." #INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.xcat# +#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.rhels7# +} &>>/var/log/xcat/xcat.log %end diff --git a/xCAT-server/share/xcat/install/rh/service.rhels7.tmpl b/xCAT-server/share/xcat/install/rh/service.rhels7.tmpl index b8cc19ca5..71da3c7c9 100644 --- a/xCAT-server/share/xcat/install/rh/service.rhels7.tmpl +++ b/xCAT-server/share/xcat/install/rh/service.rhels7.tmpl @@ -33,6 +33,7 @@ clearpart --all --initlabel #XCAT_PARTITION_START# # xCAT based partitioning %include /tmp/partitionfile + #No RAID #/boot really significant for this sort of setup nowadays? #part /boot --size 50 --fstype ext3 @@ -134,7 +135,6 @@ rootpw --iscrypted #CRYPT:passwd:key=system,username=root:password# # OR auth --useshadow --enablemd5 - # # SE Linux #