Skip to content

Commit

Permalink
Use --strict flag in elemental-setup services
Browse files Browse the repository at this point in the history
The default behavior has been to hide any errors and only log warnings.
Using the --strict flag will ensure any yip errors are actually
reported.

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
  • Loading branch information
frelon committed Oct 11, 2024
1 parent 0fc05a9 commit 432d445
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Before=getty.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/elemental run-stage boot
ExecStart=/usr/bin/elemental run-stage --strict boot

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Before=sysinit.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/elemental run-stage fs
ExecStart=/usr/bin/elemental run-stage --strict fs

[Install]
WantedBy=sysinit.target
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RootDirectory=/sysroot
BindPaths=/proc /sys /dev /run /tmp
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/elemental run-stage initramfs
ExecStart=/usr/bin/elemental run-stage --strict initramfs

[Install]
WantedBy=initrd.target
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
Type=oneshot
ExecStart=/usr/bin/elemental run-stage network
ExecStart=/usr/bin/elemental run-stage --strict network
TimeoutStopSec=180
KillMode=process
KillSignal=SIGINT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Conflicts=initrd-switch-root.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/elemental run-stage pre-rootfs
ExecStart=/usr/bin/elemental run-stage --strict pre-rootfs

[Install]
WantedBy=initrd-root-device.target
WantedBy=initrd-root-device.target
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
Type=oneshot
ExecStart=/bin/bash -c "systemd-inhibit /usr/bin/elemental run-stage reconcile"
ExecStart=/bin/bash -c "systemd-inhibit /usr/bin/elemental run-stage --strict reconcile"
TimeoutStopSec=180
KillMode=process
KillSignal=SIGINT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Conflicts=initrd-switch-root.target
Type=oneshot
RemainAfterExit=yes
ExecStartPre=/usr/bin/ln -sf -t / /sysroot/system
ExecStart=/usr/bin/elemental run-stage rootfs
ExecStart=/usr/bin/elemental run-stage --strict rootfs

[Install]
WantedBy=initrd-root-fs.target

0 comments on commit 432d445

Please sign in to comment.