aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/include_header.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/include_header.patch')
-rw-r--r--debian/patches/include_header.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/include_header.patch b/debian/patches/include_header.patch
new file mode 100644
index 0000000..a1cad6e
--- /dev/null
+++ b/debian/patches/include_header.patch
@@ -0,0 +1,27 @@
+Description: Include some information in the header of fstab
+Author: Unit 193 <unit193@debian.org>
+Forwarded: not-needed
+Last-Update: 2018-01-28
+
+---
+ genfstab.in | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+--- a/genfstab.in 2020-12-19 20:15:13.111711286 -0500
++++ b/genfstab.in 2020-12-19 20:15:13.107711321 -0500
+@@ -138,6 +138,15 @@
+ fi
+
+ # handle block devices
++cat <<EOF
++# /etc/fstab: static file system information.
++#
++# Use 'blkid' to print the universally unique identifier for a
++# device; this may be used with UUID= as a more robust way to name devices
++# that works even if disks are added and removed. See fstab(5).
++#
++EOF
++printf "%-15s %-15s %-7s %-15s %-7s %s\n" '# <file system>' '<mount point>' '<type>' '<options>' '<dump>' '<pass>'
+ findmnt -Recvruno SOURCE,TARGET,FSTYPE,OPTIONS,FSROOT "$root" |
+ while read -r src target fstype opts fsroot; do
+ if (( !pseudofs )) && fstype_is_pseudofs "$fstype"; then