summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-10setup-disk: avoid basism parameter expansionNatanael Copa
fixes use with yash.
2022-11-09setup-disk: fix typo in error messageNatanael Copa
and add test from missing block device
2022-11-09setup-disk: mock swapoff and vgchangeNatanael Copa
we dont dont that for real when testing
2022-11-09setup-disk: refactor and test find_disksNatanael Copa
2022-11-09setup-disk: env SETUP_DISK_TESTFUNC for unit testingNatanael Copa
Use an env var SETUP_DISK_TESTFUNC to run individual functions for unit testing purposes.
2022-11-09setup-disk: remove unused is_vmware functionNatanael Copa
not used since commit 427a14cb8d80 (setup-disk: remove grsec traces)
2022-11-09setup-disk: prefix $ROOT/sysNatanael Copa
prefix /sys/... with $ROOT so we can test it
2022-11-08setup-timezone: fix listing of sub-timezonesNatanael Copa
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10538
2022-11-08setup-alpine: change urandom references to seedrngDermot Bradley
openrc 0.45 replaced the /etc/init.d/urandom script with /etc/init.d/seedrng. Change setup-alpine to enable this script.
2022-11-08setup-xorg-base: install mesa-dri-gallium insteadpsykose
"mesa" does not contain anything except two text files, and all the graphics drivers are in gallium instead
2022-11-08setup-user: skip user creation if 'none' is setNatanael Copa
Skip user creation if username is 'none' and no other options are set. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10528
2022-11-08update-kernel: fix modloop constructionmacmpi
some module refer to wildcarded firmware name: ensure proper handling
2022-11-08setup-devd: fix typoLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-11-08setup-xorg-base: don't use the : character in a file nameNatanael Copa
2022-11-08setup-devd: adapt to the busybox-mdev-openrc splitLaurent Bercot
The mdev init script isn't guaranteed to be there anymore; we explicitly add the busybox-mdev-openrc package when choosing mdev as our device manager. Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-11-08setup-xorg-base: fix case with several sources in repositoriesLaurent Bercot
setup-xorg-base didn't correctly handle the case where /etc/apk/repositories contains several main sources, and that caused test failures. We fix this by throwing out the big sed command (which fails on multiline /etc/apk/repositories) and processing the repositories file in a pedestrian way, line by line in shell. Since we entirely cut grep and sed and make sure we never fork in the loop, the performance is acceptable. Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-11-08setup-devd: also add hwdrivers for mdevdLaurent Bercot
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>
2022-11-08setup-timezone: run apk with --no-progressJakub Jirutka
2022-11-08setup-timezone: exit with 1 if failed to install tzdataJakub Jirutka
2022-11-08setup-timezone: exit with 1 on invalid timezoneJakub Jirutka
2022-11-08setup-timezone: use trap to uninstall tzdataJakub Jirutka
2022-11-08ci: test with dash, oksh, yash and zsh as /bin/shJakub Jirutka
2022-11-06always quote vars in 'local' assignmentJakub Jirutka
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.
2022-11-05lbu: fix 'trap' compatibility with dashJakub Jirutka
trap: SIGINT: bad trap
2022-11-05setup-alpine: fix error when -f <file> doesn't contain a slashJakub Jirutka
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.
2022-11-05replace 'echo -n' and 'echo -e' with printfJakub Jirutka
'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.
2022-11-04setup-disk: fix /boot size for UEFI and encryptionNatanael Copa
Currently, /boot becomes 34 MB, which is too small. Fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10536
2022-11-04setup-disk: minor cleanupNatanael Copa
Make code slightly more readable. No functional changes
2022-10-17APK Repo SetupAaron Mason
- Paginate mirrors list if it requires more than one screenful to display
2022-08-09==== release 3.14.6 ====Natanael Copa
2022-08-09setup-devd: disable/stop hwdrivers together with mdevNatanael Copa
we should stop and disable hwdrivers when we stop and disable mdev ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/14046
2022-08-09tests: verify that mdevd/udev is started and mdev stoppedNatanael Copa
2022-07-18tests: fix running tests over sshNatanael Copa
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.
2022-07-15==== release 3.14.5 ====Natanael Copa
2022-07-15setup-alpine: ensure unintentional ssh diconnectNatanael Copa
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
2022-07-15tests: support 'status' in fake rc-serviceNatanael Copa
so we can verify that service was started when it should and not started when it shouldn't.
2022-07-15setup-disk: fix hang with UEFI and interactive 'none'Natanael Copa
Fix a hang that happens with interactively selecting 'none' with efi mode. Fixes commit 851247d96340 (setup-disk: calculate size of ESP parition for grub)
2022-07-13==== release 3.14.4 ====Natanael Copa
2022-07-13setup-interfaces: allow wifi networks that has more than PSKNatanael Copa
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
2022-07-13setup-interfaces: add test for interactive wifi setupNatanael Copa
2022-07-13libalpine.sh: add test for askpassNatanael Copa
2022-07-12tests: setup-sshd, setup-user: test ssh dir permissionsNick Hanley
Follow up to the follow up (87e374fd, a91180af). Commit dfd40992 also affects ~/.ssh, so test its permissions too.
2022-07-12setup-disk: allow set LVM partition size with LVM_SIZENatanael Copa
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10501
2022-07-12tests: setup-user: test permissions of authorized_keysNatanael Copa
follow up to commit dfd40992e173 (setup-sshd, setup-user: follow openssh permission recommendations)
2022-07-12tests: setup-sshd: test permissions of authorized_keysNatanael Copa
follow up to commit dfd40992e173 (setup-sshd, setup-user: follow openssh permission recommendations)
2022-07-12setup-sshd, setup-user: follow openssh permission recommendationsNick Hanley
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.
2022-07-12tests: setup-alpine: match against whole linesNick Hanley
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.
2022-07-12tests: setup-alpine: check for authorized_keys in lbu.listNick Hanley
setup-alpine doesn't add root/.ssh to lbu.list. Check for authorized_keys specifically.
2022-07-12setup-alpine: fix typosNick Hanley
2022-07-12remove space in community repo commentAlex Xu (Hello71)
consistent with other repos