Custom enhancements
This commit is contained in:
parent
a3b7121afb
commit
b3a69b224c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
.idea
|
||||||
*~
|
*~
|
||||||
archiso-*.tar.gz*
|
archiso-*.tar.gz*
|
||||||
work/
|
work/
|
||||||
|
@ -550,7 +550,7 @@ _make_efibootimg() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Create the default/fallback boot path in which a boot loaders will be placed later.
|
# Create the default/fallback boot path in which a boot loaders will be placed later.
|
||||||
mmd -i "${efibootimg}" ::/EFI ::/EFI/BOOT
|
mmd -i "${efibootimg}" ::/EFI ::/EFI/BOOT ::/EFI/Linux
|
||||||
}
|
}
|
||||||
|
|
||||||
# Copy GRUB files to ISO 9660 which is used by both IA32 UEFI and x64 UEFI
|
# Copy GRUB files to ISO 9660 which is used by both IA32 UEFI and x64 UEFI
|
||||||
@ -851,10 +851,25 @@ _make_common_bootmode_systemd-boot() {
|
|||||||
efiboot_files+=("${pacstrap_dir}/usr/lib/systemd/boot/efi/systemd-bootia32.efi"
|
efiboot_files+=("${pacstrap_dir}/usr/lib/systemd/boot/efi/systemd-bootia32.efi"
|
||||||
"${pacstrap_dir}/usr/share/edk2-shell/ia32/Shell_Full.efi")
|
"${pacstrap_dir}/usr/share/edk2-shell/ia32/Shell_Full.efi")
|
||||||
fi
|
fi
|
||||||
|
mkdir -p "${pacstrap_dir}/boot/efi"
|
||||||
|
ukify_args=(build)
|
||||||
|
ukify_args+=(--linux "${pacstrap_dir}/boot/vmlinuz-"*)
|
||||||
|
for ucode in "${_available_ucodes[@]}"
|
||||||
|
do
|
||||||
|
ukify_args+=(--initrd "${ucode}")
|
||||||
|
done
|
||||||
|
ukify_args+=(--initrd "${pacstrap_dir}/boot/initramfs-"*".img")
|
||||||
|
ukify_args+=(--cmdline "archisobasedir=${install_dir} archisodevice=UUID=${iso_uuid}")
|
||||||
|
ukify_args+=(--output "${pacstrap_dir}/boot/efi/linux-ukify.efi")
|
||||||
|
# TODO will be moved to /usr/bin (actually already happened)
|
||||||
|
/usr/lib/systemd/ukify "${ukify_args[@]}"
|
||||||
|
sbctl sign "${pacstrap_dir}/boot/efi/linux-ukify.efi"
|
||||||
efiboot_files+=("${work_dir}/loader/"
|
efiboot_files+=("${work_dir}/loader/"
|
||||||
"${pacstrap_dir}/boot/vmlinuz-"*
|
#"${pacstrap_dir}/boot/vmlinuz-"*
|
||||||
"${pacstrap_dir}/boot/initramfs-"*".img"
|
#"${pacstrap_dir}/boot/initramfs-"*".img"
|
||||||
"${_available_ucodes[@]}")
|
"${pacstrap_dir}/boot/efi/linux-ukify.efi"
|
||||||
|
#"${_available_ucodes[@]}"
|
||||||
|
)
|
||||||
efiboot_imgsize="$(du -bcs -- "${efiboot_files[@]}" 2>/dev/null | awk 'END { print $1 }')"
|
efiboot_imgsize="$(du -bcs -- "${efiboot_files[@]}" 2>/dev/null | awk 'END { print $1 }')"
|
||||||
# Create a FAT image for the EFI system partition
|
# Create a FAT image for the EFI system partition
|
||||||
_make_efibootimg "$efiboot_imgsize"
|
_make_efibootimg "$efiboot_imgsize"
|
||||||
@ -890,17 +905,21 @@ _make_bootmode_uefi-x64.systemd-boot.esp() {
|
|||||||
_msg_info "Setting up systemd-boot for x64 UEFI booting..."
|
_msg_info "Setting up systemd-boot for x64 UEFI booting..."
|
||||||
|
|
||||||
# Prepare configuration files
|
# Prepare configuration files
|
||||||
_run_once _make_common_bootmode_systemd-boot_conf
|
#_run_once _make_common_bootmode_systemd-boot_conf
|
||||||
|
|
||||||
# Prepare a FAT image for the EFI system partition
|
# Prepare a FAT image for the EFI system partition
|
||||||
_run_once _make_common_bootmode_systemd-boot
|
_run_once _make_common_bootmode_systemd-boot
|
||||||
|
|
||||||
# Copy systemd-boot EFI binary to the default/fallback boot path
|
# Copy systemd-boot EFI binary to the default/fallback boot path
|
||||||
|
sbctl sign "${pacstrap_dir}/usr/lib/systemd/boot/efi/systemd-bootx64.efi"
|
||||||
mcopy -i "${efibootimg}" \
|
mcopy -i "${efibootimg}" \
|
||||||
"${pacstrap_dir}/usr/lib/systemd/boot/efi/systemd-bootx64.efi" ::/EFI/BOOT/BOOTx64.EFI
|
"${pacstrap_dir}/usr/lib/systemd/boot/efi/systemd-bootx64.efi" ::/EFI/BOOT/BOOTx64.EFI
|
||||||
|
|
||||||
|
mcopy -i "${efibootimg}" \
|
||||||
|
"${pacstrap_dir}/boot/efi/linux-ukify.efi" ::/EFI/Linux/linux-ukify.efi
|
||||||
|
|
||||||
# Copy systemd-boot configuration files
|
# Copy systemd-boot configuration files
|
||||||
_run_once _make_common_bootmode_systemd-boot_conf.esp
|
#_run_once _make_common_bootmode_systemd-boot_conf.esp
|
||||||
|
|
||||||
# shellx64.efi is picked up automatically when on /
|
# shellx64.efi is picked up automatically when on /
|
||||||
if [[ -e "${pacstrap_dir}/usr/share/edk2-shell/x64/Shell_Full.efi" ]]; then
|
if [[ -e "${pacstrap_dir}/usr/share/edk2-shell/x64/Shell_Full.efi" ]]; then
|
||||||
@ -910,7 +929,7 @@ _make_bootmode_uefi-x64.systemd-boot.esp() {
|
|||||||
|
|
||||||
# Copy kernel and initramfs to FAT image.
|
# Copy kernel and initramfs to FAT image.
|
||||||
# systemd-boot can only access files from the EFI system partition it was launched from.
|
# systemd-boot can only access files from the EFI system partition it was launched from.
|
||||||
_run_once _make_boot_on_fat
|
#_run_once _make_boot_on_fat
|
||||||
|
|
||||||
_msg_info "Done! systemd-boot set up for x64 UEFI booting successfully."
|
_msg_info "Done! systemd-boot set up for x64 UEFI booting successfully."
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
HOOKS=(base udev modconf kms memdisk archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs block filesystems keyboard)
|
HOOKS=(base udev modconf kms memdisk archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs block filesystems keyboard)
|
||||||
COMPRESSION="xz"
|
COMPRESSION="zstd"
|
||||||
|
@ -4,5 +4,5 @@
|
|||||||
--ipv4
|
--ipv4
|
||||||
--ipv6
|
--ipv6
|
||||||
--protocol https
|
--protocol https
|
||||||
--latest 20
|
--latest 5
|
||||||
--sort rate
|
--sort rate
|
||||||
|
10
configs/releng/airootfs/usr/local/bin/mnt.sh
Executable file
10
configs/releng/airootfs/usr/local/bin/mnt.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
loadkeys de
|
||||||
|
cryptsetup open /dev/disk/by-uuid/bb5f4eb8-dd2a-445b-9452-23eb44368170 luks-root
|
||||||
|
sleep 1
|
||||||
|
mount /dev/mapper/rootvg-rootvol /mnt
|
||||||
|
arch-chroot /mnt /bin/bash -c "mount -a"
|
||||||
|
arch-chroot /mnt /bin/zsh
|
@ -128,3 +128,4 @@ wvdial
|
|||||||
xfsprogs
|
xfsprogs
|
||||||
xl2tpd
|
xl2tpd
|
||||||
zsh
|
zsh
|
||||||
|
systemd-ukify
|
||||||
|
@ -8,9 +8,7 @@ iso_application="Arch Linux Live/Rescue CD"
|
|||||||
iso_version="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)"
|
iso_version="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)"
|
||||||
install_dir="arch"
|
install_dir="arch"
|
||||||
buildmodes=('iso')
|
buildmodes=('iso')
|
||||||
bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito'
|
bootmodes=('uefi-x64.systemd-boot.esp')
|
||||||
'uefi-ia32.grub.esp' 'uefi-x64.grub.esp'
|
|
||||||
'uefi-ia32.grub.eltorito' 'uefi-x64.grub.eltorito')
|
|
||||||
arch="x86_64"
|
arch="x86_64"
|
||||||
pacman_conf="pacman.conf"
|
pacman_conf="pacman.conf"
|
||||||
airootfs_image_type="squashfs"
|
airootfs_image_type="squashfs"
|
||||||
@ -23,4 +21,5 @@ file_permissions=(
|
|||||||
["/usr/local/bin/choose-mirror"]="0:0:755"
|
["/usr/local/bin/choose-mirror"]="0:0:755"
|
||||||
["/usr/local/bin/Installation_guide"]="0:0:755"
|
["/usr/local/bin/Installation_guide"]="0:0:755"
|
||||||
["/usr/local/bin/livecd-sound"]="0:0:755"
|
["/usr/local/bin/livecd-sound"]="0:0:755"
|
||||||
|
["/usr/local/bin/mnt.sh"]="0:0:755"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user