mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-30 10:55:27 +00:00
DM: add service to support auot boot UOS
add acrn_guest.service, and modify makefile to install it into root fs. Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed-by: Like Yan <like.yan@intel.com>
This commit is contained in:
parent
496e40072e
commit
d40a6b9e93
@ -184,6 +184,7 @@ install-samples-nuc: $(SAMPLES_NUC)
|
||||
|
||||
install-samples-mrb: $(SAMPLES_MRB)
|
||||
install -D -t $(DESTDIR)/usr/share/acrn/samples/apl-mrb $^
|
||||
install -p -D -m 0644 ./samples/apl-mrb/acrn_guest.service $(DESTDIR)/usr/lib/systemd/system
|
||||
|
||||
install-bios: $(BIOS_BIN)
|
||||
install -d $(DESTDIR)/usr/share/acrn/bios
|
||||
|
13
devicemodel/samples/apl-mrb/acrn_guest.service
Normal file
13
devicemodel/samples/apl-mrb/acrn_guest.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Start ACRN UOS
|
||||
After=systemd-networkd.service
|
||||
|
||||
ConditionPathExists=/sys/kernel/gvt
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
RemainAfterExit=false
|
||||
ExecStart=/bin/sh /usr/share/acrn/samples/apl-mrb/launch_uos.sh -V 5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user