Working on it...

This commit is contained in:
2026-03-05 04:55:55 -08:00
parent aa82b77d91
commit b93580ba3b
5 changed files with 15 additions and 7 deletions
+12 -3
View File
@@ -42,9 +42,18 @@ mkdir -p "${ISO_TEMP_DIR}/boot/grub"
mkdir -p "${ISO_TEMP_DIR}/live"
mkdir -p "${ISO_TEMP_DIR}/EFI/boot"
# Copy kernel and initrd (resolving symlinks)
cp -L "${ROOTFS_DIR}/boot/vmlinuz" "${ISO_TEMP_DIR}/boot/vmlinuz"
cp -L "${ROOTFS_DIR}/boot/initrd.img" "${ISO_TEMP_DIR}/boot/initrd.img"
# Copy kernel and initrd — prefer the vmlinuz symlink, fall back to the versioned file
VMLINUZ=$(readlink -f "${ROOTFS_DIR}/boot/vmlinuz" 2>/dev/null || ls "${ROOTFS_DIR}/boot/vmlinuz-"* 2>/dev/null | sort -V | tail -1)
INITRD=$(readlink -f "${ROOTFS_DIR}/boot/initrd.img" 2>/dev/null || ls "${ROOTFS_DIR}/boot/initrd.img-"* 2>/dev/null | sort -V | tail -1)
if [ -z "${VMLINUZ}" ] || [ ! -f "${VMLINUZ}" ]; then
echo "ERROR: Could not find kernel in ${ROOTFS_DIR}/boot/"
ls "${ROOTFS_DIR}/boot/" || true
exit 1
fi
cp "${VMLINUZ}" "${ISO_TEMP_DIR}/boot/vmlinuz"
cp "${INITRD}" "${ISO_TEMP_DIR}/boot/initrd.img"
# Copy GRUB EFI binary from chroot
cp "${ROOTFS_DIR}/tmp/grub-standalone/bootx64.efi" "${ISO_TEMP_DIR}/EFI/boot/bootx64.efi"
@@ -30,4 +30,4 @@
+ alias egrep='egrep --color=auto'
fi
# colored GCC warnings and errors
# colored GCC warnings and errors
@@ -7,4 +7,4 @@
+
+# mappings for up and down arrows search history
+# "\e[B": history-search-forward
+# "\e[A": history-search-backward
+# "\e[A": history-search-backward
@@ -17,4 +17,4 @@
+SKEL=/etc/skel
#
# Defines whether the mail spool should be created while
# creating the account
# creating the account
@@ -19,4 +19,3 @@
+ PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games"
fi
export PATH