mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
fix release script
This commit is contained in:
parent
1abaf20d0c
commit
7ac46d5849
4 changed files with 4 additions and 3 deletions
|
@ -109,7 +109,7 @@ _prepare_fedora_shim_bootloaders () {
|
|||
_prepare_uefi_image() {
|
||||
## get size of boot x86_64 files
|
||||
BOOTSIZE=$(du -bc "${_AARCH64}"/EFI | grep total | cut -f1)
|
||||
IMGSZ=$(( (${BOOTSIZE}*102)/100/1024 + 1)) # image size in sectors
|
||||
IMGSZ=$(( (BOOTSIZE*102)/100/1024 + 1)) # image size in sectors
|
||||
## Create cdefiboot.img
|
||||
dd if=/dev/zero of="${_AARCH64}"/efi.img bs="${IMGSZ}" count=1024
|
||||
VFAT_IMAGE="${_AARCH64}/efi.img"
|
||||
|
|
|
@ -67,6 +67,7 @@ for i in *.iso; do
|
|||
isoinfo -R -i "${i}" -x /"${_KERNEL}" 2>/dev/null > "${_KERNEL}"
|
||||
else
|
||||
isoinfo -R -i "${i}" -x /"${_INITRAMFS}" 2>/dev/null > "${_INITRAMFS_LATEST}"
|
||||
fi
|
||||
done
|
||||
cp /usr/share/licenses/amd-ucode/* boot/licenses/amd-ucode/
|
||||
# create torrent files
|
||||
|
|
|
@ -113,7 +113,7 @@ _prepare_fedora_shim_bootloaders () {
|
|||
_prepare_uefi_image() {
|
||||
## get size of boot x86_64 files
|
||||
BOOTSIZE=$(du -bc "${_X86_64}"/EFI | grep total | cut -f1)
|
||||
IMGSZ=$(( (${BOOTSIZE}*102)/100/1024 + 1)) # image size in sectors
|
||||
IMGSZ=$(( (BOOTSIZE*102)/100/1024 + 1)) # image size in sectors
|
||||
## Create cdefiboot.img
|
||||
dd if=/dev/zero of="${_X86_64}"/efi.img bs="${IMGSZ}" count=1024
|
||||
VFAT_IMAGE="${_X86_64}/efi.img"
|
||||
|
|
|
@ -8,7 +8,7 @@ _AMD_UCODE="boot/amd-ucode.img"
|
|||
_INTEL_UCODE="boot/intel-ucode.img"
|
||||
_INITRAMFS="boot/initramfs_${_ARCH}.img"
|
||||
_INITRAMFS_LATEST="boot/initramfs_${_ARCH}-latest.img"
|
||||
_KERNEL="vmlinuz_${__ARCH}"
|
||||
_KERNEL="vmlinuz_${_ARCH}"
|
||||
_W_DIR="$(mktemp -u archboot-release.XXX)"
|
||||
|
||||
usage () {
|
||||
|
|
Loading…
Reference in a new issue