From 4bfc125f8b0dd7eb2f634305c06ad0354afbed2b Mon Sep 17 00:00:00 2001 From: William Harrington Date: Tue, 13 Apr 2021 18:50:54 -0500 Subject: Add LFS_SWAP environment varialbe and use it in fstab. --- chapter10/fstab.sh | 2 +- lfs.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chapter10/fstab.sh b/chapter10/fstab.sh index 2173c25..c1668fb 100644 --- a/chapter10/fstab.sh +++ b/chapter10/fstab.sh @@ -8,7 +8,7 @@ cat << EOF > /etc/fstab # order ${LFS_DISK}${LFS_PART} / ${LFS_FS,,} defaults 1 1 -/dev/sda2 swap swap pri=1 0 0 +${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 diff --git a/lfs.sh b/lfs.sh index 6a38b08..6f916ee 100755 --- a/lfs.sh +++ b/lfs.sh @@ -263,6 +263,7 @@ sudo chroot "${LFS}" /usr/bin/env -i \ LFS_DISK="${LFS_DISK}" \ LFS_PART="${LFS_PART}" \ LFS_FS="${LFS_FS}" \ + LFS_SWAP="${LFS_SWAP}" \ /bin/bash --login +h -c "/sources/insidechroot.sh 10" retval=$? -- cgit v1.2.3-54-g00ecf