2016-07-25 14:08:53 +00:00
|
|
|
#!/bin/sh
|
2016-10-28 08:57:11 +00:00
|
|
|
mount -o ro -t ext4 /dev/sda1 /boot
|
2016-07-25 14:08:53 +00:00
|
|
|
|
2016-10-25 18:42:36 +00:00
|
|
|
die() { echo >&2 "$*"; exit 1; }
|
|
|
|
|
|
|
|
XEN=/boot/xen-4.6.3.gz
|
2016-10-28 08:57:11 +00:00
|
|
|
INITRD=/boot/initramfs-4.4.14-11.pvops.qubes.x86_64.img
|
|
|
|
KERNEL=/boot/vmlinuz-4.4.14-11.pvops.qubes.x86_64
|
2016-10-25 18:42:36 +00:00
|
|
|
|
|
|
|
echo "+++ Checking $XEN"
|
|
|
|
gpgv "${XEN}.asc" "${XEN}" || die "Xen signature failed"
|
|
|
|
echo "+++ Checking $INITRD"
|
|
|
|
|
|
|
|
gpgv "${INITRD}.asc" "${INITRD}" || die "Initrd signature failed"
|
|
|
|
|
|
|
|
echo "+++ Checking $KERNEL"
|
|
|
|
gpgv "${KERNEL}.asc" "${KERNEL}" || die "Kernel signature failed"
|
|
|
|
|
|
|
|
|
|
|
|
# should also check xen command line arguments!
|
|
|
|
# should also check kernel command line arguments!
|
|
|
|
|
|
|
|
kexec \
|
2016-07-25 14:08:53 +00:00
|
|
|
-l \
|
2016-10-28 08:57:11 +00:00
|
|
|
--module "${KERNEL} root=LABEL=root rhgb" \
|
2016-10-25 18:42:36 +00:00
|
|
|
--module "${INITRD}" \
|
2016-08-05 16:25:35 +00:00
|
|
|
--command-line "no-real-mode reboot=no console=vga dom0_mem=min:1024M dom0_mem=max:4096M" \
|
2016-10-25 18:42:36 +00:00
|
|
|
"${XEN}"
|
|
|
|
|
|
|
|
|
|
|
|
echo "Ready to start Xen: run 'kexec -e' to execute it"
|