forked from images/live-iso-gnome
Apply Patch
This commit is contained in:
parent
994565c80d
commit
e9121135c0
7
build.sh
7
build.sh
@ -61,11 +61,16 @@ mksquashfs \
|
||||
# Copy kernel to refind
|
||||
mkdir -p ./data/refind/EFI
|
||||
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"
|
||||
cp -vf "$ROOTFS_PATH/boot"/booster.img-"$ISO_KERNEL" "./data/refind/EFI/initrd"
|
||||
|
||||
EFI_BOOT_IMAGE_SIZE=$(($(du -s -B1048576 ./data/refind | cut -f1) + 10))
|
||||
EFI_BOOT_IMAGE="$LIVE_BOOT_PATH/efiboot.img"
|
||||
|
||||
# Define VTOY_ISO_NAME in refind
|
||||
sed -i "s#THE_NAME_OF_CURRENT_ISO_FOR_VENTOY#$ISO_IMAGE".iso"#g" ./data/refind/refind_linux.conf
|
||||
sed -i "s#THE_NAME_OF_CURRENT_ISO_FOR_VENTOY#$ISO_IMAGE".iso"#g" ./data/refind/EFI/boot/refind.conf
|
||||
|
||||
# Create Refind Boot Image
|
||||
dd if=/dev/zero of="$EFI_BOOT_IMAGE" bs=1M count=$EFI_BOOT_IMAGE_SIZE
|
||||
mkfs.vfat -F 32 "$EFI_BOOT_IMAGE"
|
||||
|
@ -25,7 +25,6 @@ apt-get full-upgrade --yes --option Dpkg::Options::="--force-confnew" --option D
|
||||
# Install Absolute Live Boot Basics
|
||||
|
||||
apt-get install --yes --option Dpkg::Options::="--force-confnew" --option Dpkg::Options::="--force-overwrite" --no-install-recommends \
|
||||
live-boot \
|
||||
systemd-sysv \
|
||||
iwd \
|
||||
curl openssh-client \
|
||||
|
@ -651,12 +651,12 @@ menuentry "PikaOS Live Image" {
|
||||
icon EFI/BOOT/REFIND-DARK/ICONS/OS_PIKAOS.PNG
|
||||
loader EFI/VMLINUZ
|
||||
initrd EFI/INITRD
|
||||
options "boot=live quiet splash"
|
||||
options "VTOY_ISO_NAME=THE_NAME_OF_CURRENT_ISO_FOR_VENTOY boot=live booster.loadcdrom booster.skiproot quiet splash"
|
||||
submenuentry "Boot live image with logging" {
|
||||
options "boot=live"
|
||||
options "VTOY_ISO_NAME=THE_NAME_OF_CURRENT_ISO_FOR_VENTOY boot=live booster.loadcdrom booster.skiproot"
|
||||
}
|
||||
submenuentry "Boot live image with safe graphics" {
|
||||
options "boot=live nomodeset"
|
||||
options "VTOY_ISO_NAME=THE_NAME_OF_CURRENT_ISO_FOR_VENTOY boot=live booster.loadcdrom booster.skiproot nomodeset"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,3 +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 ---"
|
||||
"Boot live image with standard options" "VTOY_ISO_NAME=THE_NAME_OF_CURRENT_ISO_FOR_VENTOY boot=live booster.loadcdrom booster.skiproot quiet splash ---"
|
||||
"Boot live image with logging" "VTOY_ISO_NAME=THE_NAME_OF_CURRENT_ISO_FOR_VENTOY boot=live booster.loadcdrom booster.skiproot ---"
|
||||
"Boot live image with safe graphics" "VTOY_ISO_NAME=THE_NAME_OF_CURRENT_ISO_FOR_VENTOY boot=live booster.loadcdrom booster.skiproot nomodeset ---"
|
||||
|
14
hooks/4-booster-setup.chroot
Normal file
14
hooks/4-booster-setup.chroot
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
touch /etc/booster.yaml
|
||||
tee /etc/booster.yaml <<'EOF'
|
||||
vconsole: true
|
||||
extra_files: busybox
|
||||
enable_lvm: true
|
||||
modules_force_load: usbhid,hid_generic,loop,usb_storage
|
||||
universal: true
|
||||
modules: usbhid,hid_generic,loop,usb_storage
|
||||
enable_hooks: true
|
||||
enable_plymouth: true
|
||||
EOF
|
||||
|
||||
update-initramfs -c -k all
|
@ -22,5 +22,7 @@ f2fs-tools
|
||||
xfsprogs
|
||||
refind
|
||||
mesa-hybrid
|
||||
console-common
|
||||
console-data
|
||||
booster
|
||||
plymouth
|
||||
pika-live-booster-hooks
|
@ -651,12 +651,12 @@ menuentry "PikaOS Live Image" {
|
||||
icon EFI/BOOT/REFIND-DARK/ICONS/OS_PIKAOS.PNG
|
||||
loader EFI/VMLINUZ
|
||||
initrd EFI/INITRD
|
||||
options "boot=live modules_load=nvidia nvidia-drm.modeset=0 quiet splash"
|
||||
options "VTOY_ISO_NAME=THE_NAME_OF_CURRENT_ISO_FOR_VENTOY boot=live booster.loadcdrom booster.skiproot modules_load=nvidia nvidia-drm.modeset=0 quiet splash"
|
||||
submenuentry "Boot live image with logging" {
|
||||
options "boot=live modules_load=nvidia nvidia-drm.modeset=0"
|
||||
options "VTOY_ISO_NAME=THE_NAME_OF_CURRENT_ISO_FOR_VENTOY boot=live booster.loadcdrom booster.skiproot modules_load=nvidia nvidia-drm.modeset=0"
|
||||
}
|
||||
submenuentry "Boot live image with safe graphics" {
|
||||
options "boot=live nomodeset"
|
||||
options "VTOY_ISO_NAME=THE_NAME_OF_CURRENT_ISO_FOR_VENTOY boot=live booster.loadcdrom booster.skiproot nomodeset"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
"Boot live image with standard options" "boot=live modules_load=nvidia nvidia-drm.modeset=0 quiet splash ---"
|
||||
"Boot live image with logging" "boot=live modules_load=nvidia nvidia-drm.modeset=0 ---"
|
||||
"Boot live image with safe graphics" "boot=live nomodeset ---"
|
||||
"Boot live image with standard options" "VTOY_ISO_NAME=THE_NAME_OF_CURRENT_ISO_FOR_VENTOY boot=live booster.loadcdrom booster.skiproot modules_load=nvidia nvidia-drm.modeset=0 quiet splash ---"
|
||||
"Boot live image with logging" "VTOY_ISO_NAME=THE_NAME_OF_CURRENT_ISO_FOR_VENTOY boot=live booster.loadcdrom booster.skiproot modules_load=nvidia nvidia-drm.modeset=0 ---"
|
||||
"Boot live image with safe graphics" "VTOY_ISO_NAME=THE_NAME_OF_CURRENT_ISO_FOR_VENTOY boot=live booster.loadcdrom booster.skiproot nomodeset ---"
|
||||
|
Loading…
Reference in New Issue
Block a user