diff --git a/tasks/bootloader.yml b/tasks/bootloader.yml index a3743c3..c2208a0 100644 --- a/tasks/bootloader.yml +++ b/tasks/bootloader.yml @@ -4,11 +4,11 @@ src: "templates/update-extlinux.conf.j2" dest: "/mnt/etc/update-extlinux.conf" mode: "0644" -- name: "Update configuration" - shell: "PATH=/usr/bin:/usr/sbin:/bin:/sbin chroot /mnt /sbin/update-extlinux" - 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'"