diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-23 22:11:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 22:11:33 +0200 |
commit | 4e0f2e4c6a648343a8132f1eadc0cdb89bda8c4a (patch) | |
tree | 21b2dbe849d325099fd2e32418b56b7ddad23edc /roles/unmount-all/tasks/main.yml | |
parent | 88832a6324731f9357aa301adc70ef8448d6bc9f (diff) | |
parent | 6f037298fc0c48f2ffb4ba0780f1cfdbb1fa4acf (diff) | |
download | vyos-vm-images-4e0f2e4c6a648343a8132f1eadc0cdb89bda8c4a.tar.gz vyos-vm-images-4e0f2e4c6a648343a8132f1eadc0cdb89bda8c4a.zip |
Merge pull request #4 from zdc/fix-qemu-01
Multiple fixes and improvements in QEMU image building
Diffstat (limited to 'roles/unmount-all/tasks/main.yml')
-rw-r--r-- | roles/unmount-all/tasks/main.yml | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/roles/unmount-all/tasks/main.yml b/roles/unmount-all/tasks/main.yml index 1ff6daa..253ffe9 100644 --- a/roles/unmount-all/tasks/main.yml +++ b/roles/unmount-all/tasks/main.yml @@ -16,24 +16,6 @@ fstype: none state: absent -- name: Unmount {{ vyos_install_root }}/sys, {{ vyos_install_root }}/proc, {{ vyos_install_root }}/dev - become: true - mount: - name: "{{ vyos_install_root }}/{{ item }}" - src: "/{{ item }}" - fstype: none - state: unmounted - with_items: [ 'sys', 'proc', 'dev' ] - -- name: Unmount {{ vyos_install_root }}/sys, {{ vyos_install_root }}/proc, {{ vyos_install_root }}/dev - become: true - mount: - name: "{{ vyos_install_root }}/{{ item }}" - src: "/{{ item }}" - fstype: none - state: absent - with_items: [ 'sys', 'proc', 'dev' ] - - name: Unmount {{ vyos_install_root }} become: true mount: @@ -58,6 +40,10 @@ fstype: "{{ vyos_root_fstype }}" state: absent +- name: Detach {{ vyos_target_drive }} + become: true + command: "losetup -d {{ vyos_target_drive }}" + - name: Unmount {{ vyos_cd_squash_root }} become: true mount: |