summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2017-05-05 11:51:16 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2017-05-05 11:51:16 +0200
commit9c48cff95c3a9281bcbc06cad32526f834616219 (patch)
tree5293006b5a9f7ece2dfb9e367279b258cdbb9900
parent14bfcd8854f13eadf94350e55035a63228a77736 (diff)
downloadeficast-9c48cff95c3a9281bcbc06cad32526f834616219.tar.gz
eficast-9c48cff95c3a9281bcbc06cad32526f834616219.tar.bz2
eficast-9c48cff95c3a9281bcbc06cad32526f834616219.zip
Add comments + add syslinux (for mbr boot compat)
-rwxr-xr-xmake-boot-image.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/make-boot-image.sh b/make-boot-image.sh
index 5153ffc..0ba8ce8 100755
--- a/make-boot-image.sh
+++ b/make-boot-image.sh
@@ -56,9 +56,9 @@ codename=$(lsb_release -sc || true)
if [ "x$codename" != "xjessie" ]
then cat >&2 <<EOT
This script is tested only on Debian 8 (aka jessie).
-The fastest way to have the right environnment is :
+The fastest way to have the right environment is :
* download debian live http://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-8.5.0-amd64-standard.iso
- * burn it or copy it on a USB stick, alternatively launch a VM with it
+ * burn it or copy it on a USB stick (as raw, with "cp XX.iso /dev/sdX"), alternatively launch a VM with it
* run this script from there
EOT
exit 1
@@ -71,7 +71,7 @@ fi
if [ ! -e "$WORKDIR/apt-done" ]
then $ROOTCMD apt-get update
# Dependencies of this script (assuming default debian install or live)
- $ROOTCMD apt-get install wget libncurses5-dev coreutils
+ $ROOTCMD apt-get install wget libncurses5-dev coreutils syslinux
# Dependencies for kernel building
$ROOTCMD apt-get build-dep linux-source
# Dependancies for kernel tools
@@ -536,6 +536,7 @@ chmod +x "$WORKDIR/initrd/bin/sinkdo"
# Copy / run result EFI file #
##############################
+# Workaround : direct kernel boot with libvirt/virt-manager do a chown on BOOTX64.EFI and cp won't overwrite
[ -f "$OUTDIR/BOOTX64.EFI" ] && rm -f "$OUTDIR/BOOTX64.EFI"
cp "$WORKDIR/kernel/arch/x86/boot/bzImage" "$OUTDIR/BOOTX64.EFI"