[Debian-live-changes] r2379 - dists/trunk/live-helper/helpers
daniel at alioth.debian.org
daniel at alioth.debian.org
Tue Jul 3 08:25:33 UTC 2007
Author: daniel
Date: 2007-07-03 08:25:32 +0000 (Tue, 03 Jul 2007)
New Revision: 2379
Modified:
dists/trunk/live-helper/helpers/lh_binary_yaboot
Log:
Modified: dists/trunk/live-helper/helpers/lh_binary_yaboot
===================================================================
--- dists/trunk/live-helper/helpers/lh_binary_yaboot 2007-07-03 00:06:06 UTC (rev 2378)
+++ dists/trunk/live-helper/helpers/lh_binary_yaboot 2007-07-03 08:25:32 UTC (rev 2379)
@@ -244,12 +244,20 @@
LINUX_INSTALL="`echo ${LINUX_INSTALL} | sed -e 's/binary//g' -e 's#//#/#g'`"
case "${LIVE_BINARY_IMAGES}" in
- iso)
+ iso|usb-hdd)
# Copying yaboot
mkdir -p binary/yaboot
cp chroot/usr/lib/yaboot/yaboot binary/yaboot
cp -r "${LIVE_TEMPLATES}"/yaboot/* binary/yaboot
+ if [ "${LIVE_BINARY_IMAGES}" = "usb-hdd" ]
+ then
+ mv binary/yaboot/yaboot.conf binary/yaboot/yaboot.conf.tmp
+ echo "root=/dev/ram" > binary/yaboot/yaboot.conf
+ cat binary/yaboot/yaboot.conf.tmp >> binary/yaboot/yaboot.conf
+ rm -f binary/yaboot/yaboot.conf.tmp
+ fi
+
# Configure yaboot templates
sed -i -e "s#LINUX_LIVE#${LINUX_LIVE}#" -e "s#LINUX_INSTALL#${LINUX_INSTALL}#" binary/yaboot/yaboot.conf
sed -i -e "s#LIVE_BOOTAPPEND#${LIVE_BOOTAPPEND}#" binary/yaboot/yaboot.conf
More information about the Debian-live-changes
mailing list