DM: check more in guest service & launch script
some exceptions can happen if westnon or network name service not started before launch uos guest, like gvt and network exceptions, which can cause SOS reboot. so add the dependency. add data partiton check in launch script, for it can be called in every clearlinux platform. Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed-by: Binbin Wu <binbin.wu@intel.com>
This commit is contained in:
parent
04b4c9110c
commit
af7943c5e6
|
@ -1,8 +1,11 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Start ACRN UOS
|
Description=Start ACRN UOS
|
||||||
After=systemd-networkd.service
|
After=acrnprobe.service
|
||||||
|
After=weston.service
|
||||||
|
After=systemd-resolved.service
|
||||||
|
|
||||||
ConditionPathExists=/sys/kernel/gvt
|
ConditionPathExists=/sys/kernel/gvt
|
||||||
|
ConditionPathExists=/dev/acrn_vhm
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|
|
@ -330,6 +330,11 @@ do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ ! -b "/dev/mmcblk1p3" ]; then
|
||||||
|
echo "no /dev/mmcblk1p3 data partition, exit"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p /data
|
mkdir -p /data
|
||||||
mount /dev/mmcblk1p3 /data
|
mount /dev/mmcblk1p3 /data
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue