Fix serial console test when checking enabled serial

Description

PR: https://github.com/truenas/middleware/pull/8234

This commit fixes an issue where when system boots with a serial port configured in the grub configuration, if we disable the serial port once the system has booted - for enable check it says `enabled-runtime` instead of saying `disabled`. Now this gives the impression that this systemd service will start when the system reboots but that does not hold as grub is updated when we make such changes and on subsequent reboot we do not pass serial console parameters which results in systemd unit for that serial port correctly saying `disabled`. So the gist is, that instead of relying on returncode, we explicitly check for enabled keyword when seeing if service is enabled or not after it has been disabled via middleware.

Problem/Justification

None

Impact

None

Activity

Show:

Bug ClerkFebruary 10, 2022 at 1:37 PM

Complete

Details

Assignee

Reporter

Labels

Time remaining

0m

Components

Priority

Katalon Platform

Created February 9, 2022 at 1:58 PM
Updated March 28, 2022 at 6:56 PM
Resolved February 10, 2022 at 1:36 PM