23 |
|
|
24 |
|
|
25 |
# Add netinstall repos |
# Add netinstall repos |
26 |
repo --name=smeos --baseurl=http://mirror.canada.pialasse.com/releases/testing/10/smeos/x86_64/ |
repo --name=smeos --baseurl=https://mirror.koozali.org/releases/testing/10/smeos/x86_64/ |
27 |
repo --name=smeupdates --baseurl=http://mirror.canada.pialasse.com/releases/testing/10/smeupdates/x86_64/ |
repo --name=smeupdates --baseurl=https://mirror.koozali.org/releases/testing/10/smeupdates/x86_64/ |
28 |
|
|
29 |
# Packages to install |
# Packages to install |
30 |
%packages |
%packages |
42 |
# Read command line arguments |
# Read command line arguments |
43 |
if grep nolvm "/proc/cmdline" ; then NOLVM=true ; fi |
if grep nolvm "/proc/cmdline" ; then NOLVM=true ; fi |
44 |
if grep noraid "/proc/cmdline" ; then NORAID=true ; fi |
if grep noraid "/proc/cmdline" ; then NORAID=true ; fi |
45 |
|
if grep noxfs "/proc/cmdline" ; then FSTYPE="ext4" ; else FSTYPE="xfs" ; fi |
46 |
echo "Command line arguments:" |
echo "Command line arguments:" |
47 |
cat /proc/cmdline |
cat /proc/cmdline |
48 |
|
|
153 |
fi |
fi |
154 |
|
|
155 |
# Create boot partition |
# Create boot partition |
156 |
printf "part /boot --fstype=xfs --size=500 --label=BOOT --ondisk=%s\n" "${DRIVES[0]}" >> /tmp/part-include |
printf "part /boot --fstype=%s --size=500 --label=BOOT --ondisk=%s\n" "$FSTYPE" "${DRIVES[0]}" >> /tmp/part-include |
157 |
|
|
158 |
# Default to LVM unless specified at command line |
# Default to LVM unless specified at command line |
159 |
if [ $NOLVM ] ; then |
if [ $NOLVM ] ; then |
160 |
cat >> /tmp/part-include <<EOF |
cat >> /tmp/part-include <<EOF |
161 |
part / --fstype=xfs --grow --size=3000 --label=ROOT --ondisk=${DRIVES[0]} |
part / --fstype=$FSTYPE --grow --size=3000 --label=ROOT --ondisk=${DRIVES[0]} |
162 |
part swap --fstype=swap --recommended --label=SWAP --ondisk=${DRIVES[0]} |
part swap --fstype=swap --recommended --label=SWAP --ondisk=${DRIVES[0]} |
163 |
EOF |
EOF |
164 |
else |
else |
165 |
cat >> /tmp/part-include <<EOF |
cat >> /tmp/part-include <<EOF |
166 |
part pv.01 --size=4300 --grow --ondisk=${DRIVES[0]} |
part pv.01 --size=4300 --grow --ondisk=${DRIVES[0]} |
167 |
volgroup main pv.01 |
volgroup main pv.01 |
168 |
logvol / --fstype=xfs --name=root --vgname=main --grow --size=3000 |
logvol / --fstype=$FSTYPE --name=root --vgname=main --grow --size=3000 |
169 |
logvol swap --fstype=swap --name=swap --vgname=main --recommended |
logvol swap --fstype=swap --name=swap --vgname=main --recommended |
170 |
EOF |
EOF |
171 |
fi |
fi |
226 |
fi |
fi |
227 |
|
|
228 |
# Boot partition |
# Boot partition |
229 |
printf "raid /boot --fstype=xfs --level=1 --spares=0 --device=md0 %s\n" "$BOOTDEVS" >> /tmp/part-include |
printf "raid /boot --fstype=%s --level=1 --spares=0 --device=md0 %s\n" "$FSTYPE" "$BOOTDEVS" >> /tmp/part-include |
230 |
|
|
231 |
# Default to LVM unless specified |
# Default to LVM unless specified |
232 |
if [ $NOLVM ] ; then |
if [ $NOLVM ] ; then |
233 |
cat >> /tmp/part-include <<EOF |
cat >> /tmp/part-include <<EOF |
234 |
raid / --fstype=xfs --level=$LEVEL --spares=$SPARE --device=md1 $ROOTDEVS |
raid / --fstype=$FSTYPE --level=$LEVEL --spares=$SPARE --device=md1 $ROOTDEVS |
235 |
raid swap --fstype=swap --level=$LEVEL --spares=$SPARE --device=md2 $SWAPDEVS |
raid swap --fstype=swap --level=$LEVEL --spares=$SPARE --device=md2 $SWAPDEVS |
236 |
EOF |
EOF |
237 |
else |
else |
238 |
cat >> /tmp/part-include <<EOF |
cat >> /tmp/part-include <<EOF |
239 |
raid pv.01 --level=$LEVEL --spares=$SPARE --device=md1 $ROOTDEVS |
raid pv.01 --level=$LEVEL --spares=$SPARE --device=md1 $ROOTDEVS |
240 |
volgroup main pv.01 |
volgroup main pv.01 |
241 |
logvol / --fstype xfs --name=root --vgname=main --grow --size=3000 |
logvol / --fstype=$FSTYPE --name=root --vgname=main --grow --size=3000 |
242 |
logvol swap --fstype swap --name=swap --vgname=main --recommended |
logvol swap --fstype swap --name=swap --vgname=main --recommended |
243 |
EOF |
EOF |
244 |
fi |
fi |