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/ |
#this one gives curl 6 errors on netinstall while added manually works from time to time |
27 |
repo --name=smeupdates --baseurl=http://mirror.canada.pialasse.com/releases/testing/10/smeupdates/x86_64/ |
#url --mirrorlist https://mirrorlist.koozali.org/mirrorlist/smeos-10-x86_64 |
28 |
|
#repo --name=smeupdates --mirrorlist https://mirrorlist.koozali.org/mirrorlist/smeupdates-10-x86_64 |
29 |
|
#repo --name=smeos --baseurl http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/10/smeos/x86_64/ |
30 |
|
#repo --name=smeupdates --baseurl http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/10/smeupdates/x86_64/ |
31 |
|
repo --name=smeos --mirrorlist https://mirrorlist.koozali.org/mirrorlist/smeos-10-x86_64 |
32 |
|
repo --name=smeupdates --mirrorlist https://mirrorlist.koozali.org/mirrorlist/smeupdates-10-x86_64 |
33 |
|
|
34 |
# Packages to install |
# Packages to install |
35 |
%packages |
%packages |
47 |
# Read command line arguments |
# Read command line arguments |
48 |
if grep nolvm "/proc/cmdline" ; then NOLVM=true ; fi |
if grep nolvm "/proc/cmdline" ; then NOLVM=true ; fi |
49 |
if grep noraid "/proc/cmdline" ; then NORAID=true ; fi |
if grep noraid "/proc/cmdline" ; then NORAID=true ; fi |
50 |
|
if grep noxfs "/proc/cmdline" ; then FSTYPE="ext4" ; else FSTYPE="xfs" ; fi |
51 |
echo "Command line arguments:" |
echo "Command line arguments:" |
52 |
cat /proc/cmdline |
cat /proc/cmdline |
53 |
|
|
158 |
fi |
fi |
159 |
|
|
160 |
# Create boot partition |
# Create boot partition |
161 |
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 |
162 |
|
|
163 |
# Default to LVM unless specified at command line |
# Default to LVM unless specified at command line |
164 |
if [ $NOLVM ] ; then |
if [ $NOLVM ] ; then |
165 |
cat >> /tmp/part-include <<EOF |
cat >> /tmp/part-include <<EOF |
166 |
part / --fstype=xfs --grow --size=3000 --label=ROOT --ondisk=${DRIVES[0]} |
part / --fstype=$FSTYPE --grow --size=3000 --label=ROOT --ondisk=${DRIVES[0]} |
167 |
part swap --fstype=swap --recommended --label=SWAP --ondisk=${DRIVES[0]} |
part swap --fstype=swap --recommended --label=SWAP --ondisk=${DRIVES[0]} |
168 |
EOF |
EOF |
169 |
else |
else |
170 |
cat >> /tmp/part-include <<EOF |
cat >> /tmp/part-include <<EOF |
171 |
part pv.01 --size=4300 --grow --ondisk=${DRIVES[0]} |
part pv.01 --size=4300 --grow --ondisk=${DRIVES[0]} |
172 |
volgroup main pv.01 |
volgroup main pv.01 |
173 |
logvol / --fstype=xfs --name=root --vgname=main --grow --size=3000 |
logvol / --fstype=$FSTYPE --name=root --vgname=main --grow --size=3000 |
174 |
logvol swap --fstype=swap --name=swap --vgname=main --recommended |
logvol swap --fstype=swap --name=swap --vgname=main --recommended |
175 |
EOF |
EOF |
176 |
fi |
fi |
231 |
fi |
fi |
232 |
|
|
233 |
# Boot partition |
# Boot partition |
234 |
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 |
235 |
|
|
236 |
# Default to LVM unless specified |
# Default to LVM unless specified |
237 |
if [ $NOLVM ] ; then |
if [ $NOLVM ] ; then |
238 |
cat >> /tmp/part-include <<EOF |
cat >> /tmp/part-include <<EOF |
239 |
raid / --fstype=xfs --level=$LEVEL --spares=$SPARE --device=md1 $ROOTDEVS |
raid / --fstype=$FSTYPE --level=$LEVEL --spares=$SPARE --device=md1 $ROOTDEVS |
240 |
raid swap --fstype=swap --level=$LEVEL --spares=$SPARE --device=md2 $SWAPDEVS |
raid swap --fstype=swap --level=$LEVEL --spares=$SPARE --device=md2 $SWAPDEVS |
241 |
EOF |
EOF |
242 |
else |
else |
243 |
cat >> /tmp/part-include <<EOF |
cat >> /tmp/part-include <<EOF |
244 |
raid pv.01 --level=$LEVEL --spares=$SPARE --device=md1 $ROOTDEVS |
raid pv.01 --level=$LEVEL --spares=$SPARE --device=md1 $ROOTDEVS |
245 |
volgroup main pv.01 |
volgroup main pv.01 |
246 |
logvol / --fstype xfs --name=root --vgname=main --grow --size=3000 |
logvol / --fstype=$FSTYPE --name=root --vgname=main --grow --size=3000 |
247 |
logvol swap --fstype swap --name=swap --vgname=main --recommended |
logvol swap --fstype swap --name=swap --vgname=main --recommended |
248 |
EOF |
EOF |
249 |
fi |
fi |