diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-13 18:50:54 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-13 18:50:54 -0500 |
commit | 4bfc125f8b0dd7eb2f634305c06ad0354afbed2b (patch) | |
tree | 0f882149678c2fc3efdae652cb2e6d68fa8ed65e | |
parent | eddac80ad33525714d779914b2ce3650b483244a (diff) |
Add LFS_SWAP environment varialbe and use it in fstab.
-rw-r--r-- | chapter10/fstab.sh | 2 | ||||
-rwxr-xr-x | lfs.sh | 1 |
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 @@ -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=$? |