Age | Commit message (Collapse) | Author |
|
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.
|
|
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
|
|
|
|
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)
|
|
|
|
Ask for NTP when running qemu, but without kvm-clock source
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10508
|
|
make sure that we include the home directory to created user
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10517
|
|
Add a variable for user's ssh key, USERSSHKEY. We need this because the
key is space separated and we want avoid parse USEROPTS with eval to
handle quotes.
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10520
|
|
test that the generated answerfile actually is interactive
|
|
|
|
Assume that PATH is set up properly for testing. This makes it possible
to test setup-alpine without installing it with the sbin prefix.
|
|
this was (presumabely) originally intended for testing. We use MOCK
instead nowdays.
|
|
Only ask user for keymap from virtual consoles.
|
|
|
|
|
|
hostname service is now a dependency for networking, so restarting
hostname would restart network which is not what we want.
|
|
|
|
The acpid init.d daemon should not be enabled on machines that do not
actually have ACPI support - this includes most Arm SBCs and
occasionally some x86/x86_64 machines (including Firecracker VMs).
If acpid is enabled in such situations then it will fail to start and
the OpenRC service will show as crashed.
Only enable the acpid service if the /sys/firmware/acpi directory
exists which indicates the machine does have ACPI support.
Closes https://gitlab.alpinelinux.org/alpine/aports/-/issues/12290 and
https://gitlab.alpinelinux.org/alpine/aports/-/issues/13700.
|
|
|
|
|
|
Commit ec0c7a7 changed the sed expression for PREFIX injection but
forgot to update the scripts.
|
|
6c70088 (setup-alpine: minor code clean up, 2021-11-16) did a clean-up
of the answerfile code, but introduced a type on the `USEANSWERFILE`
variable, resulting in answerfiles no longer to be sourced.
Closes #10494
|
|
No functional changes, just clean up code a bit.
|
|
Fixes #10483.
|
|
|
|
Fixes #10480.
Fixes #10484.
|
|
|
|
we need time to be correct for https certificates when setting up
apkrepos, so we call setup-ntp before setup-apkrepos.
ref #9911
|
|
When -q option is specified:
- skip set root password
- auto configure network (dhcp)
|
|
|
|
udhcpc will print info to stderr and it confuses the password prompt
|
|
- use "alpine" as hostname
- use first repo in the mirror list (normally cdn)
- don't ask about proxy
|
|
udhcpc will print to stdout the ip addr it got. This gets in the way for
the root password prompt so we redirect udhcpc to /dev/null
|
|
fixes #2876
|
|
|
|
|
|
|
|
|
|
the crond service was previously named 'cron'. support both for
backwards compat.
|
|
|
|
|
|
|
|
add support for setup-alpine from within a container.
when running in lxc we skip config of:
- keymap
- hostname
- ntp
- disk
- apk cache
- lbu
ref #3057
|
|
|
|
ref #1463
|
|
|
|
|
|
|
|
|
|
less questions
|