diff options
Diffstat (limited to 'chapter10')
-rw-r--r-- | chapter10/fstab.sh | 38 | ||||
-rw-r--r-- | chapter10/linux.sh | 26 |
2 files changed, 32 insertions, 32 deletions
diff --git a/chapter10/fstab.sh b/chapter10/fstab.sh index c1668fb..f47a691 100644 --- a/chapter10/fstab.sh +++ b/chapter10/fstab.sh @@ -1,19 +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 +#!/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
diff --git a/chapter10/linux.sh b/chapter10/linux.sh index 143c692..6bfaceb 100644 --- a/chapter10/linux.sh +++ b/chapter10/linux.sh @@ -1,13 +1,13 @@ -#!/bin/bash - -make mrproper && -cp -v ../kernelconfig .config && -yes "" | make oldconfig && -make "${MAKEFLAGS}" && -make modules_install && -cp -iv arch/x86_64/boot/bzImage /boot/linux-"${VERSION}" && -cp -iv System.map /boot/System.map-"${VERSION}" && -cp -iv .config /boot/config-"${VERSION}" && - -install -dv /usr/share/doc/linux-"${VERSION}" && -cp -rv Documentation/* /usr/share/doc/linux-"${VERSION}" +#!/bin/bash
+
+make mrproper &&
+cp -v ../kernelconfig .config &&
+yes "" | make oldconfig &&
+make "${MAKEFLAGS}" &&
+make modules_install &&
+cp -iv arch/x86_64/boot/bzImage /boot/linux-"${VERSION}" &&
+cp -iv System.map /boot/System.map-"${VERSION}" &&
+cp -iv .config /boot/config-"${VERSION}" &&
+
+install -dv /usr/share/doc/linux-"${VERSION}" &&
+cp -rv Documentation/* /usr/share/doc/linux-"${VERSION}"
|