idk
Some checks failed
Release Nest NVIDIA amd64-v3 ISO / build (push) Failing after 9m44s

This commit is contained in:
Ward from fusion-voyager-3 2024-08-11 02:27:13 +03:00
parent a6df42e9ef
commit ee7f521a84
2 changed files with 11 additions and 5 deletions

View File

@ -1 +1 @@
10 11

View File

@ -64,38 +64,44 @@ mkdir -p ./data/refind/EFI
cp -vf "$ROOTFS_PATH/boot"/vmlinuz-"$ISO_KERNEL" "./data/refind/EFI/vmlinuz" cp -vf "$ROOTFS_PATH/boot"/vmlinuz-"$ISO_KERNEL" "./data/refind/EFI/vmlinuz"
cp -vf "$ROOTFS_PATH/boot"/initrd.img-"$ISO_KERNEL" "./data/refind/EFI/initrd" cp -vf "$ROOTFS_PATH/boot"/initrd.img-"$ISO_KERNEL" "./data/refind/EFI/initrd"
REFIND_SIZE=$(($(du -s -B1 ./data/refind | cut -f1) + 1024)) REFIND_SIZE=$(($(du -s -B1048576 ./data/refind | cut -f1) + 10))
LIVE_SIZE=$(($(du -s -B1 $LIVE_BOOT_LIVE_PATH | cut -f1) + 1024)) LIVE_SIZE=$(($(du -s -B1048576 $LIVE_BOOT_LIVE_PATH | cut -f1) + 10))
ISO_SIZE=$(($REFIND_SIZE + $LIVE_SIZE)) ISO_SIZE=$(($REFIND_SIZE + $LIVE_SIZE))
DD_BOOT_IMAGE="./efiboot.img" DD_BOOT_IMAGE="./efiboot.img"
DD_LIVE_IMAGE="./live.img" DD_LIVE_IMAGE="./live.img"
# Create Refind Image # Create Refind Image
dd if=/dev/zero of="$DD_BOOT_IMAGE" bs=1 count=$REFIND_SIZE dd if=/dev/zero of="$DD_BOOT_IMAGE" bs=1M count=$REFIND_SIZE
mkfs.vfat -F 32 "$DD_BOOT_IMAGE" mkfs.vfat -F 32 "$DD_BOOT_IMAGE"
for directory in $(find ./data/refind/EFI/ -type d | cut -d'/' -f4-) for directory in $(find ./data/refind/EFI/ -type d | cut -d'/' -f4-)
do do
echo "creating directory $directory in $DD_BOOT_IMAGE"
mmd -i "$DD_BOOT_IMAGE" ::"$(echo $directory | tr '[:lower:]' '[:upper:]' | sed 's:/*$::')" mmd -i "$DD_BOOT_IMAGE" ::"$(echo $directory | tr '[:lower:]' '[:upper:]' | sed 's:/*$::')"
done done
for file in $(find ./data/refind/EFI/ -type f) for file in $(find ./data/refind/EFI/ -type f)
do do
echo "copying file $file to $DD_BOOT_IMAGE"
mcopy -i "$DD_BOOT_IMAGE" $file ::"$(echo $file | cut -d'/' -f4- | tr '[:lower:]' '[:upper:]')" mcopy -i "$DD_BOOT_IMAGE" $file ::"$(echo $file | cut -d'/' -f4- | tr '[:lower:]' '[:upper:]')"
done done
# Create Live medium image # Create Live medium image
dd if=/dev/zero of="$DD_LIVE_IMAGE" bs=1 count=$LIVE_SIZE dd if=/dev/zero of="$DD_LIVE_IMAGE" bs=1M count=$LIVE_SIZE
mkfs.ext4 "$DD_LIVE_IMAGE" mkfs.ext4 "$DD_LIVE_IMAGE"
for directory in $(find $LIVE_BOOT_LIVE_PATH -type d | cut -d'/' -f4-) for directory in $(find $LIVE_BOOT_LIVE_PATH -type d | cut -d'/' -f4-)
do do
echo "creating directory $directory in $DD_LIVE_IMAGE"
mmd -i "$DD_LIVE_IMAGE" ::"$(echo $directory | tr '[:lower:]' '[:upper:]' | sed 's:/*$::')" mmd -i "$DD_LIVE_IMAGE" ::"$(echo $directory | tr '[:lower:]' '[:upper:]' | sed 's:/*$::')"
done done
for file in $(find $LIVE_BOOT_LIVE_PATH -type f) for file in $(find $LIVE_BOOT_LIVE_PATH -type f)
do do
echo "copying file $file to $DD_LIVE_IMAGE"
mcopy -i "$DD_LIVE_IMAGE" $file ::"$(echo $file | cut -d'/' -f4- | tr '[:lower:]' '[:upper:]')" mcopy -i "$DD_LIVE_IMAGE" $file ::"$(echo $file | cut -d'/' -f4- | tr '[:lower:]' '[:upper:]')"
done done
# Join the 2 images into one
echo "joining images"
cat $DD_BOOT_IMAGE $DD_LIVE_IMAGE > "./output/$ISO_IMAGE".iso cat $DD_BOOT_IMAGE $DD_LIVE_IMAGE > "./output/$ISO_IMAGE".iso
# Generate an integrity sum # Generate an integrity sum