blob: a841b0f38b903a9c39e846c630d3a8734fc0062c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Description: Include some information in the header of fstab
Author: Unit 193 <unit193@ubuntu.com>
Last-Update: 2018-01-28
--- arch-install-scripts-15.orig/genfstab.in
+++ arch-install-scripts-15/genfstab.in
@@ -133,6 +133,15 @@ if ! mountpoint -q "$root"; then
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
|