From f57d9c67bdb54816cb3be199008daaf9adf2c468 Mon Sep 17 00:00:00 2001 From: Thomas Bittner Date: Sat, 9 Jan 2021 13:18:12 +0100 Subject: [PATCH] Changed fstab generation * Using shell module instead of command to generate fstab. Command module does not support stdout redirection. Therefor the genfstab script did not work. This is now changed to the shell module which support stdout redirection. Therefore, the different mounted devices do not have to be entered into the fstab manually but will be added by genfstab. * Additionally, added a warn=false to the curl command --- site.yml | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/site.yml b/site.yml index 6bdc7eb..6d04022 100644 --- a/site.yml +++ b/site.yml @@ -133,6 +133,7 @@ update_cache: yes - name: Use rankmirrors to filter the fastest mirrors that support HTTPS shell: curl -s "https://www.archlinux.org/mirrorlist/?country=US&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 - > /etc/pacman.d/mirrorlist + warn=false tags: - mirrors - name: Run pacstrap @@ -140,37 +141,8 @@ tags: - pacstrap - name: Generate fstab - block: - - name: Generate blank fstab - command: genfstab -U /mnt >> /mnt/etc/fstab - - name: Add root volume to fstab - mount: - fstab: /mnt/etc/fstab - path: / - src: UUID={{ root_uuid.stdout }} - fstype: ext4 - opts: defaults - passno: '1' - state: present - - name: Add boot volume to fstab - mount: - fstab: /mnt/etc/fstab - path: /boot - src: UUID={{ boot_uuid.stdout }} - fstype: vfat - opts: defaults - passno: '2' - state: present - - name: Add tmp volume to fstab - mount: - fstab: /mnt/etc/fstab - path: /tmp - src: /dev/mapper/tmp - fstype: tmpfs - opts: defaults - state: present - tags: - - fstab + shell: + cmd: genfstab -U /mnt >> /mnt/etc/fstab - name: Add tmp volume to crypttab crypttab: path: /mnt/etc/crypttab