first attempt at making GPT only refind image
Some checks failed
Push ISO / build (push) Failing after 1m14s
Some checks failed
Push ISO / build (push) Failing after 1m14s
This commit is contained in:
parent
e865ce81c8
commit
417b1209e2
2
.github/push-iso
vendored
2
.github/push-iso
vendored
@ -1 +1 @@
|
|||||||
22
|
23
|
||||||
|
36
build.sh
36
build.sh
@ -21,7 +21,7 @@ mount -t sysfs sys "$ROOTFS_PATH/sys" -o nosuid,nodev,noexec,ro
|
|||||||
|
|
||||||
cp -rvf ./chroot_scripts "$ROOTFS_PATH/"
|
cp -rvf ./chroot_scripts "$ROOTFS_PATH/"
|
||||||
cp -rvf ./hooks "$ROOTFS_PATH/chroot_scripts/"
|
cp -rvf ./hooks "$ROOTFS_PATH/chroot_scripts/"
|
||||||
cp -rvf ./live-lists "$ROOTFS_PATH/chroot_scripts/"
|
cp -rvf ./linux/live-lists "$ROOTFS_PATH/chroot_scripts/"
|
||||||
cp -rvf ./pool-lists "$ROOTFS_PATH/chroot_scripts/"
|
cp -rvf ./pool-lists "$ROOTFS_PATH/chroot_scripts/"
|
||||||
cp -rvf ./rem-lists "$ROOTFS_PATH/chroot_scripts/"
|
cp -rvf ./rem-lists "$ROOTFS_PATH/chroot_scripts/"
|
||||||
cp -rvf ./info.sh "$ROOTFS_PATH/chroot_scripts/"
|
cp -rvf ./info.sh "$ROOTFS_PATH/chroot_scripts/"
|
||||||
@ -40,11 +40,9 @@ umount "$ROOTFS_PATH/sys" || umount -lf "$ROOTFS_PATH/sys" || true
|
|||||||
|
|
||||||
# Generate Squashfs image
|
# Generate Squashfs image
|
||||||
|
|
||||||
mkdir -p $LIVE_BOOT_PATH/live
|
|
||||||
|
|
||||||
mksquashfs \
|
mksquashfs \
|
||||||
"$ROOTFS_PATH" \
|
"$ROOTFS_PATH" \
|
||||||
"$LIVE_BOOT_PATH/live/filesystem.squashfs" \
|
"$LIVE_BOOT_PATH/linux/live/filesystem.squashfs" \
|
||||||
-e boot \
|
-e boot \
|
||||||
-noappend \
|
-noappend \
|
||||||
-comp xz \
|
-comp xz \
|
||||||
@ -54,6 +52,32 @@ mksquashfs \
|
|||||||
|
|
||||||
# Copy Kernel to live
|
# Copy Kernel to live
|
||||||
cp "$ROOTFS_PATH/boot"/vmlinuz-* \
|
cp "$ROOTFS_PATH/boot"/vmlinuz-* \
|
||||||
"$LIVE_BOOT_PATH/live/vmlinuz" && \
|
"$LIVE_BOOT_PATH/linux/live/vmlinuz" && \
|
||||||
cp "$ROOTFS_PATH/boot"/initrd.img-* \
|
cp "$ROOTFS_PATH/boot"/initrd.img-* \
|
||||||
"$LIVE_BOOT_PATH/live/initrd"
|
"$LIVE_BOOT_PATH/linux/live/initrd" && \
|
||||||
|
cp ./data/refind/refind_linux.conf \
|
||||||
|
"$LIVE_BOOT_PATH/linux/live/refind_linux.conf"
|
||||||
|
|
||||||
|
# Generate bootable EFI Image from refind
|
||||||
|
|
||||||
|
dd if=/dev/zero of=disk.img bs=1M count=20
|
||||||
|
losetup --offset 1048576 --sizelimit 46934528 /dev/loop5 disk.img
|
||||||
|
mkfs.vfat /dev/loop5
|
||||||
|
mkdir -p /mnt/efi-disk
|
||||||
|
mount /dev/loop5 /mnt/efi-disk
|
||||||
|
mkdir -p /mnt/efi-disk/EFI
|
||||||
|
rsync -av ./data/refind/EFI/* /mnt/efi-disk/EFI/
|
||||||
|
mkisofs -o "$LIVE_BOOT_PATH/efiboot.img" /mnt/efi-disk/
|
||||||
|
umount -l /mnt/efi-disk
|
||||||
|
rm -rfv disk.img
|
||||||
|
|
||||||
|
# Create Bootable UEFI Full Image
|
||||||
|
mkdir -p ./output
|
||||||
|
|
||||||
|
xorriso \
|
||||||
|
-as mkisofs \
|
||||||
|
-V $LIVE_BOOT_VOLUME_NAME \
|
||||||
|
-e "$LIVE_BOOT_PATH/efiboot.img" \
|
||||||
|
-no-emul-boot \
|
||||||
|
-o "./output/$ISO_IMAGE" \
|
||||||
|
"$LIVE_BOOT_PATH/linux"
|
||||||
|
@ -4,19 +4,19 @@ set -e
|
|||||||
|
|
||||||
export DEBIAN_FRONTEND="noninteractive"
|
export DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
touch /chroot_scripts/live_list
|
touch /chroot_scripts/linux/live_list
|
||||||
|
|
||||||
for live_list in /chroot_scripts/live-lists/*.list
|
for live_list in /chroot_scripts/linux/live-lists/*.list
|
||||||
do
|
do
|
||||||
for pkg in $(cat $live_list)
|
for pkg in $(cat $live_list)
|
||||||
do
|
do
|
||||||
if [[ $pkg != "#"* ]]
|
if [[ $pkg != "#"* ]]
|
||||||
then
|
then
|
||||||
echo $pkg >> /chroot_scripts/live_list
|
echo $pkg >> /chroot_scripts/linux/live_list
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
apt-get install --yes --no-install-recommends --option Dpkg::Options::="--force-confnew" $(cat /chroot_scripts/live_list | tr "\n" " ")
|
apt-get install --yes --no-install-recommends --option Dpkg::Options::="--force-confnew" $(cat /chroot_scripts/linux/live_list | tr "\n" " ")
|
||||||
|
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ os_mandriva.png -- AwOken/clear/128x128/start-here/start-here-mandriva5.png
|
|||||||
os_network.png -- AwOken/clear/128x128/places/network-workgroup1.png
|
os_network.png -- AwOken/clear/128x128/places/network-workgroup1.png
|
||||||
os_uefi.png -- AwOkenWhite/clear/128x128/start-here/start-here-umbrella3.png
|
os_uefi.png -- AwOkenWhite/clear/128x128/start-here/start-here-umbrella3.png
|
||||||
os_unknown.png -- AwOken/clear/128x128/actions/color-line1.png
|
os_unknown.png -- AwOken/clear/128x128/actions/color-line1.png
|
||||||
os_win8.png -- AwOken/clear/128x128/apps/live1.png
|
os_win8.png -- AwOken/clear/128x128/apps/linux/live1.png
|
||||||
|
|
||||||
|
|
||||||
Icons modified from AwOken 2.5:
|
Icons modified from AwOken 2.5:
|
||||||
|
3
data/refind/refind_linux.conf
Normal file
3
data/refind/refind_linux.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
"Boot live image with standard options" "boot=live quiet splash ---"
|
||||||
|
"Boot live image with logging" "boot=live ---"
|
||||||
|
"Boot live image with safe graphics" "boot=live nomodeset ---"
|
5
info.sh
5
info.sh
@ -3,3 +3,8 @@
|
|||||||
export LIVE_BOOT_PATH="$(pwd)/LIVE_BOOT"
|
export LIVE_BOOT_PATH="$(pwd)/LIVE_BOOT"
|
||||||
export ROOTFS_PATH="$LIVE_BOOT_DIR/rootfs"
|
export ROOTFS_PATH="$LIVE_BOOT_DIR/rootfs"
|
||||||
export LIVE_HOSTNAME="pikaos"
|
export LIVE_HOSTNAME="pikaos"
|
||||||
|
export ISO_ARCH="amd64-v3"
|
||||||
|
export ISO_RELEASE="4.0"
|
||||||
|
export ISO_DESKTOP="GNOME"
|
||||||
|
export ISO_IMAGE="PikaOS-$DESKTOP-$RELEASE-$ARCH-$(date '+%y.%m.%d')"
|
||||||
|
export LIVE_BOOT_VOLUME_NAME="PikaOS-$DESKTOP-$RELEASE-$ARCH"
|
||||||
|
Loading…
Reference in New Issue
Block a user