diff options
| author | 2026-04-21 01:24:36 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:24:36 +0100 | |
| commit | 2b0930fbdea2565e01f451843dddeceef8e9cd42 (patch) | |
| tree | 29e03c038580d92943ce3977461d4b92d45fe852 /dot_local/bin/executable_create-efi | |
| parent | 4260b23f59752ca9e88161f649285da3cce82982 (diff) | |
| download | dotfiles-2b0930fbdea2565e01f451843dddeceef8e9cd42.tar.gz dotfiles-2b0930fbdea2565e01f451843dddeceef8e9cd42.tar.bz2 dotfiles-2b0930fbdea2565e01f451843dddeceef8e9cd42.zip | |
style(shell): apply shfmt (-i 2 -ci -s)
Diffstat (limited to 'dot_local/bin/executable_create-efi')
| -rwxr-xr-x | dot_local/bin/executable_create-efi | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/dot_local/bin/executable_create-efi b/dot_local/bin/executable_create-efi index 9a72263..70cf1cc 100755 --- a/dot_local/bin/executable_create-efi +++ b/dot_local/bin/executable_create-efi @@ -5,49 +5,48 @@ lsblk printf "Boot disk [sda]: " && read -r boot_disk if [ -z "$boot_disk" ]; then - boot_disk='sda' + boot_disk='sda' fi printf "Boot partition number [1]: " && read -r boot_partition_number if [ -z "$boot_partition_number" ]; then - boot_partition_number='1' + boot_partition_number='1' fi printf "Root partition [sda2]: " && read -r root_partition if [ -z "$root_partition" ]; then - root_partition='sda2' + root_partition='sda2' fi root_uuid="UUID=$(blkid -s UUID -o value /dev/"$root_partition")" printf "Kernel name [linux]: " && read -r kernel_name if [ -z "$kernel_name" ]; then - kernel_name='linux' + kernel_name='linux' fi printf "CPU vendor (intel/amd) [intel]: " && read -r cpu_vendor if [ -z "$cpu_vendor" ]; then - cpu_vendor='intel' + cpu_vendor='intel' fi printf "ESP (boot/efi) [boot]: " && read -r esp if [ -z "$esp" ]; then - esp='boot' + esp='boot' fi printf "extra kernel parameters (e.g. mitigations=off): " && read -r extra_kernel_params printf "label [archlinux]: " && read -r label if [ -z "$label" ]; then - label='archlinux' + label='archlinux' fi rel_path="" rel_path2="" if [ "$esp" = "efi" ]; then - rel_path="\\EFI\\arch" - rel_path2="/EFI/arch" + rel_path='\EFI\arch' + rel_path2="/EFI/arch" fi - unicode_arg="cryptdevice=$root_uuid:root root=/dev/mapper/root rw initrd=$rel_path\\$cpu_vendor-ucode.img initrd=$rel_path\\initramfs-$kernel_name.img quiet $extra_kernel_params" set -x |
