From f36a90be7ca64136f034b43cfe3cb617aeef8c58 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Wed, 21 Sep 2016 20:11:50 +0200
Subject: [PATCH] roles/install_arch: Remove genfstab

Flags for the root filesystem should be specified on the kernel command
line, e.g. rootflags=noatime,discard,compress=lzo . I'd argue having an
entry for / in fstab is harmful since you shouldn't boot with the wrong
flags in the first place.

Since there are no other filesystems, genfstab becomes useless.
---
 roles/install_arch/tasks/main.yml | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/roles/install_arch/tasks/main.yml b/roles/install_arch/tasks/main.yml
index 92c995707..31e795a69 100644
--- a/roles/install_arch/tasks/main.yml
+++ b/roles/install_arch/tasks/main.yml
@@ -120,9 +120,6 @@
 - name: run mkinitcpio
   command: chroot /mnt mkinitcpio -p linux
 
-- name: generate fstab
-  command: chroot /tmp/root.x86_64 bash -c "genfstab -p -L /mnt >> /etc/fstab"
-
 - name: configure network
   template: src=10-static-ethernet.network.j2 dest=/mnt/etc/systemd/network/10-static-ethernet.network owner=root group=root mode=0644
 
-- 
GitLab