/[smeserver]/cdrom.image/sme10/netinstall/ks.cfg
ViewVC logotype

Diff of /cdrom.image/sme10/netinstall/ks.cfg

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

Revision 1.2 by chrissn, Wed Nov 25 14:10:36 2020 UTC Revision 1.3 by chrissn, Tue Dec 29 15:12:14 2020 UTC
# Line 22  eula --agreed Line 22  eula --agreed
22    
23    
24  # Add netinstall repos  # Add netinstall repos
25  url --url https://mirror.canada.pialasse.com/releases/testing/10/smeos/x86_64/  url --url  https://mirror.canada.pialasse.com/releases/testing/10/smeos/x86_64/
26  repo --name=smeupdates --baseurl=https://mirror.canada.pialasse.com/releases/testing/10/smeupdates/x86_64/  repo --name=smeupdates --baseurl=https://mirror.canada.pialasse.com/releases/testing/10/smeupdates/x86_64/
27    
28  # Packages to install  # Packages to install
# Line 126  EOF Line 126  EOF
126      # from https://wiki.contribs.org/Raid      # from https://wiki.contribs.org/Raid
127      # 2 Drives - Software RAID 1      # 2 Drives - Software RAID 1
128      # 3 Drives - Software RAID 1 + 1 Hot-spare      # 3 Drives - Software RAID 1 + 1 Hot-spare
129      # 4-6 Drives - Software RAID 5 + 1 Hot-spare      # 4 Drives - Software RAID 6
130      # 7+ Drives - Software RAID 6 + 1 Hot-spare      # 5+ Drives - Software RAID 6 + 1 Hot-spare
131    
132      if [ ${#DRIVES[@]} == 2 ] ; then      if [ ${#DRIVES[@]} == 2 ] ; then
133        LEVEL=1        LEVEL=1
# Line 135  EOF Line 135  EOF
135      elif [ ${#DRIVES[@]} == 3 ] ; then      elif [ ${#DRIVES[@]} == 3 ] ; then
136        LEVEL=1        LEVEL=1
137        SPARE=1        SPARE=1
138      elif (( ${#DRIVES[@]} > 3 && ${#DRIVES[@]} <= 6 )) ; then      elif [ ${#DRIVES[@]} == 4 ] ; then
139        LEVEL=5        LEVEL=6
140        SPARE=1        SPARE=0
141      else      else
142        LEVEL=6        LEVEL=6
143        SPARE=1        SPARE=1
# Line 150  EOF Line 150  EOF
150            
151      # Include the EFI partition if necessary      # Include the EFI partition if necessary
152      if [ -d /sys/firmware/efi ] ; then      if [ -d /sys/firmware/efi ] ; then
153        printf "raid /boot/efi --fstype=efi --level=1 --spares=%s --device=md9 %s\n" "$SPARE" "$EFIDEVS" >> /tmp/part-include        printf "raid /boot/efi --fstype=efi --level=1 --spares=0 --device=md9 %s\n" "$EFIDEVS" >> /tmp/part-include
154      fi      fi
155    
156      printf "raid /boot --fstype=xfs --level=1 --spares=%s --device=md0 %s\n" "$SPARE" "$BOOTDEVS" >> /tmp/part-include      printf "raid /boot --fstype=xfs --level=1 --spares=0 --device=md0 %s\n" "$BOOTDEVS" >> /tmp/part-include
157      printf "raid pv.01 --level=%s --spares=%s --device=md1 %s\n" "$LEVEL" "$SPARE" "$ROOTDEVS" >> /tmp/part-include      printf "raid pv.01 --level=%s --spares=%s --device=md1 %s\n" "$LEVEL" "$SPARE" "$ROOTDEVS" >> /tmp/part-include
158    
159      # Set up LVM      # Set up LVM


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