ansible-alpine-host/tasks/bootloader.yml

15 lines
710 B
YAML
Raw Permalink Normal View History

2022-04-10 00:29:22 +00:00
---
- name: "Install syslinux bootloader"
template:
2022-06-19 02:48:22 +00:00
src: "templates/etc/update-extlinux.conf.j2"
2022-04-10 00:29:22 +00:00
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"
2022-06-19 01:42:29 +00:00
- name: "Update configuration"
shell: "PATH=/usr/bin:/usr/sbin:/bin:/sbin chroot /mnt /sbin/update-extlinux"
2022-04-10 00:29:22 +00:00
- name: "Generate initramfs."
shell: "PATH=/usr/bin:/usr/sbin:/bin:/sbin chroot /mnt /bin/sh -c 'ls /lib/modules | xargs /sbin/mkinitfs -K'"