From a5e65cabc04b93635e2fd24acd1abddf1c8bc946 Mon Sep 17 00:00:00 2001 From: Piethein Strengholt Date: Fri, 11 Nov 2011 11:46:13 +0100 Subject: [PATCH] add buildHook-HybridImage.sh --- SDK/buildHook-HybridImage.sh | 43 ++++++++++++++++++++++++++++++++++++ SDK/buildWithOptions.sh | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100755 SDK/buildHook-HybridImage.sh diff --git a/SDK/buildHook-HybridImage.sh b/SDK/buildHook-HybridImage.sh new file mode 100755 index 0000000..42e6ef6 --- /dev/null +++ b/SDK/buildHook-HybridImage.sh @@ -0,0 +1,43 @@ +#!/bin/sh + +# Copyright (C) 2005-2008 Team XBMC +# http://www.xbmc.org +# +# This Program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This Program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with XBMC; see the file COPYING. If not, write to +# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +# http://www.gnu.org/copyleft/gpl.html + +rm -rf $WORKPATH/buildDEBs/build-installer.sh +rm -rf $WORKPATH/buildDEBs/build-live-boot.sh +rm -rf $WORKPATH/buildDEBs/build-live-config.sh + +rm -rf $WORKPATH/copyFiles-installer.sh +rm -rf $WORKPATH/copyFiles-liveBoot.sh + +# Set the output to be an USBHDD disk image +sed -i "s/BINARY_IMAGES=iso/BINARY_IMAGES=iso-hybrid/g" $WORKPATH/buildLive/auto/config + +# We have to use syslinux in this case +sed -i "s/BOOT_LOADER=grub2/BOOT_LOADER=syslinux/g" $WORKPATH/buildLive/auto/config + +# We need casper in this case +sed -i "s/INITRAMFS=live-boot/INITRAMFS=casper/g" $WORKPATH/buildLive/auto/config + +# No installer +sed -i "s/INSTALLER=true/INSTALLER=false/g" $WORKPATH/buildLive/auto/config + +# No grub +sed -i "s/grub-pc/#grub-pc/g" $WORKPATH/buildLive/Files/config/package-lists/packages.list.chroot +rm -rf $WORKPATH/buildLive/Files/config/binary_grub/ + diff --git a/SDK/buildWithOptions.sh b/SDK/buildWithOptions.sh index c54a376..87287c2 100755 --- a/SDK/buildWithOptions.sh +++ b/SDK/buildWithOptions.sh @@ -95,7 +95,7 @@ do shift ;; -i|--interactive) - echo "Enable interactive mode (opens a chell in chroot after package configuring)" + echo "Enable option: Interactive mode (opens a chell in chroot after package configuring)" export SDK_CHROOTSHELL=1 shift ;;