This commit is contained in:
2026-03-29 03:35:07 -07:00
parent 3e71bacb11
commit dadefc2f25
3 changed files with 16 additions and 7 deletions
+4 -4
View File
@@ -9,10 +9,10 @@ windowPlacement: center
strings:
productName: VesperOS
shortProductName: VesperOS
version: 14
shortVersion: 14
versionedName: VesperOS 14
shortVersionedName: VesperOS 14
version: Rainier
shortVersion: Rainier
versionedName: VesperOS Rainier
shortVersionedName: VesperOS Rainier
bootloaderEntryName: VesperOS
productUrl: https://vesperos.oxmc.me
supportUrl: https://vesperos.oxmc.me/support
+1
View File
@@ -1,4 +1,5 @@
---
userShell: /bin/zsh
userGroup: users
defaultGroups:
- cdrom
+11 -3
View File
@@ -5,7 +5,8 @@
TARGET="${CALAMARES_CHROOT:-/tmp/calamares-root}"
ISO_MOUNT="/run/live/medium"
RECOVERY_KERNEL_SRC="${ISO_MOUNT}/boot/recovery.bzImage"
RECOVERY_KERNEL_SRC="${ISO_MOUNT}/boot/recovery.vmlinuz"
RECOVERY_INITRD_SRC="${ISO_MOUNT}/boot/recovery.initrd"
# Find the recovery partition (labelled "recovery" by the partition module)
RECOVERY_DEV="$(blkid -L recovery 2>/dev/null || true)"
@@ -19,18 +20,25 @@ RECOVERY_MNT="$(mktemp -d /tmp/recovery-mount.XXXXXX)"
mount "${RECOVERY_DEV}" "${RECOVERY_MNT}"
echo "Copying RecoveryOS to ${RECOVERY_DEV}..."
cp "${RECOVERY_KERNEL_SRC}" "${RECOVERY_MNT}/recovery.bzImage"
cp "${RECOVERY_KERNEL_SRC}" "${RECOVERY_MNT}/recovery.vmlinuz"
cp "${RECOVERY_INITRD_SRC}" "${RECOVERY_MNT}/recovery.initrd"
umount "${RECOVERY_MNT}"
rmdir "${RECOVERY_MNT}"
# Add recovery GRUB entry to installed system
GRUB_CUSTOM="${TARGET}/etc/grub.d/40_custom"
if [ ! -f "${GRUB_CUSTOM}" ]; then
install -m 755 /dev/null "${GRUB_CUSTOM}"
echo '#!/bin/sh' > "${GRUB_CUSTOM}"
echo 'exec tail -n +3 $0' >> "${GRUB_CUSTOM}"
fi
cat >> "${GRUB_CUSTOM}" << 'GRUBEOF'
menuentry "Recovery OS" {
search --set=root --label recovery
linux /recovery.bzImage
linux /recovery.vmlinuz console=tty1 splash
initrd /recovery.initrd
}
GRUBEOF