From 4094224b69b14771eca61166d4988bd5e07c2428 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 3 Apr 2023 12:59:30 +0100 Subject: [PATCH] Force fuse-overlayfs storage (faster than vfs) --- roles/home-cli/files/storage.conf | 5 +++++ roles/home-cli/tasks/dirs.yml | 4 ++++ roles/home-cli/tasks/dotfiles.yml | 4 ++++ 3 files changed, 13 insertions(+) create mode 100644 roles/home-cli/files/storage.conf diff --git a/roles/home-cli/files/storage.conf b/roles/home-cli/files/storage.conf new file mode 100644 index 0000000..0b1afb0 --- /dev/null +++ b/roles/home-cli/files/storage.conf @@ -0,0 +1,5 @@ +[storage] +driver = "overlay" + +[storage.options.overlay] +mount_program = "/usr/bin/fuse-overlayfs" diff --git a/roles/home-cli/tasks/dirs.yml b/roles/home-cli/tasks/dirs.yml index 30da65e..6487cba 100644 --- a/roles/home-cli/tasks/dirs.yml +++ b/roles/home-cli/tasks/dirs.yml @@ -59,3 +59,7 @@ ansible.builtin.file: path: "{{ ansible_env.XDG_CONFIG_HOME }}/powershell" state: directory +- name: Create $XDG_CONFIG_HOME/containers + ansible.builtin.file: + path: "{{ ansible_env.XDG_CONFIG_HOME }}/containers" + state: directory diff --git a/roles/home-cli/tasks/dotfiles.yml b/roles/home-cli/tasks/dotfiles.yml index 82f5d0f..da973cf 100644 --- a/roles/home-cli/tasks/dotfiles.yml +++ b/roles/home-cli/tasks/dotfiles.yml @@ -75,3 +75,7 @@ ansible.builtin.copy: src: user-dirs.dirs dest: "{{ ansible_env.XDG_CONFIG_HOME }}/user-dirs.dirs" +- name: Create $XDG_CONFIG_HOME/containers/storage.conf + ansible.builtin.copy: + src: storage.conf + dest: "{{ ansible_env.XDG_CONFIG_HOME }}/containers/storage.conf"