summaryrefslogtreecommitdiff
path: root/roles/install-grub/tasks
diff options
context:
space:
mode:
authorcreate with ansible <qxmips@debian10-vyos-build.local>2020-10-08 01:57:50 -0400
committercreate with ansible <qxmips@debian10-vyos-build.local>2020-10-08 02:05:15 -0400
commit8ef65f52418997af40a4afb2df83a8faef09111a (patch)
treecd49c8e9afc8ead4385dfee9e94a33fda2fbce69 /roles/install-grub/tasks
parentcdbd9df937e524c1d89ef74c15a013e79359b9fc (diff)
parent347544107d1cfede98eee4e816e74a9a724a36de (diff)
downloadvyos-vm-images-8ef65f52418997af40a4afb2df83a8faef09111a.tar.gz
vyos-vm-images-8ef65f52418997af40a4afb2df83a8faef09111a.zip
minor fixes
Diffstat (limited to 'roles/install-grub/tasks')
-rw-r--r--roles/install-grub/tasks/main.yml3
1 files changed, 1 insertions, 2 deletions
diff --git a/roles/install-grub/tasks/main.yml b/roles/install-grub/tasks/main.yml
index dfe765d..974f011 100644
--- a/roles/install-grub/tasks/main.yml
+++ b/roles/install-grub/tasks/main.yml
@@ -1,4 +1,3 @@
-
- name: Create GRUB directory
become: true
file:
@@ -35,7 +34,7 @@
- name: Install GRUB in the boot sector of {{ vyos_target_drive }}
become: true
- command: "chroot {{ vyos_install_root }} grub-install --no-floppy --root-directory=/boot {{ vyos_grub_drive }} --force"
+ command: "chroot {{ vyos_install_root }} grub-install --no-floppy --target=i386-pc --root-directory=/boot {{ loop_device.stdout }} --force"
args:
creates: "{{ vyos_install_root }}/boot/grub/grubenv"