From: Hugo Villeneuve Date: Fri, 23 Aug 2013 01:06:49 +0000 (-0400) Subject: Mount boot partition in /mnt/boot instead of /boot X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=adc38b61f06689aba253e9873142d52b9eb1b9b3;p=hvlinux.git Mount boot partition in /mnt/boot instead of /boot --- 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