ipkg ${GRUB}
ipkg -m acnb ${DHCP}
-rscr once "Installing HV-utilities" install-hv-utilities
+rscr once "Installing HV-utilities" install-hv-utilities
+rscr once "Installing bootscripts" install-bootscripts
+rscr once "Creating default config files" create-config-files
+
rscr mult "Compressing man pages" compressdoc
-rscr once "Installing bootscripts" install-bootscripts
#rscr mult "Stripping" stripping
echo "Total build time: $(get_total_build_time ${LFS_LOG_FILE})h"
hvconfig_pre()
{
+ # To avoid a problem with regenerating the man pages when not needed,
+ # first rewrite a file that just points to another man page:
+ echo '.so man5/modprobe.conf.5' > ${LFS_TMP}/${PACKAGE}/modprobe.d.5
+
# --enable-zlib-dynamic: To handle compressed kernel modules.
CONFIGURE_OPTS="\
- ${CONFIGURE_OPTS} \
- --enable-zlib-dynamic \
- --mandir=/usr/share/man"
+ --prefix=/usr \
+ --bindir=/bin \
+ --sbindir=/sbin \
+ --sysconfdir=/etc \
+ --enable-zlib-dynamic"
}
hvbuild()
{
- make -j ${MAKEJOBS} DOCBOOKTOMAN=""
+ make
# INSTALL=install
# Normally, make install will not install the binaries if they already
chown -v root:root /var
chown -v root:root /var/log
+# Removing /tools from PATH:
+SED_REP='/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin'
+sed -i -e "s!^\(PATH=\).*tools.*!\1${SED_REP}!" /etc/profile
+
+# Removing /tools directory
+if [ -d /tools ]; then
+ mv /tools /tools.to.remove.after.stage2
+fi
+
ldconfig
exit $?