aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chapter10/fstab.sh2
-rwxr-xr-xlfs.sh1
2 files changed, 2 insertions, 1 deletions
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=$?