mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50: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() {
|
_prepare_uefi_image() {
|
||||||
## get size of boot x86_64 files
|
## get size of boot x86_64 files
|
||||||
BOOTSIZE=$(du -bc "${_AARCH64}"/EFI | grep total | cut -f1)
|
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
|
## Create cdefiboot.img
|
||||||
dd if=/dev/zero of="${_AARCH64}"/efi.img bs="${IMGSZ}" count=1024
|
dd if=/dev/zero of="${_AARCH64}"/efi.img bs="${IMGSZ}" count=1024
|
||||||
VFAT_IMAGE="${_AARCH64}/efi.img"
|
VFAT_IMAGE="${_AARCH64}/efi.img"
|
||||||
|
|
|
@ -67,6 +67,7 @@ for i in *.iso; do
|
||||||
isoinfo -R -i "${i}" -x /"${_KERNEL}" 2>/dev/null > "${_KERNEL}"
|
isoinfo -R -i "${i}" -x /"${_KERNEL}" 2>/dev/null > "${_KERNEL}"
|
||||||
else
|
else
|
||||||
isoinfo -R -i "${i}" -x /"${_INITRAMFS}" 2>/dev/null > "${_INITRAMFS_LATEST}"
|
isoinfo -R -i "${i}" -x /"${_INITRAMFS}" 2>/dev/null > "${_INITRAMFS_LATEST}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
cp /usr/share/licenses/amd-ucode/* boot/licenses/amd-ucode/
|
cp /usr/share/licenses/amd-ucode/* boot/licenses/amd-ucode/
|
||||||
# create torrent files
|
# create torrent files
|
||||||
|
|
|
@ -113,7 +113,7 @@ _prepare_fedora_shim_bootloaders () {
|
||||||
_prepare_uefi_image() {
|
_prepare_uefi_image() {
|
||||||
## get size of boot x86_64 files
|
## get size of boot x86_64 files
|
||||||
BOOTSIZE=$(du -bc "${_X86_64}"/EFI | grep total | cut -f1)
|
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
|
## Create cdefiboot.img
|
||||||
dd if=/dev/zero of="${_X86_64}"/efi.img bs="${IMGSZ}" count=1024
|
dd if=/dev/zero of="${_X86_64}"/efi.img bs="${IMGSZ}" count=1024
|
||||||
VFAT_IMAGE="${_X86_64}/efi.img"
|
VFAT_IMAGE="${_X86_64}/efi.img"
|
||||||
|
|
|
@ -8,7 +8,7 @@ _AMD_UCODE="boot/amd-ucode.img"
|
||||||
_INTEL_UCODE="boot/intel-ucode.img"
|
_INTEL_UCODE="boot/intel-ucode.img"
|
||||||
_INITRAMFS="boot/initramfs_${_ARCH}.img"
|
_INITRAMFS="boot/initramfs_${_ARCH}.img"
|
||||||
_INITRAMFS_LATEST="boot/initramfs_${_ARCH}-latest.img"
|
_INITRAMFS_LATEST="boot/initramfs_${_ARCH}-latest.img"
|
||||||
_KERNEL="vmlinuz_${__ARCH}"
|
_KERNEL="vmlinuz_${_ARCH}"
|
||||||
_W_DIR="$(mktemp -u archboot-release.XXX)"
|
_W_DIR="$(mktemp -u archboot-release.XXX)"
|
||||||
|
|
||||||
usage () {
|
usage () {
|
||||||
|
|
Loading…
Reference in a new issue