diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-19 22:51:55 +0000 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-19 22:51:55 +0000 |
commit | 2e2f8f359c865382cbc138e4572ab9a63d736775 (patch) | |
tree | f76a820e8f39d46926ad0e6a5dc8f478ae429615 /chapter10/fstab.sh | |
parent | e4633200ea4609597950f991ce43f1a4d9f3cfbb (diff) | |
parent | 6b11f48c20f4411008c28ccb86463a98c0f06fef (diff) |
Merge branch 'chapter10'
Diffstat (limited to 'chapter10/fstab.sh')
-rw-r--r-- | chapter10/fstab.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chapter10/fstab.sh b/chapter10/fstab.sh new file mode 100644 index 0000000..c1668fb --- /dev/null +++ b/chapter10/fstab.sh @@ -0,0 +1,19 @@ +#!/bin/bash +set -e + +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 +${LFS_SWAP} 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 |