Commit 83109b6b authored by Anton Midyukov's avatar Anton Midyukov

syslinux: Add grub-pc compatibility

Directory syslinux can exist if using memtest feature.
parent 1e2a05d9
...@@ -3,9 +3,13 @@ ...@@ -3,9 +3,13 @@
# when the image sizes are finally known # when the image sizes are finally known
# NB: install2_size, live_size, rescue_size get defined here # NB: install2_size, live_size, rescue_size get defined here
cd "$WORKDIR" # validate just in case (see also stage1 Makefile)
if [ -z "$(find $WORKDIR/syslinux/*.cfg)" ]; then
echo "Warning: syslinux/*.cfg not found"
exit 0
fi
[ -d "syslinux" ] || exit 0 cd "$WORKDIR"
# apply size census while looking for potential squashfs images # apply size census while looking for potential squashfs images
find -maxdepth 1 -type f -size +1M \ find -maxdepth 1 -type f -size +1M \
......
...@@ -3,9 +3,13 @@ ...@@ -3,9 +3,13 @@
# to add rescue image hash, if any # to add rescue image hash, if any
# (for propagator in forensic mode) # (for propagator in forensic mode)
cd "$WORKDIR" # validate just in case (see also stage1 Makefile)
if [ -z "$(find $WORKDIR/syslinux/*.cfg)" ]; then
echo "Warning: syslinux/*.cfg not found"
exit 0
fi
[ -d "syslinux" ] || exit 0 cd "$WORKDIR"
grep -qs "@rescue_hash@" syslinux/*.cfg || exit 0 grep -qs "@rescue_hash@" syslinux/*.cfg || exit 0
......
#!/bin/sh #!/bin/sh
[ -d "$WORKDIR/syslinux" ] || exit 0 # validate just in case (see also stage1 Makefile)
if [ ! -f "$WORKDIR/syslinux/$GLOBAL_BOOTLOADER.cfg" ]; then
echo "Warning: syslinux/*.cfg not found"
exit 0
fi
gfxboot_datadir=/usr/share/gfxboot gfxboot_datadir=/usr/share/gfxboot
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment