Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strict elemental setup #2201

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/run-stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ func NewRunStage(root *cobra.Command) *cobra.Command {
return elementalError.NewFromError(err, elementalError.ReadingRunConfig)
}

cmd.SilenceUsage = true

err = utils.RunStage(&cfg.Config, args[0], cfg.Strict, cfg.CloudInitPaths...)
return elementalError.NewFromError(err, elementalError.CloudInitRunStage)
},
Expand Down
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
Loading