--- - name: "Install syslinux bootloader" template: src: "templates/etc/update-extlinux.conf.j2" dest: "/mnt/etc/update-extlinux.conf" mode: "0644" - name: "Install bootloader in MBR. This is how `setup-disk` does it." shell: "cat /mnt/usr/share/syslinux/mbr.bin > {{ disk_device }}" - name: "Install syslinux configuration into /boot using chroot." shell: "PATH=/usr/bin:/usr/sbin:/bin:/sbin chroot /mnt /sbin/extlinux --install /boot" - name: "Update configuration" shell: "PATH=/usr/bin:/usr/sbin:/bin:/sbin chroot /mnt /sbin/update-extlinux" - name: "Generate initramfs." shell: "PATH=/usr/bin:/usr/sbin:/bin:/sbin chroot /mnt /bin/sh -c 'ls /lib/modules | xargs /sbin/mkinitfs -K'"