Age | Commit message (Collapse) | Author |
|
The hwdriver service is currently activated for mdev and deactivated
when mdev is disabled. Since mdevd and mdev use (more or less) the
same mechanism, we also enable hwdrivers with mdevd.
The service is only started when a coldplug is required, because
if no coldplug is required, the appropriate kernel modules are
already loaded.
Note that with the MODALIAS line in /etc/mdev.conf, it is possible
that the hwdrivers service is entirely redundant. This would need
some additional testing.
Signed-off-by: Laurent Bercot <ska@appnovation.com>
|
|
|
|
|
|
|
|
|
|
|
|
Some shells may apply word splitting after expanding variable in
`local a=$1`. I know just about yash, but since `local` is supposed to
be a builtin *command*, the "correct" behaviour of common shells is
actually a special case for `local` - it doesn't apply for other
commands. See https://osdn.net/projects/yash/ticket/46041.
|
|
trap: SIGINT: bad trap
|
|
When running tests with /bin/sh -> /usr/bin/yash:
===> tests/setup_alpine_test:setup_alpine_create_answerfile
Executing command [ setup-alpine -f answers ]
Fail: incorrect exit status: 1, expected: 0
stdout:
stderr:
.: file `answers' was not found in $PATH
https://pubs.opengroup.org/onlinepubs/009695299/utilities/dot.html:
> If file does not contain a slash, the shell shall use the search
> path specified by PATH to find the directory containing file.
|
|
'echo -n' and 'echo -e' are not portable, not all commonly used shells
support both of them (in the same way). 'echo -e' is not even defined
in POSIX.
https://pubs.opengroup.org/onlinepubs/009604599/utilities/echo.html:
> New applications are encouraged to use printf instead of echo.
> ...
> Conforming applications that wish to do prompting without <newline>s
> or that could possibly be expecting to echo a -n, should use the
> printf utility derived from the Ninth Edition system.
|
|
Currently, /boot becomes 34 MB, which is too small.
Fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10536
|
|
Make code slightly more readable. No functional changes
|
|
- Paginate mirrors list if it requires more than one screenful to
display
|
|
|
|
we should stop and disable hwdrivers when we stop and disable mdev
ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/14046
|
|
|
|
setup-alpine checks SSH_CONNECTION. Make sure to clear it when running
tests so tests does not fail when we run the testsuite over ssh.
|
|
|
|
Avoid restart network when running over ssh. hostname is now a
dependency of networking so openrc will restart networking together with
hostname, which may lead to disconnection when running over ssh.
Solve this by only restart hostname if SSH_CONNECTION is empty.
fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/14018
|
|
so we can verify that service was started when it should and not started
when it shouldn't.
|
|
Fix a hang that happens with interactively selecting 'none' with efi
mode.
Fixes commit 851247d96340 (setup-disk: calculate size of ESP parition
for grub)
|
|
|
|
The authentication suites may be a list. Check if PSK is a part of the
list instead of checking that it is the only authentication suite.
ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10518
|
|
|
|
|
|
Follow up to the follow up (87e374fd, a91180af).
Commit dfd40992 also affects ~/.ssh, so test its permissions too.
|
|
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10501
|
|
follow up to commit dfd40992e173 (setup-sshd, setup-user: follow
openssh permission recommendations)
|
|
follow up to commit dfd40992e173 (setup-sshd, setup-user: follow
openssh permission recommendations)
|
|
From the OpenSSH man page:
> ~/.ssh/
> ...
> There is no general requirement to keep the entire contents of this
> directory secret, but the recommended permissions are
> read/write/execute for the user, and not accessible by others.
>
> ~/.ssh/authorized_keys
> ...
> This file is not highly sensitive, but the recommended permissions are
> read/write for the user, and not accessible by others.
OpenSSH follows these recommendations when creating these files itself
so we should do the same.
|
|
Be more strict in checking the contents of files by matching against the
whole line. This prevents tests from passing with extraneous leading or
trailing characters, or partial paths matching in lbu.list.
|
|
setup-alpine doesn't add root/.ssh to lbu.list. Check for
authorized_keys specifically.
|
|
|
|
consistent with other repos
|
|
add test to verify that pre/post package hooks are executed.
|
|
with and without encryption.
This also tests if sysconfdir is actually set
ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/77#note_246788
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fixes commit 4ad15542bc92 (lbu: fix import of libalpine.sh for tests)
ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/77#note_246788
|
|
|
|
Allow setting root's ssh key from answer file
Also add a test to verify that it gets included in lbu for disk install.
ref commit 619f3a2d4de9 (setup-alpine: persist root authorized_keys)
|
|
Apparently we can set ssh key via SSH_KEY env var. make sure that it
works.
|
|
|
|
The ifupdown-ng implementations are apparently just stubs.
Partially reverts commit e9c6302edf1e (setup-interface: avoid install
bridge/bonding with ifupdown-ng)
|
|
We don't need to install bridge or bonding packages with ifupdown-ng.
|
|
Don't install vlan package if ifupdown-ng package is used.
Add tests for this.
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10495
|