/[smeserver]/cdrom.image/sme10/Packages/base/sme-kickstart.cfg
ViewVC logotype

Diff of /cdrom.image/sme10/Packages/base/sme-kickstart.cfg

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by unnilennium, Mon May 30 09:31:44 2016 UTC Revision 1.3 by unnilennium, Tue May 31 12:37:44 2016 UTC
# Line 2  Line 2 
2  auth --enableshadow --passalgo=sha512  auth --enableshadow --passalgo=sha512
3  # Use CDROM installation media  # Use CDROM installation media
4  cdrom  cdrom
5  # Use graphical install  # we do not want Selinux
 #graphical  
 #%include /usr/share/anaconda/interactive-defaults.ks  
 #install  
 ignoredisk --only-use=vda  
 # Keyboard layouts  
 keyboard --xlayouts='us'  
 # System language  
 lang en_US.UTF-8  
6  selinux --disabled  selinux --disabled
7  #reboot  # services to activate
8    services --disabled=lm_sensors
9    # default root pass, willbe changed in post-install process anyway
10    rootpw --lock
11    
12    # include the partitioning logic from the pre section.
13    %include /tmp/part-include
14    
15  # System timezone  %pre
16  timezone America/New_York --isUtc  # pre section
17    #----- partitioning logic below--------------
18    # pick the first drive that is not removable and is over MINSIZE
19    DIR="/sys/block"
20    
21    # minimum size of hard drive needed specified in GIGABYTES
22    MINSIZE=20
23    
24    ROOTDRIVE=""
25    
26    # /sys/block/*/size is in 512 byte chunks
27    
28    for DEV in sda sdb sdc sdd hda hdb vda vdb xvda xvdb; do
29      if [ -d $DIR/$DEV ]; then
30        REMOVABLE=`cat $DIR/$DEV/removable`
31        if (( $REMOVABLE == 0 )); then
32          echo $DEV
33          SIZE=`cat $DIR/$DEV/size`
34          GB=$(($SIZE/2**21))
35          if [ $GB -gt $MINSIZE ]; then
36            echo "$(($SIZE/2**21))"
37            if [ -z $ROOTDRIVE ]; then
38              ROOTDRIVE=$DEV
39            fi
40          fi
41        fi
42      fi
43    done
44    
45    echo "ROOTDRIVE=$ROOTDRIVE"
46    
47    # drives smaller than 40GB use smaller boot and swap partitions
48    # drives larger than 40GB use percentage-based partition sizes
49    
50  # System bootloader configuration  if [ $GB -lt 40 ]; then
51  bootloader --append=" crashkernel=auto quiet" --location=mbr --boot-drive=vda  
52  #Clear the Master Boot Record  # drives smaller than 40GB
53  #zerombr yes  cat << EOF > /tmp/part-include
54  zerombr  zerombr
55    clearpart --all --drives=$ROOTDRIVE --initlabel
56    bootloader --location=mbr --driveorder=$ROOTDRIVE
57    # for boot partition
58    part /boot --fstype ext4 --size=300 --ondisk=$ROOTDRIVE
59    # for LVM partition
60    part pv.8 --size=4600 --grow --ondisk=$ROOTDRIVE
61    # LVM
62    volgroup main --pesize=65536 pv.8
63    logvol / --fstype ext4 --name=root --vgname=main --grow --size=3000
64    logvol swap --fstype swap --name=swap --vgname=main --size=1500
65    
66    EOF
67    
68    
69    else
70    # drives 40GB and larger
71    
72    cat << EOF > /tmp/part-include
73    zerombr
74    clearpart --all --drives=$ROOTDRIVE --initlabel
75    bootloader --location=mbr --driveorder=$ROOTDRIVE
76    # for boot partition
77    part /boot --fstype ext4 --size=500 --ondisk=$ROOTDRIVE
78    # for LVM partition
79    part pv.8 --size=4600 --grow --ondisk=$ROOTDRIVE
80    # LVM
81    volgroup main --pesize=65536 pv.8
82    logvol / --fstype ext4 --name=root --vgname=main --grow  --size=3000
83    logvol swap --fstype swap --name=swap --vgname=main --size=4000
84    
85    EOF
86    
87    fi
88    
89    %end
90    
91    
92    
93    
94    
95    
96    
97    
98    
99    
100    
101    
102    
 # Partition clearing information  
 #clearpart --all --initlabel --drives=vda  
103    
 # autopartionning  
 autopart --type=lvm  
104    
 ## Disks for 500 MB boot partition  
 #part raid.01 --size=500 --asprimary --ondisk=vda  
 #part raid.02 --size=500 --asprimary --ondisk=vdb  
   
 ## Disks for LVM partition  
 #part raid.11 --size=1 --grow --ondisk=vda  
 #part raid.12 --size=1 --grow --ondisk=vdb  
   
 ## RAID settings  
 #raid /boot --fstype ext2 --device md0 --level=RAID1 raid.01 raid.02  
 #raid pv.01 --device md1 --level=RAID1 raid.11 raid.12  
   
 # LVM configuration  
 #volgroup vg pv.01  
 #logvol / --vgname=vg --size=1 --grow --fstype ext3 --name=root  
 #logvol swap --vgname=vg --recommended --name=swap  
105    
106    
 # services to activate  
 services --disabled=lm_sensors  
107  # packages to install  # packages to install
108  %packages  %packages
109  @^minimal  @^minimal


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed