2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-05 12:25:44 +00:00

Merge pull request #5625 from samveen/ks_impr

Kickstart improvements
This commit is contained in:
cxhong
2018-09-17 15:33:44 -04:00
committed by GitHub
5 changed files with 27 additions and 12 deletions

View File

@ -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
#

View File

@ -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

View File

@ -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
#

View File

@ -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 <crypted MD5 password for GRUB>
#
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

View File

@ -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
#