summaryrefslogtreecommitdiff
path: root/setup-disk.in
AgeCommit message (Collapse)Author
2022-11-11setup-disk: add tests for find/setup_partitionsNatanael Copa
2022-11-11Make dir $mnt/boot before writing files to itThomas Zeman
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-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-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-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-12setup-disk: allow set LVM partition size with LVM_SIZENatanael Copa
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10501
2022-07-01setup-disk: exit if either mode or disk is 'none'Natanael Copa
2022-06-28setup-disk: Die if disklessShaRose
If you pass -m none, just return immediately: For non-interactive diskless setups.
2022-05-25setup-disk: use logical_block_size to calculate ESP sizeNatanael Copa
fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/13839
2022-05-25setup-disk: fix whitespace errorNatanael Copa
fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/13861
2022-05-23setup-disk: retry on password mismatchNatanael Copa
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
2022-05-23setup-disk: fail early on partition failureNatanael Copa
Fail early if disk is too small or similar
2022-05-19setup-disk: calculate size of ESP parition for grubNatanael Copa
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
2022-05-18setup-disk: use smaller ESP partition for UEFINatanael Copa
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
2022-05-13setup-disk: fix -h usage textNatanael Copa
2022-05-10setup-disk: honor BOOT_SIZE env var for EFI installNatanael Copa
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10512
2022-05-04setup-disk: detect raid under cryptNatanael Copa
Make sure we add raid to initfs when we have encrypted raid.
2022-05-04setup-disk: add nvme for early module loadNatanael Copa
Some nvme devices has problems getting detected by nlplug-finds. Work around it by always load nvme early when needed.
2022-05-04setup-disk: enable nvme initfs feature for crypt on nvmeNatanael Copa
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10498
2022-05-04setup-disk: enable nvme feature for mdadm on nvmeNatanael Copa
2022-05-04setup-disk: add cryptsys for shorthand of crypt+sysNatanael Copa
2022-05-04setup-disk: remove debug lineNatanael Copa
2022-05-02setup-disk: only install firmware that is usedNatanael Copa
2022-05-02setup-disk: remove grsec tracesNatanael Copa
we have nto supported grsec for a while. Remove everything about grsec and PAX.
2022-03-23setup-disk: add tmpfs to /etc/fstabDrew DeVault
It is more common than not to prefer tmpfs for an Alpine installation.
2022-03-19setup-disk: add support for Raspberry Zero 2 WJoonas Kuorilehto
https://www.raspberrypi.com/documentation/computers/config_txt.html#model-filters Related: alpine/aports!31953
2022-03-16setup-disk: fix pi0 and pi0w initramfs not foundflavorplus
Signed-off-by: flavorplus <flavorplus@users.noreply.github.com>
2022-03-16fix PREFIX in *.inNick Hanley
Commit ec0c7a7 changed the sed expression for PREFIX injection but forgot to update the scripts.
2022-03-16setup-disk: update rpi config.txt documentation urlNick Hanley
2022-03-16setup-disk: fix spellingNick Hanley
2022-02-19setup-disk: enable keymap mkinitfs feature if crypt is usedSören Tempel
Fixes #10505
2021-11-22setup-disk: fix Parition id "vfat" is not supportedNatanael Copa
ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/13209
2021-11-16setup-disk: make the order of 'crypt' and 'lvm' obviousKrystian Chachuła
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.
2021-11-16setup-disk: enable password verification in luksFormatKrystian Chachuła
2021-11-16setup-disk: disable prompt and password verification in luksFormatKrystian Chachuła
2021-11-16setup-disk: improve bootloader selectionNatanael Copa
- 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
2021-11-16setup-disk: fix kernel options with encrypted rootNatanael Copa
We should append the kernel options for cryptroot, not replace. This is so nomodeset, quiet and other options are kept.
2021-11-16setup-disk: don't install util-linuxNatanael Copa
It should not be needed
2021-11-16setup-disk: Support encrypted sys and dataKrystian Chachuła
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.
2021-09-19riscv64: EFI riggingsDrew DeVault
Minor changes necessary to support EFI on RISC-V.
2021-08-24setup-disk: Add preliminary support for u-boot based boardsSören Tempel
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.