From 0923b4253c93ace134d06e6ecba8133b3e797616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 15 Oct 2022 16:06:20 +0200 Subject: [PATCH] tree-wide: replace "plural(s)" by "plurals" (s) is just ugly with a vibe of DOS. In most cases just using the normal plural form is more natural and gramatically correct. There are some log_debug() statements left, and texts in foreign licenses or headers. Those are not touched on purpose. --- NEWS | 4 ++-- docs/PORTABLE_SERVICES.md | 10 +++++----- man/crypttab.xml | 2 +- man/hostnamectl.xml | 2 +- man/oomctl.xml | 2 +- man/portablectl.xml | 8 ++++---- man/systemd-analyze.xml | 8 ++++---- man/systemd-getty-generator.xml | 2 +- man/systemd-measure.xml | 2 +- man/systemd.path.xml | 2 +- man/systemd.resource-control.xml | 2 +- man/systemd.service.xml | 4 ++-- man/systemd.time.xml | 5 ++--- man/tmpfiles.d.xml | 4 ++-- man/udevadm.xml | 10 +++++----- shell-completion/zsh/_oomctl | 2 +- shell-completion/zsh/_systemd-analyze | 4 ++-- src/basic/meson.build | 2 +- src/core/timer.c | 2 +- src/core/unit.h | 2 +- src/libsystemd-network/sd-dhcp-lease.c | 2 +- src/network/networkd-wifi.c | 4 ++-- src/oom/oomd-manager.c | 4 ++-- src/shared/ethtool-util.c | 2 +- src/shared/format-table.h | 2 +- src/shared/wifi-util.c | 4 ++-- src/systemctl/systemctl-edit.c | 2 +- src/userdb/userdbctl.c | 4 ++-- test/knot-data/knot.conf | 2 +- test/test-network/systemd-networkd-tests.py | 6 +++--- test/units/testsuite-03.sh | 2 +- tmpfiles.d/systemd-pstore.conf | 2 +- 32 files changed, 57 insertions(+), 58 deletions(-) diff --git a/NEWS b/NEWS index f049e53b232..85fc10f3c19 100644 --- a/NEWS +++ b/NEWS @@ -2477,9 +2477,9 @@ CHANGES WITH 249: unit, which will be instantiated using the same instance name. * A new MemoryAvailable property is available for units. If the unit, - or the slice(s) it is part of, have a memory limit set via MemoryMax=/ + or the slices it is part of, have a memory limit set via MemoryMax=/ MemoryHigh=, MemoryAvailable will indicate how much more memory the - unit can claim before hitting the limit(s). + unit can claim before hitting the limits. * systemd-coredump will now try to stay below the cgroup memory limit placed on itself or one of the slices it runs under, if the storage diff --git a/docs/PORTABLE_SERVICES.md b/docs/PORTABLE_SERVICES.md index 20acbeae033..4f02ddb4778 100644 --- a/docs/PORTABLE_SERVICES.md +++ b/docs/PORTABLE_SERVICES.md @@ -275,17 +275,17 @@ following must be also be observed: 1. The base/OS image must contain an `os-release file`, either in `/etc/os-release` or `/usr/lib/os-release`, in the standard format. -2. The upper extension(s) image(s) must contain an extension-release file in +2. The upper extension images must contain an extension-release file in `/usr/lib/extension-release.d/`, with an `ID=` and `SYSEXT_LEVEL=`/`VERSION_ID=` matching the base image. 3. The base/OS image does not need to have any unit files. -4. The upper extension(s) image(s) must at least contain one matching unit file each, - with the right name prefix and suffix (see above). +4. The upper extension images must contain at least one matching unit file + each, with the right name prefix and suffix (see above). -5. As with the base/OS image, the upper extension(s) image(s) must be a plain - sub-directory, a btrfs subvolume or a raw disk image. +5. As with the base/OS image, each upper extension image must be a plain + sub-directory, btrfs subvolume, or a raw disk image. ``` # portablectl attach --extension foobar_0.7.23.raw debian-runtime_11.1.raw foobar diff --git a/man/crypttab.xml b/man/crypttab.xml index 363691a007b..cbbb8ab2a96 100644 --- a/man/crypttab.xml +++ b/man/crypttab.xml @@ -94,7 +94,7 @@ Most prominently, the user may be queried interactively during volume activation - (i.e. typically at boot), asking them to type in the necessary passphrase(s). + (i.e. typically at boot), asking them to type in the necessary passphrases. The (unencrypted) key may be read from a file on disk, possibly on removable media. The third field of each line encodes the location, for details see above. diff --git a/man/hostnamectl.xml b/man/hostnamectl.xml index 3697bbb4747..6933c68e382 100644 --- a/man/hostnamectl.xml +++ b/man/hostnamectl.xml @@ -175,7 +175,7 @@ If status is invoked (or no explicit command is given) and one of these switches is specified, hostnamectl will print out just this selected hostname. - If used with set-hostname, only the selected hostname(s) will be updated. When more + If used with set-hostname, only the selected hostnames will be updated. When more than one of these switches are specified, all the specified hostnames will be updated. diff --git a/man/oomctl.xml b/man/oomctl.xml index b5e8a44282a..950e79df13c 100644 --- a/man/oomctl.xml +++ b/man/oomctl.xml @@ -48,7 +48,7 @@ dump - Show the current state of the cgroup(s) and system context(s) stored by + Show the current state of the cgroups and system contexts stored by systemd-oomd. diff --git a/man/portablectl.xml b/man/portablectl.xml index deb7842d1f3..963361e28cb 100644 --- a/man/portablectl.xml +++ b/man/portablectl.xml @@ -135,7 +135,7 @@ when is specified (see below). This ensures that the new units made available to the service manager are seen by it. - If and/or are passed, the portable service(s) are + If and/or are passed, the portable services are immediately started (blocking operation unless is passed) and/or enabled after attaching the image. @@ -151,7 +151,7 @@ files. This is a convenience feature to allow all arguments passed as attach also to detach. - If and/or are passed, the portable service(s) are + If and/or are passed, the portable services are immediately stopped (blocking operation) and/or disabled before detaching the image. Prefix(es) are also accepted, to be used in case the unit names do not match the image name as described in the attach. @@ -165,7 +165,7 @@ character has to match. If the new image doesn't exist, the existing one will not be detached. The parameters follow the same syntax as the attach command. - If and/or are passed, the portable service(s) are + If and/or are passed, the portable services are immediately stopped if removed, started and/or enabled if added, or restarted if updated. Prefixes are also accepted, in the same way as described in the attach case. @@ -362,7 +362,7 @@ systemd.exec5 for the ExtensionImages= directive and for the systemd-sysext8 tool. - The image(s) must contain an extension-release file with metadata that matches + The images must contain an extension-release file with metadata that matches what is defined in the os-release of IMAGE. See: os-release5. Images can be block images, btrfs subvolumes or directories. For more information on portable diff --git a/man/systemd-analyze.xml b/man/systemd-analyze.xml index cce08fa1218..0d91cdd7d06 100644 --- a/man/systemd-analyze.xml +++ b/man/systemd-analyze.xml @@ -742,7 +742,7 @@ $ systemd-analyze verify /tmp/source:alias.service <command>systemd-analyze inspect-elf <replaceable>FILE</replaceable>...</command> - This command will load the specified file(s), and if they are ELF objects (executables, + This command will load the specified files, and if they are ELF objects (executables, libraries, core files, etc.) it will parse the embedded packaging metadata, if any, and print it in a table or json format. See the Packaging Metadata documentation for more information. @@ -902,7 +902,7 @@ $ systemd-analyze verify /tmp/source:alias.service With security, perform an offline security review - of the specified unit file(s), i.e. does not have to rely on PID 1 to acquire security + of the specified unit files, i.e. does not have to rely on PID 1 to acquire security information for the files like the security verb when used by itself does. This means that can be used with and as well. If a unit's overall exposure level is above that set by @@ -914,7 +914,7 @@ $ systemd-analyze verify /tmp/source:alias.service With security , takes into - consideration the specified portable profile when assessing the unit(s) settings. + consideration the specified portable profile when assessing unit settings. The profile can be passed by name, in which case the well-known system locations will be searched, or it can be the full path to a specific drop-in file. @@ -923,7 +923,7 @@ $ systemd-analyze verify /tmp/source:alias.service With security, allow the user to set a custom value - to compare the overall exposure level with, for the specified unit file(s). If a unit's + to compare the overall exposure level with, for the specified unit files. If a unit's overall exposure level, is greater than that set by the user, security will return an error. can be used with as well and its default value is 100. diff --git a/man/systemd-getty-generator.xml b/man/systemd-getty-generator.xml index 038613d8295..def38520dfa 100644 --- a/man/systemd-getty-generator.xml +++ b/man/systemd-getty-generator.xml @@ -29,7 +29,7 @@ Description systemd-getty-generator is a generator that automatically instantiates - serial-getty@.service on the kernel console(s), if they can function as ttys and are + serial-getty@.service on the kernel consoles, if they can function as ttys and are not provided by the virtual console subsystem. It will also instantiate serial-getty@.service instances for virtualizer consoles, if execution in a virtualized environment is detected. If execution in a container environment is detected, it will instead diff --git a/man/systemd-measure.xml b/man/systemd-measure.xml index 5ad30c65112..e54cd774ead 100644 --- a/man/systemd-measure.xml +++ b/man/systemd-measure.xml @@ -162,7 +162,7 @@ PHASE - Controls which boot phase(s) to calculate expected PCR 11 values for. This takes a + Controls which boot phases to calculate expected PCR 11 values for. This takes a series of colon-separated strings that encode boot "paths" for entering a specific phase of the boot process. Each of the specified strings is measured by the systemd-pcrphase-initrd.service and diff --git a/man/systemd.path.xml b/man/systemd.path.xml index f143208cb46..f8748bf700a 100644 --- a/man/systemd.path.xml +++ b/man/systemd.path.xml @@ -198,7 +198,7 @@ details on the various time units understood. The TriggerLimitBurst= setting takes a positive integer value and specifies the number of permitted activations per time interval, and defaults to 200. Set either to 0 to disable any form of trigger rate limiting. If the limit is hit, - the unit is placed into a failure mode, and will not watch the path(s) anymore until restarted. Note + the unit is placed into a failure mode, and will not watch the paths anymore until restarted. Note that this limit is enforced before the service activation is enqueued. diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml index 2b1c20b96e2..2a0e40a17d2 100644 --- a/man/systemd.resource-control.xml +++ b/man/systemd.resource-control.xml @@ -852,7 +852,7 @@ RestrictNetworkInterfaces=~eth1 Control access to specific device nodes by the executed processes. Takes two space-separated strings: a device node specifier followed by a combination of r, w, m to control reading, - writing, or creation of the specific device node(s) by the unit + writing, or creation of the specific device nodes by the unit (mknod), respectively. This functionality is implemented using eBPF filtering. diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 98c8bf8c6d3..8d8dd776890 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -467,7 +467,7 @@ ExecCondition= - Optional commands that are executed before the command(s) in ExecStartPre=. + Optional commands that are executed before the commands in ExecStartPre=. Syntax is the same as for ExecStart=, except that multiple command lines are allowed and the commands are executed one after the other, serially. @@ -476,7 +476,7 @@ commands are skipped and the unit is not marked as failed. However, if an ExecCondition= command exits with 255 or abnormally (e.g. timeout, killed by a signal, etc.), the unit will be considered failed (and remaining commands will be skipped). Exit code of 0 or - those matching SuccessExitStatus= will continue execution to the next command(s). + those matching SuccessExitStatus= will continue execution to the next commands. The same recommendations about not running long-running processes in ExecStartPre= also applies to ExecCondition=. ExecCondition= will also run the commands diff --git a/man/systemd.time.xml b/man/systemd.time.xml index a759707fec6..643ff7d78f0 100644 --- a/man/systemd.time.xml +++ b/man/systemd.time.xml @@ -220,9 +220,8 @@ tomorrow Pacific/Auckland → Thu 2012-11-23 19:00:00 times starting with the start value, and continuing with all multiples of the repetition value relative to the start value, ending at the end value the latest. - A date specification may use ~ to indicate the - last day(s) in a month. For example, *-02~03 means - "the third last day in February," and Mon *-05~07/1 + A date specification may use ~ to indicate the last day in a month. For example, + *-02~03 means "the third last day in February," and Mon *-05~07/1 means "the last Monday in May." The seconds component may contain decimal fractions both in diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml index 4ede01c82d7..bd3bc33ab4d 100644 --- a/man/tmpfiles.d.xml +++ b/man/tmpfiles.d.xml @@ -418,8 +418,8 @@ L /tmp/foobar - - - - /dev/null place of normal path names. The format of the argument field is [+-=][aAcCdDeijPsStTu]. The prefix - + (the default one) causes the attribute(s) to be added; - - causes the attribute(s) to be removed; = causes the attributes to be set exactly + + (the default one) causes the attributes to be added; - + causes the attributes to be removed; = causes the attributes to be set exactly as the following letters. The letters aAcCdDeijPsStTu select the new attributes for the files, see chattr 1 for further information. diff --git a/man/udevadm.xml b/man/udevadm.xml index 47556ee9b36..ee0658dc14c 100644 --- a/man/udevadm.xml +++ b/man/udevadm.xml @@ -800,9 +800,9 @@ … - udevadm lock takes an (advisory) exclusive lock(s) on a block device (or - multiple thereof), as per Locking Block Device - Access and invokes a program with the lock(s) taken. When the invoked program exits the lock(s) + udevadm lock takes an (advisory) exclusive lock on a block device (or all + specified devices), as per Locking Block Device + Access and invokes a program with the locks taken. When the invoked program exits the locks are automatically released and its return value is propagated as exit code of udevadm lock. @@ -861,8 +861,8 @@ - Instead of locking the specified device(s) and executing a command, just print the - device path(s) that would be locked, and execute no command. This command is useful to determine + Instead of locking the specified devices and executing a command, just print the + device paths that would be locked, and execute no command. This command is useful to determine the "whole" block device in case a partition block device is specified. The devices will be sorted by their device node major number as primary ordering key and the minor number as secondary ordering key (i.e. they are shown in the order they'd be locked). Note that the number of lines diff --git a/shell-completion/zsh/_oomctl b/shell-completion/zsh/_oomctl index f956340b7ed..18e1938ab99 100644 --- a/shell-completion/zsh/_oomctl +++ b/shell-completion/zsh/_oomctl @@ -5,7 +5,7 @@ { local -a _oomctl_cmds _oomctl_cmds=( - "dump:Show the current state of the cgroup(s) and system context(s)" + "dump:Show the current state of cgroups and system contexts" "help:Prints a short help text and exits." ) if (( CURRENT == 1 )); then diff --git a/shell-completion/zsh/_systemd-analyze b/shell-completion/zsh/_systemd-analyze index 2ce8a3a0888..e305995cef7 100644 --- a/shell-completion/zsh/_systemd-analyze +++ b/shell-completion/zsh/_systemd-analyze @@ -96,9 +96,9 @@ _arguments \ '--recursive-errors=[When verifying a unit, control dependency verification]:MODE' \ '--offline=[Perform a security review of the specified unit files]:BOOL:(yes no)' \ '--threshold=[Set a value to compare the overall security exposure level with]: NUMBER' \ - '--security-policy=[Allow user to use customized requirements to compare unit file(s) against]: PATH' \ + '--security-policy=[Use customized requirements to compare unit files against]: PATH' \ '--json=[Generate a JSON output of the security analysis table]:MODE:(pretty short off)' \ - '--profile=[Include the specified profile in the security review of the unit(s)]: PATH' \ + '--profile=[Include the specified profile in the security review of units]: PATH' \ '--no-pager[Do not pipe output into a pager]' \ '--man=[Do (not) check for existence of man pages]:BOOL:(yes no)' \ '--generators=[Do (not) run unit generators]:BOOL:(yes no)' \ diff --git a/src/basic/meson.build b/src/basic/meson.build index 6187b907323..26a88ee0c2e 100644 --- a/src/basic/meson.build +++ b/src/basic/meson.build @@ -389,7 +389,7 @@ filesystem_includes = ['linux/magic.h', check_filesystems = find_program('check-filesystems.sh') r = run_command([check_filesystems, cpp, files('filesystems-gperf.gperf')] + filesystem_includes, check: false) if r.returncode() != 0 - error('found unknown filesystem(s) defined in kernel headers:\n\n' + r.stdout()) + error('Unknown filesystems defined in kernel headers:\n\n' + r.stdout()) r.stdout() endif diff --git a/src/core/timer.c b/src/core/timer.c index b89d593b759..cfc20fb613e 100644 --- a/src/core/timer.c +++ b/src/core/timer.c @@ -821,7 +821,7 @@ static void timer_time_change(Unit *u) { /* If we appear to have triggered in the future, the system clock must * have been set backwards. So let's rewind our own clock and allow - * the future trigger(s) to happen again :). Exactly the same as when + * the future triggers to happen again :). Exactly the same as when * you start a timer unit with Persistent=yes. */ ts = now(CLOCK_REALTIME); if (t->last_trigger.realtime > ts) diff --git a/src/core/unit.h b/src/core/unit.h index b34c59c3eba..3bc7de3d1c3 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -772,7 +772,7 @@ typedef struct UnitVTable { /* True if queued jobs of this type should be GC'ed if no other job needs them anymore */ bool gc_jobs; - /* True if systemd-oomd can monitor and act on this unit's recursive children's cgroup(s) */ + /* True if systemd-oomd can monitor and act on this unit's recursive children's cgroups */ bool can_set_managed_oom; } UnitVTable; diff --git a/src/libsystemd-network/sd-dhcp-lease.c b/src/libsystemd-network/sd-dhcp-lease.c index d84a3566639..d9db35fbac9 100644 --- a/src/libsystemd-network/sd-dhcp-lease.c +++ b/src/libsystemd-network/sd-dhcp-lease.c @@ -608,7 +608,7 @@ static int lease_parse_6rd(sd_dhcp_lease *lease, const uint8_t *option, size_t l memcpy(&prefix, option + 2, sizeof(struct in6_addr)); (void) in6_addr_mask(&prefix, prefixlen); - /* 6rdBRIPv4Address: One or more IPv4 addresses of the 6rd Border Relay(s) for a given 6rd domain. */ + /* 6rdBRIPv4Address: One or more IPv4 addresses of the 6rd Border Relays for a given 6rd domain. */ n_br_addresses = (len - 2 - sizeof(struct in6_addr)) / sizeof(struct in_addr); br_addresses = newdup(struct in_addr, option + 2 + sizeof(struct in6_addr), n_br_addresses); if (!br_addresses) diff --git a/src/network/networkd-wifi.c b/src/network/networkd-wifi.c index 13d6734a02e..4bf798a9eb0 100644 --- a/src/network/networkd-wifi.c +++ b/src/network/networkd-wifi.c @@ -123,10 +123,10 @@ int manager_genl_process_nl80211_config(sd_netlink *genl, sd_netlink_message *me } if (r >= 0) { if (len == 0) { - log_link_debug(link, "nl80211: received SSID has zero length, ignoring the received SSID: %m"); + log_link_debug(link, "nl80211: received SSID has zero length, ignoring it: %m"); ssid = mfree(ssid); } else if (strlen_ptr(ssid) != len) { - log_link_debug(link, "nl80211: received SSID contains NUL character(s), ignoring the received SSID."); + log_link_debug(link, "nl80211: received SSID contains NUL characters, ignoring it."); ssid = mfree(ssid); } } diff --git a/src/oom/oomd-manager.c b/src/oom/oomd-manager.c index 51bec79ba85..4a43807b879 100644 --- a/src/oom/oomd-manager.c +++ b/src/oom/oomd-manager.c @@ -403,7 +403,7 @@ static int monitor_swap_contexts_handler(sd_event_source *s, uint64_t usec, void if (r == -ENOMEM) return log_oom(); if (r < 0) - log_notice_errno(r, "Failed to kill any cgroup(s) based on swap: %m"); + log_notice_errno(r, "Failed to kill any cgroups based on swap: %m"); else { if (selected && r > 0) { log_notice("Killed %s due to memory used (%"PRIu64") / total (%"PRIu64") and " @@ -520,7 +520,7 @@ static int monitor_memory_pressure_contexts_handler(sd_event_source *s, uint64_t if (r == -ENOMEM) return log_oom(); if (r < 0) - log_notice_errno(r, "Failed to kill any cgroup(s) under %s based on pressure: %m", t->path); + log_notice_errno(r, "Failed to kill any cgroups under %s based on pressure: %m", t->path); else { /* Don't act on all the high pressure cgroups at once; return as soon as we kill one. * If r == 0 then it means there were not eligible candidates, the candidate cgroup diff --git a/src/shared/ethtool-util.c b/src/shared/ethtool-util.c index bc51e69f85b..e39b2f754bb 100644 --- a/src/shared/ethtool-util.c +++ b/src/shared/ethtool-util.c @@ -449,7 +449,7 @@ int ethtool_set_wol( _cleanup_free_ char *str = NULL; (void) wol_options_to_string_alloc(wolopts & ~ecmd.supported, &str); - log_debug("Network interface %s does not support requested Wake on LAN option(s) \"%s\", ignoring.", + log_debug("Network interface %s does not support requested Wake on LAN options \"%s\", ignoring.", ifname, strna(str)); wolopts &= ecmd.supported; diff --git a/src/shared/format-table.h b/src/shared/format-table.h index 3a7c2774b62..c88a060dbea 100644 --- a/src/shared/format-table.h +++ b/src/shared/format-table.h @@ -142,7 +142,7 @@ int table_print_with_pager(Table *t, JsonFormatFlags json_format_flags, PagerFla int table_set_json_field_name(Table *t, size_t column, const char *name); #define table_log_add_error(r) \ - log_error_errno(r, "Failed to add cell(s) to table: %m") + log_error_errno(r, "Failed to add cells to table: %m") #define table_log_print_error(r) \ log_error_errno(r, "Failed to print table: %m") diff --git a/src/shared/wifi-util.c b/src/shared/wifi-util.c index d32bb5d704a..d4e6dcac072 100644 --- a/src/shared/wifi-util.c +++ b/src/shared/wifi-util.c @@ -60,10 +60,10 @@ int wifi_get_interface(sd_netlink *genl, int ifindex, enum nl80211_iftype *ret_i return log_debug_errno(r, "Failed to get NL80211_ATTR_SSID attribute: %m"); if (r >= 0) { if (len == 0) { - log_debug("SSID has zero length, ignoring the received SSID."); + log_debug("SSID has zero length, ignoring it."); ssid = mfree(ssid); } else if (strlen_ptr(ssid) != len) { - log_debug("SSID contains NUL character(s), ignoring the received SSID."); + log_debug("SSID contains NUL characters, ignoring it."); ssid = mfree(ssid); } } diff --git a/src/systemctl/systemctl-edit.c b/src/systemctl/systemctl-edit.c index a363d7a494a..fe47f73d4a7 100644 --- a/src/systemctl/systemctl-edit.c +++ b/src/systemctl/systemctl-edit.c @@ -367,7 +367,7 @@ static int run_editor(char **paths) { } } - log_error("Cannot edit unit(s), no editor available. Please set either $SYSTEMD_EDITOR, $EDITOR or $VISUAL."); + log_error("Cannot edit units, no editor available. Please set either $SYSTEMD_EDITOR, $EDITOR or $VISUAL."); _exit(EXIT_FAILURE); } diff --git a/src/userdb/userdbctl.c b/src/userdb/userdbctl.c index 6afec0cda2f..63b0c4dde12 100644 --- a/src/userdb/userdbctl.c +++ b/src/userdb/userdbctl.c @@ -1065,8 +1065,8 @@ static int help(int argc, char *argv[], void *userdata) { "\nCommands:\n" " user [USER…] Inspect user\n" " group [GROUP…] Inspect group\n" - " users-in-group [GROUP…] Show users that are members of specified group(s)\n" - " groups-of-user [USER…] Show groups the specified user(s) is a member of\n" + " users-in-group [GROUP…] Show users that are members of specified groups\n" + " groups-of-user [USER…] Show groups the specified users are members of\n" " services Show enabled database services\n" " ssh-authorized-keys USER Show SSH authorized keys for user\n" "\nOptions:\n" diff --git a/test/knot-data/knot.conf b/test/knot-data/knot.conf index a6f2f45b248..e3de69d0f4d 100644 --- a/test/knot-data/knot.conf +++ b/test/knot-data/knot.conf @@ -85,7 +85,7 @@ template: zone: # Create our own DNSSEC-aware root zone, so we can test the whole chain of # trust. This needs a ZSK/KSK keypair to be generated before running knot + - # adding the respective key(s) to resolved's trust anchor store (see the + # adding the respective keys to resolved's trust anchor store (see the # test script for the setup steps). - domain: . dnssec-policy: manual diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 2f638d158a6..2f7614428cc 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -827,7 +827,7 @@ class Utilities(): return False def wait_online(self, links_with_operstate, timeout='20s', bool_any=False, ipv4=False, ipv6=False, setup_state='configured', setup_timeout=5): - """Wait for the link(s) to reach the specified operstate and/or setup state. + """Wait for the links to reach the specified operstate and/or setup state. This is similar to wait_operstate() but can be used for multiple links, and it also calls systemd-networkd-wait-online to wait for the given operstate. @@ -843,10 +843,10 @@ class Utilities(): Set 'ipv4' or 'ipv6' to True to wait for IPv4 address or IPv6 address, respectively, of each of the given links. This is applied only for the operational state 'degraded' or above. - Note that this function waits for the link(s) to reach *or exceed* the given operstate. + Note that this function waits for the links to reach *or exceed* the given operstate. However, the setup_state, if specified, must be matched *exactly*. - This returns if the link(s) reached the requested operstate/setup_state; otherwise it + This returns if the links reached the requested operstate/setup_state; otherwise it raises CalledProcessError or fails test assertion. """ args = wait_online_cmd + [f'--timeout={timeout}'] + [f'--interface={link}' for link in links_with_operstate] diff --git a/test/units/testsuite-03.sh b/test/units/testsuite-03.sh index 4b3b4097605..1d4bf3aaaaf 100755 --- a/test/units/testsuite-03.sh +++ b/test/units/testsuite-03.sh @@ -72,7 +72,7 @@ systemctl stop --job-mode=replace-irreversibly unstoppable.service # Shutdown of the container/VM will hang if not. systemctl start unstoppable.service -# Test waiting for a started unit(s) to terminate again +# Test waiting for a started units to terminate again cat </run/systemd/system/wait2.service [Unit] Description=Wait for 2 seconds diff --git a/tmpfiles.d/systemd-pstore.conf b/tmpfiles.d/systemd-pstore.conf index e6540b5de47..9425169c755 100644 --- a/tmpfiles.d/systemd-pstore.conf +++ b/tmpfiles.d/systemd-pstore.conf @@ -21,7 +21,7 @@ # upon a normal shutdown (shutdown, reboot, halt). # # To configure the kernel parameters, uncomment the appropriate -# line(s) below. The value written is either 'Y' to enable the +# lines below. The value written is either 'Y' to enable the # kernel parameter, or 'N' to disable the kernel parameter. # # After making a change to this file, do: