Skip to content

Instantly share code, notes, and snippets.

@joemiller
Created June 10, 2014 18:01
Show Gist options
  • Select an option

  • Save joemiller/d64efa3e10000cadda81 to your computer and use it in GitHub Desktop.

Select an option

Save joemiller/d64efa3e10000cadda81 to your computer and use it in GitHub Desktop.
fix extlinux bootloader on rackspace fedora-20 image (may 28th version: 5596255c-e9ae-48da-866c-9bbdd345ed39)
#!/bin/sh
if file -s /dev/xvda | grep -i syslinux ; then
echo "detected SYSLINUX / EXTLINUX bootloader"
[ -f "/boot/extlinux.conf" ] && rm -f /boot/extlinux.conf && extlinux --update /boot/extlinux
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment