printf ' wireless-essid "%s"\n' "$$wifi" >>$@
endif
endif
+
+.PHONY: _fstab
+
+ifdef _fstab
+ _config: ${CFGROOT}/etc/fstab
+ export _fstab
+
+else
+ ifdef fsuuid
+ define _fstab :=
+UUID=${fsuuid} / btrfs auto,rw,subvol=${release} 0 0
+UUID=${fsuuid} /home btrfs auto,nofail,rw,subvol=home 0 0
+UUID=${fsuuid} /mnt/fsroot btrfs auto,nofail,rw 0 0
+LABEL=SWAP swap swap auto,nofail,sw 0 0
+LABEL=EFIBOOT /boot/efi vfat auto,nofail,ro 0 0
+endef
+ _config: ${CFGROOT}/etc/fstab
+ export _fstab
+
+ endif
+endif
+
+${CFGROOT}/etc/fstab: ${CFGROOT}
+ printf '%s' "$${_fstab}" >"$@"