aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorlcapriotti <lcapriotti@svn>2010-07-02 07:58:40 +0000
committerlcapriotti <lcapriotti@svn>2010-07-02 07:58:40 +0000
commiteaa8fb0a8fb95a6f1a58257e623c4599de678ef1 (patch)
tree93c2a678f263d759bfdfc0d4fbc1dfbabae9e878 /tools
parent8309618f290c737896235cadf490c95c10f203b0 (diff)
fix grub file mangling, remove unneeded tmpfs setting
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31555 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools')
-rwxr-xr-xtools/XBMCLive/SDK/buildHook-liveOnly.sh25
1 files changed, 9 insertions, 16 deletions
diff --git a/tools/XBMCLive/SDK/buildHook-liveOnly.sh b/tools/XBMCLive/SDK/buildHook-liveOnly.sh
index 55b3fe0ed6..a88aad3ce5 100755
--- a/tools/XBMCLive/SDK/buildHook-liveOnly.sh
+++ b/tools/XBMCLive/SDK/buildHook-liveOnly.sh
@@ -28,22 +28,15 @@ rm $WORKPATH/copyFiles-installer.sh
rm $WORKPATH/buildDEBs/build-installer.sh
-# Minimise flash memory writes
-#
-cat > $WORKPATH/buildLive/Files/chroot_local-hooks/02-setFstab << EOF
-#!/bin/sh
-
-echo ""
-echo "Set fstab entries..."
-echo ""
-
-echo "tmpfs /var/log tmpfs defaults 0 0" > /etc/fstab
-echo "tmpfs /tmp tmpfs defaults 0 0" >> /etc/fstab
-echo "tmpfs /var/tmp tmpfs defaults 0 0" >> /etc/fstab
-EOF
-
chmod +x $WORKPATH/buildLive/Files/chroot_local-hooks/02-setFstab
-
# Modify menu.lst
-sed -i '/## BEGIN INSTALLER ##/,/## END INSTALLER ##/d' $WORKPATH/buildLive/Files/binary_grub/menu.lst
+
+if [ -f $WORKPATH/buildLive/Files/binary_grub/menu.lst ]; then
+ sed -i '/## BEGIN INSTALLER ##/,/## END INSTALLER ##/d' $WORKPATH/buildLive/Files/binary_grub/menu.lst
+fi
+
+# Modify grub.cfg
+if [ -f $WORKPATH/buildLive/Files/binary_grub/grub.cfg ]; then
+ sed -i '/## BEGIN INSTALLER ##/,/## END INSTALLER ##/d' $WORKPATH/buildLive/Files/binary_grub/grub.cfg
+fi