LFS_PARTITION="/dev/sda3"
BOOT_PARTITION="/dev/sda1"
SWAP_PARTITION="/dev/sda2"
+TMP_PARTITION_SIZE="10G"
# New user to create
REGUSER="hugo"
# which we are in the process of mounting).
cmd_run_log_box "Mounting /proc" mount -n /proc
cmd_run_log_box "Mounting /sys" mount /sys
+ cmd_run_log_box "Mounting /tmp" mount /tmp
cmd_run_log_box "Mounting /run" mount /run
;;
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /run tmpfs defaults 0 0
+tmpfs /tmp tmpfs defaults,mode=1777,size=_TMP_PARTITION_SIZE_ 0 0
devpts /dev/pts devpts gid=4,mode=620 0 0
shm /dev/shm tmpfs defaults 0 0
/dev/dvd /media/dvd auto noauto,ro,users
EOF
+sed -i -e "s!_TMP_PARTITION_SIZE_!${TMP_PARTITION_SIZE}!g" ${LFS}/etc/fstab
+
echo "Creating basic /etc/profile and /etc/profile.d"
install -v -m755 -d ${LFS}/etc/profile.d
cat > ${LFS}/etc/profile << "EOF"