Age | Commit message (Collapse) | Author |
|
|
|
|
|
fixes use with yash.
|
|
and add test from missing block device
|
|
we dont dont that for real when testing
|
|
|
|
Use an env var SETUP_DISK_TESTFUNC to run individual functions for unit
testing purposes.
|
|
not used since commit 427a14cb8d80 (setup-disk: remove grsec traces)
|
|
prefix /sys/... with $ROOT so we can test it
|
|
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.
|
|
'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
|
|
Fix a hang that happens with interactively selecting 'none' with efi
mode.
Fixes commit 851247d96340 (setup-disk: calculate size of ESP parition
for grub)
|
|
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10501
|
|
|
|
If you pass -m none, just return immediately: For non-interactive diskless setups.
|
|
fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/13839
|
|
fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/13861
|
|
Retry create luks device if the entered password does not match rather
than exit with error.
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10514
|
|
Fail early if disk is too small or similar
|
|
some devices, like NVME may have a physical block size of 4096, in which
case FAT32 needs minimum 260MB.
Use physical_block_size to calculate the size for ESP
|
|
Grub's efi files are just a few MB, so we can reduce the size of the
ESP. We also enforce FAT32, which requires minimum 32MB. Apparently many
UEFI firmware implementations only support FAT32.
https://wiki.osdev.org/EFI_System_Partition#Format
|
|
|
|
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10512
|
|
Make sure we add raid to initfs when we have encrypted raid.
|
|
Some nvme devices has problems getting detected by nlplug-finds. Work
around it by always load nvme early when needed.
|
|
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10498
|
|
|
|
|
|
|
|
|
|
we have nto supported grsec for a while. Remove everything about grsec
and PAX.
|
|
It is more common than not to prefer tmpfs for an Alpine installation.
|
|
https://www.raspberrypi.com/documentation/computers/config_txt.html#model-filters
Related: alpine/aports!31953
|
|
Signed-off-by: flavorplus <flavorplus@users.noreply.github.com>
|
|
Commit ec0c7a7 changed the sed expression for PREFIX injection but
forgot to update the scripts.
|
|
|
|
|
|
Fixes #10505
|
|
ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/13209
|
|
The order of 'crypt' and 'lvm' can be confusing.
This commit disables suggesting 'crypt' when 'lvm' is selected.
It also adds a statement about the order of LVM and LUKS when both are
selected.
|
|
|
|
|
|
- unify bootloader selection.
- respect previously set BOOTLOADER, even if it may not work
- fall back to u-boot for arm and aarch64 if not efi
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10489
|
|
We should append the kernel options for cryptroot, not replace. This is
so nomodeset, quiet and other options are kept.
|
|
It should not be needed
|
|
Co-authored-by: Drew DeVault <sir@cmpwn.com>
In encrypted sys installs the boot partition is not encrypted and is
mounted to /boot. This is because GRUB does not have full support for
luks2 encrypted /boot.
|
|
Minor changes necessary to support EFI on RISC-V.
|
|
Currently, this bootloader is not set automatically and needs to be set
manually using the BOOTLOADER environment variable, e.g.:
BOOTLOADER=u-boot setup-disk -m sys /dev/sda
Furthermore, it relies on the update-u-boot script to install the
bootloader based on the automatically determined defaults.
|