neoagent 2.3.1-beta.83 → 2.3.1-beta.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/guest_agent.js +1 -0
- package/server/public/.last_build_id +1 -1
- package/server/public/flutter_bootstrap.js +1 -1
- package/server/public/main.dart.js +4 -4
- package/server/services/runtime/guest_bootstrap.js +3 -1
- package/server/services/runtime/qemu.js +12 -24
package/package.json
CHANGED
package/server/guest_agent.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
fd0797f2209789364168077213933ca3
|
|
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"42d3d75a56efe1a2e9902f52dc8006099c45d9
|
|
|
37
37
|
|
|
38
38
|
_flutter.loader.load({
|
|
39
39
|
serviceWorkerSettings: {
|
|
40
|
-
serviceWorkerVersion: "
|
|
40
|
+
serviceWorkerVersion: "2721040569" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
|
|
41
41
|
}
|
|
42
42
|
});
|
|
@@ -127331,7 +127331,7 @@ r===$&&A.b()
|
|
|
127331
127331
|
o.push(A.id(p,A.iS(!1,new A.a3(B.tF,A.e_(new A.cU(B.h8,new A.a5o(r,p),p),p,p),p),!1,B.I,!0),p,p,0,0,0,p))}r=!1
|
|
127332
127332
|
if(!s.ay)if(!s.ch){r=s.e
|
|
127333
127333
|
r===$&&A.b()
|
|
127334
|
-
r=B.b.A("
|
|
127334
|
+
r=B.b.A("mp2izzds-c4e9e33").length!==0&&r.b}if(r){r=s.d
|
|
127335
127335
|
r===$&&A.b()
|
|
127336
127336
|
r=r.V&&!r.a0?84:0
|
|
127337
127337
|
q=s.e
|
|
@@ -131991,7 +131991,7 @@ $S:324}
|
|
|
131991
131991
|
A.Y_.prototype={}
|
|
131992
131992
|
A.R_.prototype={
|
|
131993
131993
|
mJ(a){var s=this
|
|
131994
|
-
if(B.b.A("
|
|
131994
|
+
if(B.b.A("mp2izzds-c4e9e33").length===0||s.a!=null)return
|
|
131995
131995
|
s.zY()
|
|
131996
131996
|
s.a=A.pN(B.Pq,new A.b3i(s))},
|
|
131997
131997
|
zY(){var s=0,r=A.l(t.H),q,p=2,o=[],n=this,m,l,k,j,i,h,g,f
|
|
@@ -132009,7 +132009,7 @@ if(!t.f.b(k)){s=1
|
|
|
132009
132009
|
break}i=J.Z(k,"buildId")
|
|
132010
132010
|
h=i==null?null:B.b.A(J.r(i))
|
|
132011
132011
|
j=h==null?"":h
|
|
132012
|
-
if(J.bi(j)===0||J.c(j,"
|
|
132012
|
+
if(J.bi(j)===0||J.c(j,"mp2izzds-c4e9e33")){s=1
|
|
132013
132013
|
break}n.b=!0
|
|
132014
132014
|
n.J()
|
|
132015
132015
|
p=2
|
|
@@ -132026,7 +132026,7 @@ case 2:return A.i(o.at(-1),r)}})
|
|
|
132026
132026
|
return A.k($async$zY,r)},
|
|
132027
132027
|
v0(){var s=0,r=A.l(t.H),q,p=2,o=[],n=this,m,l,k,j,i,h,g,f,e,d,c,b,a,a0,a1
|
|
132028
132028
|
var $async$v0=A.h(function(a2,a3){if(a2===1){o.push(a3)
|
|
132029
|
-
s=p}for(;;)switch(s){case 0:if(B.b.A("
|
|
132029
|
+
s=p}for(;;)switch(s){case 0:if(B.b.A("mp2izzds-c4e9e33").length===0||n.c){s=1
|
|
132030
132030
|
break}n.c=!0
|
|
132031
132031
|
n.J()
|
|
132032
132032
|
p=4
|
|
@@ -49,7 +49,7 @@ function createCloudInitScript({
|
|
|
49
49
|
' local tag="$1"',
|
|
50
50
|
' local target="$2"',
|
|
51
51
|
' local mode="$3"',
|
|
52
|
-
' mount -t 9p -o "trans=virtio,version=9p2000.L,msize=
|
|
52
|
+
' mount -t 9p -o "trans=virtio,version=9p2000.L,msize=131072,${mode}" "$tag" "$target" >/dev/null 2>&1',
|
|
53
53
|
'}',
|
|
54
54
|
'',
|
|
55
55
|
'if ! mount_9p_tag "$HOST_SHARE_TAG" "$HOST_SHARE_MOUNT" ro; then',
|
|
@@ -224,6 +224,8 @@ function createCloudInitUserData({
|
|
|
224
224
|
' ExecStart=/usr/bin/env node /opt/neoagent/server/guest_agent.js',
|
|
225
225
|
' Restart=always',
|
|
226
226
|
' RestartSec=5',
|
|
227
|
+
' StandardOutput=journal+console',
|
|
228
|
+
' StandardError=journal+console',
|
|
227
229
|
'',
|
|
228
230
|
' [Install]',
|
|
229
231
|
' WantedBy=multi-user.target',
|
|
@@ -294,33 +294,21 @@ function buildQemuArgs({
|
|
|
294
294
|
);
|
|
295
295
|
|
|
296
296
|
if (hostShareRoot) {
|
|
297
|
-
const
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
for (const device of devices) {
|
|
304
|
-
args.push(
|
|
305
|
-
'-fsdev', `local,path=${hostShareRoot},id=${device.id},security_model=none,readonly=on`,
|
|
306
|
-
'-device', `${device.type},fsdev=${device.id},mount_tag=${device.tag}`,
|
|
307
|
-
);
|
|
308
|
-
}
|
|
297
|
+
const id = 'fsdev-host';
|
|
298
|
+
const deviceType = arch === 'arm64' ? 'virtio-9p-pci,disable-legacy=on,disable-modern=off,romfile=' : 'virtio-9p-pci';
|
|
299
|
+
args.push(
|
|
300
|
+
'-fsdev', `local,path=${hostShareRoot},id=${id},security_model=none,readonly=on`,
|
|
301
|
+
'-device', `${deviceType},fsdev=${id},mount_tag=neoagent-host`,
|
|
302
|
+
);
|
|
309
303
|
}
|
|
310
304
|
|
|
311
305
|
if (hostDataRoot) {
|
|
312
|
-
const
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
for (const device of devices) {
|
|
319
|
-
args.push(
|
|
320
|
-
'-fsdev', `local,path=${hostDataRoot},id=${device.id},security_model=none`,
|
|
321
|
-
'-device', `${device.type},fsdev=${device.id},mount_tag=${device.tag}`,
|
|
322
|
-
);
|
|
323
|
-
}
|
|
306
|
+
const id = 'fsdev-data';
|
|
307
|
+
const deviceType = arch === 'arm64' ? 'virtio-9p-pci,disable-legacy=on,disable-modern=off,romfile=' : 'virtio-9p-pci';
|
|
308
|
+
args.push(
|
|
309
|
+
'-fsdev', `local,path=${hostDataRoot},id=${id},security_model=none`,
|
|
310
|
+
'-device', `${deviceType},fsdev=${id},mount_tag=neoagent-data`,
|
|
311
|
+
);
|
|
324
312
|
}
|
|
325
313
|
|
|
326
314
|
if (seedPath) {
|