summaryrefslogtreecommitdiff
path: root/roles/install-grub/tasks
diff options
context:
space:
mode:
authorqxmips <13249609+qxmips@users.noreply.github.com>2020-10-08 16:06:42 +1000
committerGitHub <noreply@github.com>2020-10-08 16:06:42 +1000
commit129c631f525f8580c1692600247fe36824559d2c (patch)
treecd49c8e9afc8ead4385dfee9e94a33fda2fbce69 /roles/install-grub/tasks
parent347544107d1cfede98eee4e816e74a9a724a36de (diff)
parent8ef65f52418997af40a4afb2df83a8faef09111a (diff)
downloadvyos-vm-images-release-0.1.tar.gz
vyos-vm-images-release-0.1.zip
Merge pull request #9 from vyos/temprelease-0.1
minor fixes
Diffstat (limited to 'roles/install-grub/tasks')
-rw-r--r--roles/install-grub/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/install-grub/tasks/main.yml b/roles/install-grub/tasks/main.yml
index a711b5e..974f011 100644
--- a/roles/install-grub/tasks/main.yml
+++ b/roles/install-grub/tasks/main.yml
@@ -18,7 +18,14 @@
args:
warn: no
+- name: Create efi directory
+ become: true
+ file:
+ path: "{{ vyos_install_root }}/boot/grub"
+ state: directory
+
- name: Mount EFI
+ become: true
mount:
src: "{{ vyos_target_drive }}p2"
path: "{{ vyos_install_root }}/boot/efi"
@@ -43,6 +50,7 @@
mode: 0644
- name: Unmount EFI
+ become: true
mount:
src: "{{ vyos_target_drive }}p2"
path: "{{ vyos_install_root }}/boot/efi"