From: Otavio Salvador <[EMAIL PROTECTED]>

We need to set a disk volume specificy for each derivative we produce,
hence this patch. It keeps backward compatibility with previous
versions of live-package.
---

 src/scripts/02defaults.sh |    6 ++++++
 src/scripts/21image.sh    |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/scripts/02defaults.sh b/src/scripts/02defaults.sh
index a5d8aef..5014024 100644
--- a/src/scripts/02defaults.sh
+++ b/src/scripts/02defaults.sh
@@ -254,4 +254,10 @@ Defaults ()
        then
                LIVE_SOURCE="no"
        fi
+
+       # Set disk volume
+       if [ -z "${LIVE_DISK_VOLUME}" ]
+       then
+               LIVE_DISK_VOLUME="Debian Live `date +%Y%m%d`"
+       fi
 }
diff --git a/src/scripts/21image.sh b/src/scripts/21image.sh
index e9e2546..0dab6f2 100644
--- a/src/scripts/21image.sh
+++ b/src/scripts/21image.sh
@@ -296,13 +296,13 @@ Mkisofs ()
                        if [ "${LIVE_ARCHITECTURE}" = "amd64" ] || [ 
"${LIVE_ARCHITECTURE}" = "i386" ]
                        then
                                # Create image
-                               mkisofs -A "Debian Live" -p "Debian Live; 
http://debian-live.alioth.debian.org/; 
[email protected]" -publisher "Debian Live; 
http://debian-live.alioth.debian.org/; 
[email protected]" -o 
"${LIVE_ROOT}"/"${LIVE_IMAGE}"binary.iso -r -J -l -V "Debian Live `date 
+%Y%m%d`" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot 
-boot-load-size 4 -boot-info-table "${LIVE_ROOT}"/binary ${LIVE_INCLUDE_IMAGE}
+                               mkisofs -A "Debian Live" -p "Debian Live; 
http://debian-live.alioth.debian.org/; 
[email protected]" -publisher "Debian Live; 
http://debian-live.alioth.debian.org/; 
[email protected]" -o 
"${LIVE_ROOT}"/"${LIVE_IMAGE}"binary.iso -r -J -l -V "${LIVE_DISK_VOLUME}" -b 
isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 
-boot-info-table "${LIVE_ROOT}"/binary ${LIVE_INCLUDE_IMAGE}
                        else
                                echo "W: Bootloader on your architecture not 
yet supported (Continuing in 5 seconds)."
                                sleep 5
 
                                # Create image
-                               mkisofs -A "Debian Live" -p "Debian Live; 
http://debian-live.alioth.debian.org/; 
[email protected]" -publisher "Debian Live; 
http://debian-live.alioth.debian.org/; 
[email protected]" -o 
"${LIVE_ROOT}"/"${LIVE_IMAGE}"binary.iso -r -J -l -V "Debian Live `date 
+%Y%m%d`" "${LIVE_ROOT}"/binary ${LIVE_INCLUDE_IMAGE}
+                               mkisofs -A "Debian Live" -p "Debian Live; 
http://debian-live.alioth.debian.org/; 
[email protected]" -publisher "Debian Live; 
http://debian-live.alioth.debian.org/; 
[email protected]" -o 
"${LIVE_ROOT}"/"${LIVE_IMAGE}"binary.iso -r -J -l -V "${LIVE_DISK_VOLUME}" 
"${LIVE_ROOT}"/binary ${LIVE_INCLUDE_IMAGE}
                        fi
                        ;;
 

_______________________________________________
Debian-live-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel

Reply via email to