Repository navigation
Expand file tree
/
Copy pathbaguette.nix
More file actions
676 lines (611 loc) · 26 KB
/
Copy pathbaguette.nix
File metadata and controls
676 lines (611 loc) · 26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
(
{
modulesPath,
pkgs,
config,
lib,
options,
...
}:
let
ephemeral = config.baguette.ephemeralRoot;
resizeMountPoint = if ephemeral.enable then ephemeral.stateMountPoint else "/";
resizeCommand = "${pkgs.btrfs-progs}/bin/btrfs filesystem resize max ${lib.escapeShellArg resizeMountPoint}";
overlayOptions = [
"lowerdir=/run/ephemeral/lower"
"upperdir=/run/ephemeral/upper"
"workdir=/run/ephemeral/work"
]
++ ephemeral.mountOptions;
# Without an initrd, `init` is stage 2. A systemd initrd uses
# `prepare-root` instead, leaving `init` for systemd itself.
initScript = if config.boot.initrd.enable then "prepare-root" else "init";
ephemeralInit = pkgs.replaceVarsWith {
src = ./ephemeral-init.sh;
isExecutable = true;
replacements = {
shell = "${pkgs.bash}/bin/bash";
coreutils = pkgs.coreutils;
utilLinux = pkgs.util-linux;
btrfs = pkgs.btrfs-progs;
systemd = config.systemd.package;
persistMachineId = lib.boolToString ephemeral.persistMachineId;
tmpfsSize = ephemeral.tmpfsSize;
overlayOptions = lib.escapeShellArg (lib.concatStringsSep "," overlayOptions);
earlyMountScript = config.system.build.earlyMountScript;
stage2 = initScript;
systemConfig = null; # Filled in by the toplevel builder.
};
};
baguette-env = pkgs.stdenv.mkDerivation {
name = "10-baguette-envs.sh";
# Vendored from chromiumos/platform2 at
# 051c972a75c15d38c7bab7ac017c7550ca6c24f5. Keeping this tiny pinned
# file in-tree avoids making every image build depend on Gitiles.
src = ./third_party/chromiumos-platform2/10-baguette-envs.sh;
dontBuild = true;
dontUnpack = true;
installPhase = ''
cp "$src" "$out"
# Interactive shells wait for notify units in interactiveShellInit.
# We delete the wait.
substituteInPlace "$out" --replace-fail '
# Wait until sommelier starts before give the shell to user, max 4 seconds
SECONDS=0
while ! pgrep -f "sommelier" > /dev/null; do
sleep 1
SECONDS=$((SECONDS+1))
if [[ ''${SECONDS} -ge 4 ]]; then
break
fi
done
sleep 0.2
' ""
'';
};
in
{
imports = [
./common.nix
"${modulesPath}/profiles/qemu-guest.nix"
"${modulesPath}/image/file-options.nix"
];
options = with lib; {
baguette.ephemeralRoot = {
enable = mkEnableOption "a fresh Baguette root at each boot, with root writes in RAM" // {
description = ''
Start each boot with a fresh root filesystem.
Store root changes in RAM.
Boot the base image with `vmc start --rootfs`.
Keep persistent data on a separate writable disk.
'';
};
persistMachineId = mkEnableOption "a stable machine ID on the state volume" // {
description = ''
Keep the machine ID in the state subvolume's `machine-id` file.
Generate the ID on the first boot.
Copy the ID into `/etc/machine-id` before systemd starts.
This option requires `baguette.ephemeralRoot.enable`.
'';
};
mountOptions = mkOption {
type = types.listOf types.str;
default = [ ];
example = [
"nosuid"
"nodev"
];
description = ''
Set extra options for the first overlay mount.
The guest mounts the overlay before systemd starts.
Use this option instead of an fstab remount.
'';
};
stateMountPoint = mkOption {
type = types.strMatching "/.+";
default = "/state";
description = ''
Set the mount point for the persistent Btrfs `state` subvolume.
Use bind mounts from this path to keep data between boots.
'';
};
tmpfsSize = mkOption {
type = types.strMatching "[1-9][0-9]*[kKmMgGtTpPeE%]?";
default = "1G";
description = ''
Set the size limit for the tmpfs that stores root changes.
Use bytes, a unit such as M or G, or a percentage of RAM.
Writes fail with ENOSPC when the tmpfs is full.
'';
};
};
baguette.portListener.enable = mkEnableOption "advertising guest listening ports to ChromeOS" // {
default = true;
description = "Send guest listening ports to ChromeOS.";
};
baguette.notifications.enable = mkEnableOption "forwarding guest notifications to ChromeOS" // {
default = true;
description = "Send desktop notifications to ChromeOS.";
};
baguette.imageCompression = {
level = mkOption {
type = types.ints.between 1 19;
default = 3;
description = "Set the zstd compression level of the base image.";
};
threads = mkOption {
type = types.ints.unsigned;
default = 0;
description = "Set the compression worker count. Use zero for all CPUs.";
};
};
virtualisation.buildMemorySize = mkOption {
type = types.ints.positive;
default = 1024;
description = ''
Set the memory size of the image build VM in MiB.
'';
};
virtualisation.diskImageSize = mkOption {
type = types.ints.positive;
default = 4096;
description = ''
Set the Btrfs image size in MiB.
'';
};
};
config = {
boot = {
isContainer = false;
supportedFilesystems = [ "btrfs" ];
# Taken from the lxc container definition.
postBootCommands = ''
# After booting, register the contents of the Nix store in the Nix
# database.
if [ -f /nix-path-registration ]; then
${config.nix.package.out}/bin/nix-store --load-db < /nix-path-registration &&
rm /nix-path-registration
fi
# Images already contain the profile. Retain initialization for
# tarball installs and update it when booting another generation.
if [ "$(readlink -f /nix/var/nix/profiles/system)" != "$(readlink -f /run/current-system)" ]; then
${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
fi
# rely on host for DNS resolution
ln -sf /run/resolv.conf /etc/resolv.conf
'';
loader.grub.enable = false;
loader.initScript.enable = true;
};
# Filesystem configuration
fileSystems =
if ephemeral.enable then
{
"/" = {
device = "overlay";
fsType = "overlay";
options = overlayOptions;
};
${ephemeral.stateMountPoint} = {
device = "/dev/vdc";
fsType = "btrfs";
options = [ "subvol=state" ];
};
}
else
{
"/" = {
device = "/dev/vdb";
fsType = "btrfs";
};
};
# Disable systemd-gpt-auto-generator which fails (graciously) in Baguette.
systemd.generators."systemd-gpt-auto-generator" = "/dev/null";
# Don't attempt to load kernel modules unavailable in Baguette.
boot.kernelModules = lib.mkForce [ ];
# Baguette boots the ChromeOS kernel. The kernel, its modules, and the
# initrd of the configuration never run, and take 200 MiB in the image.
boot.kernel.enable = lib.mkDefault false;
boot.kexec.enable = lib.mkDefault false;
boot.initrd.enable = lib.mkDefault false;
networking = {
hostName = lib.mkDefault "baguette-nixos";
useHostResolvConf = true;
resolvconf.enable = false;
dhcpcd.enable = false;
hosts = {
"100.115.92.2" = [ "arc" ];
};
};
# The virtual RTC supplies the clock at boot. After every host resume,
# concierge calls maitred's SetTime (vm_tools/concierge/service.cc,
# HandleSuspendDone).
services.timesyncd.enable = lib.mkDefault false;
services = {
# Restrict host compositor access to the virtwl group.
# https://chromium.googlesource.com/chromiumos/containers/cros-container-guest-tools/+/6d62810ff0231fbccbc1b0279e695842d88d6c5c/cros-wayland/10-cros-virtwl.rules
udev.extraRules = ''
KERNEL=="wl*", GROUP="virtwl", MODE="0660"
'';
# https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/vm_tools/baguette_image/src/data/usr/local/lib/systemd/journald.conf.d/50-console.conf?autodive=0%2F%2F%2F
# TODO: Remove the extraConfig fallback once NixOS 26.11 ships.
journald =
if options.services.journald ? settings then
{
settings.Journal = {
ForwardToConsole = true;
# ChromeOS captures the serial console in vmc logs. Keep
# warnings there and the full journal inside the guest.
MaxLevelConsole = lib.mkDefault "warning";
};
}
else
{
extraConfig = ''
ForwardToConsole=yes
MaxLevelConsole=warning
'';
};
# D-Bus service for cros-notificationd activation
# https://chromium.googlesource.com/chromiumos/containers/cros-container-guest-tools/+/refs/heads/main/cros-notificationd/org.freedesktop.Notifications.service
dbus.packages = lib.mkIf config.baguette.notifications.enable [
(pkgs.writeTextDir "share/dbus-1/services/org.freedesktop.Notifications.service" ''
[D-BUS Service]
Name=org.freedesktop.Notifications
Exec=/bin/false
SystemdService=cros-notificationd.service
'')
];
};
# NOTE: maitred reports permissions errors for `/dev/kmsg`
# but they happen on the standard Debian baguette image as well.
# This is a hack to reproduce /etc/profile.d in NixOS
environment.shellInit = lib.mkBefore ". ${baguette-env}";
# vsh can open an interactive shell during startup. Wait for actual
# READY=1 notifications, not a process-name match or a fixed delay.
# Noninteractive activation must be able to run before user services.
environment.interactiveShellInit = ''
if [ "$(id -u)" -ne 0 ]; then
# Keep a diagnostic shell available if graphics cannot start.
${pkgs.coreutils}/bin/timeout 4s systemctl --user start \
${lib.escapeShellArgs config.systemd.user.services.garcon.requires} || true
. /etc/profile.d/crostini-sommelier.sh
fi
'';
system =
let
imageInit = if ephemeral.enable then "ephemeral-init" else initScript;
in
{
systemBuilderCommands = lib.mkIf ephemeral.enable ''
cp ${ephemeralInit} "$out/ephemeral-init"
substituteInPlace "$out/ephemeral-init" --subst-var-by systemConfig "$out"
'';
activationScripts = {
baguette = ''
mkdir -p /usr/share/
ln -sf /etc/zoneinfo /usr/share/
''
+
# maitred sets up the user of `vmc start`: `useradd` for a new
# name, with the shell /bin/bash, or `usermod` for a known one.
''
mkdir -p /usr/sbin/ /bin/
ln -sf ${pkgs.shadow}/bin/useradd /usr/sbin/useradd
ln -sf ${pkgs.shadow}/bin/usermod /usr/sbin/usermod
ln -sf ${lib.getExe pkgs.bashInteractive} /bin/bash
''
# Resize the available space to the one provided by Baguette
+ (
if ephemeral.enable then
''
# At boot, systemd mounts state after activation.
if ${pkgs.util-linux}/bin/mountpoint -q ${lib.escapeShellArg ephemeral.stateMountPoint}; then
${resizeCommand}
fi
''
else
resizeCommand + "\n"
)
+ ''
ln -sf "$systemConfig/${imageInit}" /sbin/init
''
# The init script builder of nixpkgs compares the filesystem of
# /boot with the one of /. The image ships no /boot, so the first
# switch prints a warning. The builder creates the directory
# only after that check.
+ ''
mkdir -p /boot
'';
# https://github.com/aldur/nixos-crostini/issues/3#issuecomment-3481799191
modprobe = lib.mkForce "";
};
build = {
# https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/proxmox-lxc.nix
tarball = pkgs.callPackage "${toString modulesPath}/../lib/make-system-tarball.nix" {
fileName = config.image.baseName;
storeContents = [
{
object = config.system.build.toplevel;
symlink = "/run/current-system";
}
];
extraCommands = "mkdir -p proc sys dev";
# virt-make-fs, used by
# https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/vm_tools/baguette_image/src/generate_disk_image.py
# cannot handle compressed tarballs
compressCommand = "cat";
compressionExtension = "";
contents = [
# same as baguette Debian image
{
source = config.system.build.toplevel + "/${imageInit}";
target = "/sbin/init";
}
];
};
# Build btrfs image using vmTools with subvolume
btrfsImage =
let
img = pkgs.vmTools.runInLinuxVM (
pkgs.runCommand "nixos-baguette-btrfs.img"
{
memSize = config.virtualisation.buildMemorySize;
preVM = ''
# Create disk image with configured size
${pkgs.qemu}/bin/qemu-img create -f raw disk.img ${toString config.virtualisation.diskImageSize}M
'';
postVM = ''
mkdir -p $out
mv disk.img $out/baguette_rootfs.img
echo "Done! Image created at $out"
'';
QEMU_OPTS = "-drive file=disk.img,format=raw,if=virtio,cache=unsafe";
buildInputs = [
pkgs.btrfs-progs
pkgs.util-linux
];
}
''
set -x
# The disk is available as /dev/vda in the VM
echo "Formatting /dev/vda as btrfs..."
mkfs.btrfs -f -L nixos-root /dev/vda
# Mount it
echo "Mounting filesystem..."
mkdir -p /mnt
mount /dev/vda /mnt
# Create a subvolume for the rootfs (matching ChromeOS convention)
echo "Creating rootfs subvolume..."
btrfs subvolume create /mnt/rootfs_subvol
# Extract the tarball into the subvolume
echo "Extracting rootfs from tarball into subvolume..."
tar -C /mnt/rootfs_subvol -xf ${config.system.build.tarball}/tarball/*.tar
# Register with the guest's own Nix version/schema at
# image build time. This can involve thousands of
# SQLite writes on Chromebook storage at first boot.
# A chroot keeps all state and GC-root links at their
# final paths; no builder state or machine identity is
# copied into the image. Tarballs keep their fallback.
mount --bind /dev /mnt/rootfs_subvol/dev
mount -t proc proc /mnt/rootfs_subvol/proc
env -i HOME=/root NIX_REMOTE=local ${pkgs.coreutils}/bin/chroot /mnt/rootfs_subvol \
${config.nix.package.out}/bin/nix-store --load-db \
< /mnt/rootfs_subvol/nix-path-registration
env -i HOME=/root NIX_REMOTE=local ${pkgs.coreutils}/bin/chroot /mnt/rootfs_subvol \
${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system \
--set ${config.system.build.toplevel}
umount /mnt/rootfs_subvol/proc /mnt/rootfs_subvol/dev
rm /mnt/rootfs_subvol/nix-path-registration
${lib.optionalString ephemeral.enable ''
btrfs property set -ts /mnt/rootfs_subvol ro true
''}
# Get the subvolume ID
echo "Getting subvolume ID..."
subvol_id=$(btrfs subvolume list /mnt | grep rootfs_subvol | awk '{print $2}')
echo "Subvolume ID: $subvol_id"
# Set the subvolume as default
echo "Setting default subvolume..."
btrfs subvolume set-default "$subvol_id" /mnt
# Sync and unmount
echo "Syncing..."
sync
umount /mnt
''
);
in
lib.overrideDerivation img (old: {
requiredSystemFeatures = [ ]; # Allow building even without kvm
});
btrfsStateImage =
pkgs.runCommand "nixos-baguette-state"
{
nativeBuildInputs = [
pkgs.btrfs-progs
pkgs.zstd
];
}
''
mkdir -p $out
truncate -s 256M $out/baguette_state.img
mkfs.btrfs -q -f -L baguette-state $out/baguette_state.img
zstd -3 $out/baguette_state.img -o $out/baguette_state.img.zst
'';
btrfsImageCompressed =
pkgs.runCommand "nixos-baguette-btrfs-compressed"
{
nativeBuildInputs = [
pkgs.zstd
]
++ lib.optional ephemeral.enable (pkgs.python3.withPackages (ps: [ ps.pyzstd ]));
}
''
mkdir -p $out
echo "Compressing btrfs image with zstd..."
${
if ephemeral.enable then
''
python3 - ${config.system.build.btrfsImage}/baguette_rootfs.img \
"$out/baguette_rootfs.img.zst" ${toString config.baguette.imageCompression.level} \
${toString config.baguette.imageCompression.threads} <<'PY'
import os
import shutil
import sys
from pyzstd import CParameter, SeekableZstdFile
options = {
CParameter.compressionLevel: int(sys.argv[3]),
CParameter.nbWorkers: int(sys.argv[4]) or os.cpu_count() or 1,
CParameter.checksumFlag: 1,
}
# crosvm uses a 128 KiB decompression buffer.
with open(sys.argv[1], "rb") as source, SeekableZstdFile(
sys.argv[2], "wb", level_or_option=options,
max_frame_content_size=128 * 1024,
) as destination:
shutil.copyfileobj(source, destination)
PY
cp ${config.system.build.btrfsStateImage}/baguette_state.img.zst $out/
''
else
''
zstd -${toString config.baguette.imageCompression.level} \
-T${toString config.baguette.imageCompression.threads} \
${config.system.build.btrfsImage}/baguette_rootfs.img -o $out/baguette_rootfs.img.zst
''
}
echo "Compressed image created at $out/baguette_rootfs.img.zst"
'';
};
};
# `vmc start` puts the user in these groups by default, and maitred
# rejects the request when one is missing. NixOS has the others.
users.groups = {
kvm = { };
netdev = { };
plugdev = { };
sudo = { };
tss = { };
};
systemd = {
settings.Manager.ShowStatus = lib.mkDefault "error";
managerEnvironment = {
# Stage 2 and guest services create a burst of mounts. systemd's
# default of five mount-table events per second stalls subsequent
# mount jobs for a full second, including the ChromeOS tools disk.
SYSTEMD_DEFAULT_MOUNT_RATE_LIMIT_BURST = lib.mkDefault "64";
# ChromeOS captures this console as a log; it cannot answer ANSI
# size queries. Set TERM after PID 1's early terminal autodetection.
# ManagerEnvironment affects PID 1, not the shells started by vsh.
TERM = lib.mkDefault "dumb";
};
# ChromeOS VM integration services
mounts = [
{
what = "LABEL=cros-vm-tools";
where = "/opt/google/cros-containers";
type = "auto";
options = "ro";
wantedBy = [ "local-fs.target" ];
before = [
"local-fs.target"
"umount.target"
];
conflicts = [ "umount.target" ];
unitConfig = {
DefaultDependencies = false;
};
mountConfig = {
TimeoutSec = "10";
};
}
];
# Only an explicitly selected account gets the boot-session dependency.
services =
lib.listToAttrs (
map (
user:
lib.nameValuePair "user@${toString user.uid}" {
overrideStrategy = "asDropin";
# This overrides.conf shadows the template's drop-in,
# including NixOS's policy to preserve the live user manager.
restartIfChanged = false;
enableDefaultPath = false;
requires = [ "opt-google-cros\\x2dcontainers.mount" ];
after = [ "opt-google-cros\\x2dcontainers.mount" ];
}
) (lib.filter (user: user.crostini.enable) (lib.attrValues config.users.users))
)
// {
# Since Linux 6.5, overlayfs rejects all options on reconfigure with
# the new mount API. The legacy API ignores them.
systemd-remount-fs.environment = lib.mkIf ephemeral.enable {
LIBMOUNT_FORCE_MOUNT2 = "always";
};
# Activation runs before systemd mounts state.
baguette-resize = lib.mkIf ephemeral.enable {
description = "Grow the persistent filesystem to the disk size";
wantedBy = [ "local-fs.target" ];
before = [ "local-fs.target" ];
unitConfig = {
DefaultDependencies = false;
RequiresMountsFor = ephemeral.stateMountPoint;
};
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = resizeCommand;
};
};
# Shell access comes through vshd. An unattached serial getty
# competes with the boot log and probes ChromeOS's console.
"serial-getty@".enable = lib.mkDefault false;
vshd = {
description = "vshd";
after = [ "opt-google-cros\\x2dcontainers.mount" ];
requires = [ "opt-google-cros\\x2dcontainers.mount" ];
wantedBy = [ "basic.target" ];
serviceConfig = {
ExecStart = "/opt/google/cros-containers/bin/vshd";
};
};
maitred = {
description = "maitred";
after = [ "opt-google-cros\\x2dcontainers.mount" ];
requires = [ "opt-google-cros\\x2dcontainers.mount" ];
wantedBy = [ "basic.target" ];
serviceConfig = {
ExecStart = "/opt/google/cros-containers/bin/maitred";
Environment = "PATH=/opt/google/cros-containers/bin:/usr/sbin:/usr/bin:/sbin:/bin:/run/current-system/sw/bin";
};
};
cros-port-listener = lib.mkIf config.baguette.portListener.enable {
description = "Chromium OS port listener service";
after = [ "opt-google-cros\\x2dcontainers.mount" ];
requires = [ "opt-google-cros\\x2dcontainers.mount" ];
wantedBy = [ "basic.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "/opt/google/cros-containers/bin/port_listener";
Restart = "always";
# Without a delay, a missing binary restarts in a tight loop
# and floods the console until the start limit.
RestartSec = 1;
};
};
};
user.services.cros-notificationd = lib.mkIf config.baguette.notifications.enable {
description = "Chromium OS Notification Server";
after = [ "opt-google-cros\\x2dcontainers.mount" ];
serviceConfig = {
Type = "dbus";
BusName = "org.freedesktop.Notifications";
ExecStart = "/opt/google/cros-containers/bin/notificationd --virtwl_device=/dev/wl0";
ExecStopPost = "/opt/google/cros-containers/bin/guest_service_failure_notifier cros-notificationd";
Restart = "always";
RestartSec = 1;
};
};
};
};
}
)