aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-12 17:38:38 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-12 17:38:38 -0500
commitd2455629f6b713773331645dfe932d6a52cb758b (patch)
tree044b48837a072b7749c860f25688ecfc82c454cc
parenteb56ecd45379868a953bcbc3bcdbf79d79596189 (diff)
Add Chapter 10 fstab script.
-rw-r--r--chapter10/fstab.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/chapter10/fstab.sh b/chapter10/fstab.sh
new file mode 100644
index 0000000..7e8aa05
--- /dev/null
+++ b/chapter10/fstab.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+cat << EOF > /etc/fstab
+# Begin /etc/fstab
+
+# file system mount-point type options dump fsck
+# order
+
+${LFS_DISK}${LFS_PART} / ${LFS_FS,,} defaults 1 1
+/dev/sda2 swap swap pri=1 0 0
+proc /proc proc nosuid,noexec,nodev 0 0
+sysfs /sys sysfs nosuid,noexec,nodev 0 0
+devpts /dev/pts devpts gid=5,mode=620 0 0
+tmpfs /run tmpfs defaults 0 0
+devtmpfs /dev devtmpfs mode=0755,nosuid 0 0
+
+# End /etc/fstab
+EOF