Skip to content

Commit d40a6b9

Browse files
mgcaolijinxia
authored andcommitted
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>
1 parent 496e400 commit d40a6b9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

devicemodel/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ install-samples-nuc: $(SAMPLES_NUC)
184184

185185
install-samples-mrb: $(SAMPLES_MRB)
186186
install -D -t $(DESTDIR)/usr/share/acrn/samples/apl-mrb $^
187+
install -p -D -m 0644 ./samples/apl-mrb/acrn_guest.service $(DESTDIR)/usr/lib/systemd/system
187188

188189
install-bios: $(BIOS_BIN)
189190
install -d $(DESTDIR)/usr/share/acrn/bios
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Unit]
2+
Description=Start ACRN UOS
3+
After=systemd-networkd.service
4+
5+
ConditionPathExists=/sys/kernel/gvt
6+
7+
[Service]
8+
Type=simple
9+
RemainAfterExit=false
10+
ExecStart=/bin/sh /usr/share/acrn/samples/apl-mrb/launch_uos.sh -V 5
11+
12+
[Install]
13+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)