update for changes in live-build 3.0~a20-1

ubuntu/precise
Colin Watson 14 years ago
parent 944188fa4d
commit e4389e439f

@ -18,82 +18,93 @@ case $(hostname --fqdn) in
*) ;; *) ;;
esac esac
mkdir -p config/local-packagelists mkdir -p config/local-tasklists config/local-packagelists
rm -f config/local-packagelists/livecd-rootfs.list rm -f config/local-tasklists/livecd-rootfs.list config/local-packagelists/livecd-rootfs.list
add_task ()
{
local pass="$1"
shift
local task
for task; do
echo "$task" >> "config/local-tasklists/livecd-rootfs.list.$pass"
done
}
add_package () add_package ()
{ {
local pass="$1"
shift
local pkg local pkg
for pkg; do for pkg; do
echo "$pkg" >> config/local-packagelists/livecd-rootfs.list echo "$pkg" >> "config/local-packagelists/livecd-rootfs.list.$pass"
done done
} }
OPTS= OPTS=
TASKS=
LIVE_TASKS=
COMPONENTS= COMPONENTS=
BINARY_REMOVE_LINUX=true BINARY_REMOVE_LINUX=true
case $IMAGEFORMAT in case $IMAGEFORMAT in
ext2|ext3) ext2|ext3)
OPTS="${OPTS:+$OPTS }--initramfs none" OPTS="${OPTS:+$OPTS }--initramfs none"
add_package jasper add_package live jasper
;; ;;
*) *)
add_package lupin-casper add_package live lupin-casper
;; ;;
esac esac
case $PROJECT in case $PROJECT in
ubuntu|ubuntu-dvd) ubuntu|ubuntu-dvd)
TASKS='minimal standard ubuntu-desktop' add_task install minimal standard ubuntu-desktop
LIVE_TASKS='ubuntu-live' add_task live ubuntu-live
;; ;;
kubuntu|kubuntu-dvd) kubuntu|kubuntu-dvd)
TASKS='minimal standard kubuntu-desktop' add_task install minimal standard kubuntu-desktop
LIVE_TASKS='kubuntu-live' add_task live kubuntu-live
;; ;;
kubuntu-mobile) kubuntu-mobile)
TASKS='minimal standard kubuntu-mobile' add_task install minimal standard kubuntu-mobile
LIVE_TASKS='kubuntu-mobile-live' add_task live kubuntu-mobile-live
COMPONENTS='main restricted universe' COMPONENTS='main restricted universe'
;; ;;
edubuntu|edubuntu-dvd) edubuntu|edubuntu-dvd)
TASKS='minimal standard edubuntu-desktop-gnome' add_task install minimal standard edubuntu-desktop-gnome
LIVE_TASKS='edubuntu-live' add_task live edubuntu-live
COMPONENTS='main restricted universe' COMPONENTS='main restricted universe'
;; ;;
xubuntu) xubuntu)
TASKS='minimal standard xubuntu-desktop' add_task install minimal standard xubuntu-desktop
add_package xterm add_package install xterm
LIVE_TASKS='edubuntu-live' add_task live edubuntu-live
COMPONENTS='main restricted universe multiverse' COMPONENTS='main restricted universe multiverse'
;; ;;
ubuntu-netbook) ubuntu-netbook)
TASKS='minimal standard ubuntu-netbook' add_task install minimal standard ubuntu-netbook
LIVE_TASKS='netbook-live' add_task live netbook-live
;; ;;
mythbuntu) mythbuntu)
TASKS='minimal standard mythbuntu-desktop' add_task install minimal standard mythbuntu-desktop
LIVE_TASKS='mythbuntu-live' add_task live mythbuntu-live
COMPONENTS='main restricted universe multiverse' COMPONENTS='main restricted universe multiverse'
;; ;;
base) base)
TASKS='minimal standard' add_task install minimal standard
;; ;;
ubuntu-headless) ubuntu-headless)
TASKS='minimal standard' add_task install minimal standard
;; ;;
*) *)
@ -103,7 +114,7 @@ case $PROJECT in
esac esac
case $PROJECT in case $PROJECT in
*-dvd) *-dvd)
LIVE_TASKS="${LIVE_TASKS:+$LIVE_TASKS }$PROJECT-live" add_task live "$PROJECT-live"
;; ;;
esac esac
@ -116,11 +127,11 @@ case $ARCH in
BINARY_REMOVE_LINUX=false BINARY_REMOVE_LINUX=false
;; ;;
omap) omap)
add_package x-loader-omap3-beagle u-boot-linaro-omap3-beagle add_package install x-loader-omap3-beagle u-boot-linaro-omap3-beagle
BINARY_REMOVE_LINUX=false BINARY_REMOVE_LINUX=false
;; ;;
omap4) omap4)
add_package x-loader-omap4-panda u-boot-linaro-omap4-panda add_package install x-loader-omap4-panda u-boot-linaro-omap4-panda
BINARY_REMOVE_LINUX=false BINARY_REMOVE_LINUX=false
;; ;;
esac esac
@ -140,8 +151,6 @@ lb config noauto \
--initsystem none \ --initsystem none \
--bootloader none \ --bootloader none \
--initramfs-compression lzma \ --initramfs-compression lzma \
${TASKS:+--tasks "$TASKS"} \
${LIVE_TASKS:+--live-tasks "$LIVE_TASKS"} \
$OPTS $OPTS
case $PROJECT in case $PROJECT in

Loading…
Cancel
Save