Try to fix the ridiclous
Some checks failed
Release Nest NVIDIA amd64-v3 ISO / build (push) Has been cancelled
Some checks failed
Release Nest NVIDIA amd64-v3 ISO / build (push) Has been cancelled
This commit is contained in:
parent
a6a8a96e86
commit
202cb625df
2
.github/release-nest-v3-nvidia-iso
vendored
2
.github/release-nest-v3-nvidia-iso
vendored
@ -1 +1 @@
|
|||||||
5
|
6
|
39
build.sh
39
build.sh
@ -61,35 +61,36 @@ mksquashfs \
|
|||||||
|
|
||||||
# Copy kernel to refind
|
# Copy kernel to refind
|
||||||
mkdir -p ./data/refind/EFI
|
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"
|
||||||
|
|
||||||
dd if=/dev/zero of="$LIVE_BOOT_PATH/efiboot.img" bs=1 count=$(du -s -B1 ./data/refind | cut -f1)
|
# Create Refind Image
|
||||||
mkfs.vfat -F 32 "$LIVE_BOOT_PATH/efiboot.img"
|
dd if=/dev/zero of="$DD_BOOT_IMAGE" bs=1 count=$REFIND_SIZE
|
||||||
|
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
|
||||||
mmd -i "$LIVE_BOOT_PATH/efiboot.img" ::"$(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
|
||||||
mcopy -i "$LIVE_BOOT_PATH/efiboot.img" $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 Bootable UEFI Full Image
|
# Create Live medium image
|
||||||
mkdir -p ./output
|
dd if=/dev/zero of="$DD_LIVE_IMAGE" bs=1 count=$LIVE_SIZE
|
||||||
|
mkfs.ext4 "$DD_LIVE_IMAGE"
|
||||||
|
for directory in $(find $LIVE_BOOT_LIVE_PATH -type d | cut -d'/' -f4-)
|
||||||
|
do
|
||||||
|
mmd -i "$DD_LIVE_IMAGE" ::"$(echo $directory | tr '[:lower:]' '[:upper:]' | sed 's:/*$::')"
|
||||||
|
done
|
||||||
|
|
||||||
xorriso \
|
for file in $(find $LIVE_BOOT_LIVE_PATH -type f)
|
||||||
-as mkisofs \
|
do
|
||||||
-iso-level 3 \
|
mcopy -i "$DD_LIVE_IMAGE" $file ::"$(echo $file | cut -d'/' -f4- | tr '[:lower:]' '[:upper:]')"
|
||||||
-V "PikaOS 4" \
|
done
|
||||||
-e --interval:appended_partition_2:all:: \
|
|
||||||
-append_partition 2 0xef "$LIVE_BOOT_PATH/efiboot.img" \
|
cat $DD_BOOT_IMAGE $DD_LIVE_IMAGE > "./output/$ISO_IMAGE".iso
|
||||||
-J -joliet-long \
|
|
||||||
-no-emul-boot \
|
|
||||||
-isohybrid-gpt-basdat \
|
|
||||||
-o "./output/$ISO_IMAGE".iso \
|
|
||||||
"$LIVE_BOOT_DATA_PATH"
|
|
||||||
|
|
||||||
# Generate an integrity sum
|
# Generate an integrity sum
|
||||||
touch "./output/$ISO_IMAGE".md5
|
touch "./output/$ISO_IMAGE".md5
|
||||||
|
2
info.sh
2
info.sh
@ -6,7 +6,7 @@ export LIVE_BOOT_LIVE_PATH="$LIVE_BOOT_DATA_PATH/live"
|
|||||||
export ROOTFS_PATH="$LIVE_BOOT_PATH/rootfs"
|
export ROOTFS_PATH="$LIVE_BOOT_PATH/rootfs"
|
||||||
export LIVE_HOSTNAME="pikaos"
|
export LIVE_HOSTNAME="pikaos"
|
||||||
export ISO_DISTNAME="#DISTNAME#"
|
export ISO_DISTNAME="#DISTNAME#"
|
||||||
export ISO_KERNEL="6.10-pikaos"
|
export ISO_KERNEL="6.10.0-pikaos"
|
||||||
export ISO_ARCH="#ARCH#"
|
export ISO_ARCH="#ARCH#"
|
||||||
export ISO_RELEASE="4.0"
|
export ISO_RELEASE="4.0"
|
||||||
export ISO_DESKTOP="GNOME"
|
export ISO_DESKTOP="GNOME"
|
||||||
|
Loading…
Reference in New Issue
Block a user