Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
add buildHook-HybridImage.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Piethein Strengholt committed Nov 11, 2011
1 parent 4a26135 commit a5e65ca
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
43 changes: 43 additions & 0 deletions 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/

2 changes: 1 addition & 1 deletion SDK/buildWithOptions.sh
Expand Up @@ -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
;;
Expand Down

0 comments on commit a5e65ca

Please sign in to comment.