From adc38b61f06689aba253e9873142d52b9eb1b9b3 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Thu, 22 Aug 2013 21:06:49 -0400 Subject: [PATCH] Mount boot partition in /mnt/boot instead of /boot --- config/sysinfos.default | 3 +++ stage1/create-config-files | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/sysinfos.default b/config/sysinfos.default index a1140b3..281e3be 100644 --- a/config/sysinfos.default +++ b/config/sysinfos.default @@ -25,7 +25,10 @@ MAKEJOBS=2 # This is relevant only for stage 0 and 1. LFS="/mnt/hvlinux" #LFS_PARTITION="/dev/sdb7" + +# Partition where bootloader resides #BOOT_PARTITION="/dev/sdb1" + #SWAP_PARTITION="/dev/sdb2" # /tmp is now mounted with tmpfs. diff --git a/stage1/create-config-files b/stage1/create-config-files index 1dbb9be..8fa08ce 100755 --- a/stage1/create-config-files +++ b/stage1/create-config-files @@ -9,7 +9,8 @@ cat > ${LFS}/etc/fstab << "EOF" EOF if [ -n "${BOOT_PARTITION}" ]; then - echo "${BOOT_PARTITION} /boot auto defaults 0 0" >> ${LFS}/etc/fstab + install -v -m755 -d ${LFS}/mnt/boot + echo "${BOOT_PARTITION} /mnt/boot auto defaults 0 0" >> ${LFS}/etc/fstab fi if [ -n "${SWAP_PARTITION}" ]; then echo "${SWAP_PARTITION} none swap sw 0 0" >> ${LFS}/etc/fstab -- 2.20.1