X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fcis-grub;h=cb35527f43482d0605430cf40079a7e764ce944d;hb=d7a3a800ee0aa94f1cdd666108d2d515926967b9;hp=02b2bfbfc7a1b5442f881ce02e250299ac89fdc8;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage2/cis-grub b/stage2/cis-grub index 02b2bfb..cb35527 100755 --- a/stage2/cis-grub +++ b/stage2/cis-grub @@ -1,4 +1,6 @@ #!/bin/sh +set -o errexit + # First argument of this script is the package name # Reading system configuration informations, functions and package versions. @@ -6,20 +8,29 @@ source ../sysinfos source ../functions source ../packages-list -# Applying patches (if any) -apply_patches ${1} && +PACKAGE=${1} +shift +CONFIGURE_OPTS=${*} + +# Manually applying patches because of order +apply_patch ${PACKAGE}-use_mmap-1.patch ${PACKAGE} +apply_patch ${PACKAGE}-256byte_inode-1.patch ${PACKAGE} +apply_patch ${PACKAGE}-ext4-1.patch ${PACKAGE} +apply_patch ${PACKAGE}-fixes-1.patch ${PACKAGE} GRUB_STAGE_FILES="/usr/lib/grub/i386-pc" -cd ${LFS_TMP}/${1}-build && -../${1}/configure \ - --prefix=/usr && -make -j ${MAKEJOBS} && -make install && +cd ${LFS_TMP}/${PACKAGE}-build +../${PACKAGE}/configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + ${CONFIGURE_OPTS} +make -j ${MAKEJOBS} +make install -mkdir -p /boot/grub && -cp -a ${GRUB_STAGE_FILES}/stage{1,2} /boot/grub && +mkdir -p /boot/grub +cp -a ${GRUB_STAGE_FILES}/stage{1,2} /boot/grub cp -a ${GRUB_STAGE_FILES}/{e2fs,reiserfs}_stage1_5 /boot/grub -# Return last error exit $? +