Skip to content
Snippets Groups Projects
Commit 0c7df21a authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

refactored installer.sh

parent 70ea3b10
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
# include functions.sh again, thins it is a new environment
. ./functions.sh
. /opt/functions.sh
# include develop config
. ./installer.config
. /tmp/answerfile
# include diskspreparation.sh
echo "run disks preparation"
. ./diskspreparation.sh
echo "run disks preparation finished"
beginLogEntry "run disks preparation"
. /opt/diskspreparation.sh
finishLogEntry "done"
# append local fstab, possible problems with automount included in tinycore
beginLogEntry "mount target disks"
cat /tmp/fstab.target >> /etc/fstab
# inform kernel about changes
sync
sleep 2
partprobe
sleep 2
# mount all unmounted file systems
mount -a
echo "mounting file systems"
finishLogEntry "done"
# include runinstaller.sh if it exists
if [ -f runinstaller.sh ]
then
echo "run installer"
. ./runinstaller.sh
echo "run installer finished"
else
echo "file runinstaller.sh not found"
if [ -f runinstaller.sh ];
then
. /opt/runinstaller.sh
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment