X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=grml-live;h=5c55828ca43cc651a3b16cc9b057b2b3e297ce20;hp=477bdeda1ab62a837e8baa85890b758f894b47d9;hb=9e127ba228cfbcb840400ee5b79f6adf12a3db0b;hpb=3423b966683d3e8317ca84d0763576745bffa4b5 diff --git a/grml-live b/grml-live index 477bded..5c55828 100755 --- a/grml-live +++ b/grml-live @@ -353,6 +353,11 @@ fi # does this suck? YES! if [ -n "$SUITE" ] ; then + # /usr/share/debootstrap/scripts/unstable does not exist, instead use 'sid': + case $SUITE in + unstable) SUITE='sid' ;; + esac + DIST=" etch\| stable\| lenny\| squeeze\| testing\| sid\| unstable" sed "s/\(deb .\+\)\([ \t]*\) $DIST\([ \t]*\)\(main \)/\1\2 $SUITE \3\4/" /etc/grml/fai/apt/sources.list | sponge /etc/grml/fai/apt/sources.list for file in "$LIVE_CONF" "$CONFIG" "$LOCAL_CONFIG" ; do @@ -536,7 +541,14 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then cp ${TEMPLATE_DIRECTORY}/boot/isolinux/* "$BUILD_OUTPUT"/boot/isolinux/ if [ -z "$NO_ADDONS" ] ; then - cp ${TEMPLATE_DIRECTORY}/boot/addons/* "$BUILD_OUTPUT"/boot/addons/ + # copy only files so we can handle bsd4grml on its own + for file in ${TEMPLATE_DIRECTORY}/boot/addons/* ; do + test -f $file && cp $file "$BUILD_OUTPUT"/boot/addons/ + done + + if [ -z "$NO_ADDONS_BSD4GRML" ] ; then + cp -a ${TEMPLATE_DIRECTORY}/boot/addons/bsd4grml "$BUILD_OUTPUT"/boot/addons/ + fi fi if ! [ -d "${BUILD_OUTPUT}/boot/grub" ] ; then @@ -617,9 +629,9 @@ fi if [ -f "$BUILD_OUTPUT"/live/${GRML_NAME}.squashfs -a -z "$UPDATE" -a -z "$BUILD_ONLY" -a -z "$BUILD_DIRTY" ] ; then log "$BUILD_OUTPUT/live exists already, skipping stage 'squashfs'" ewarn "$BUILD_OUTPUT/live exists already, skipping stage 'squashfs'" ; eend 0 -elif [ -f "$BUILD_OUTPUT"/live/${GRML_NAME}.squashfs -a -n "$SKIP_MKSQUASHFS" ] ; then - log "$BUILD_OUTPUT/live exists already, skipping stage 'squashfs' as requested" - ewarn "$BUILD_OUTPUT/live exists already, skipping stage 'squashfs' as requested" ; eend 0 +elif [ -n "$SKIP_MKSQUASHFS" ] ; then + log "Skipping stage 'squashfs' as requested via option -q" + ewarn "Skipping stage 'squashfs' as requested via option -q" ; eend 0 else [ -d "$BUILD_OUTPUT"/live ] || mkdir "$BUILD_OUTPUT"/live # make sure we don't leave (even an empty) base.tgz: