|
|
@ -22,15 +22,20 @@ EOF
|
|
|
|
|
|
|
|
|
|
|
|
chroot chroot update-initramfs -u
|
|
|
|
chroot chroot update-initramfs -u
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
git clone https://git.launchpad.net/~ubuntu-cdimage/debian-cd/+git/ubuntu debian-cd
|
|
|
|
|
|
|
|
export BASEDIR=$(readlink -f debian-cd) DIST=$SUITE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat > apt.conf <<EOF
|
|
|
|
|
|
|
|
Dir "$(pwd)/chroot";
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
case $ARCH in
|
|
|
|
case $ARCH in
|
|
|
|
amd64)
|
|
|
|
amd64)
|
|
|
|
mkdir -p "ubuntu-mini-iso/amd64"
|
|
|
|
|
|
|
|
cp -a chroot/usr/share/cd-boot-images-amd64/tree ubuntu-mini-iso/amd64/tree
|
|
|
|
|
|
|
|
cp -a chroot/usr/share/cd-boot-images-amd64/images ubuntu-mini-iso/amd64/images
|
|
|
|
|
|
|
|
mkdir -p "ubuntu-mini-iso/amd64/tree/casper"
|
|
|
|
mkdir -p "ubuntu-mini-iso/amd64/tree/casper"
|
|
|
|
cp "$KERNEL" ubuntu-mini-iso/amd64/tree/casper/vmlinuz
|
|
|
|
cp "$KERNEL" ubuntu-mini-iso/amd64/tree/casper/filesystem.kernel-generic
|
|
|
|
cp "$INITRD" ubuntu-mini-iso/amd64/tree/casper/initrd
|
|
|
|
cp "$INITRD" ubuntu-mini-iso/amd64/tree/casper/filesystem.initrd-generic
|
|
|
|
mkdir -p "ubuntu-mini-iso/amd64/tree/boot/grub"
|
|
|
|
APT_CONFIG_amd64=$(pwd)/apt.conf $BASEDIR/tools/boot/$SUITE/boot-amd64 1 $(readlink -f ubuntu-mini-iso/amd64/tree)
|
|
|
|
|
|
|
|
# Overwrite the grub.cfg that debian-cd generates by default
|
|
|
|
cat > ubuntu-mini-iso/amd64/tree/boot/grub/grub.cfg <<EOF
|
|
|
|
cat > ubuntu-mini-iso/amd64/tree/boot/grub/grub.cfg <<EOF
|
|
|
|
menuentry "Choose an Ubuntu version to install" {
|
|
|
|
menuentry "Choose an Ubuntu version to install" {
|
|
|
|
set gfxpayload=keep
|
|
|
|
set gfxpayload=keep
|
|
|
@ -38,6 +43,7 @@ menuentry "Choose an Ubuntu version to install" {
|
|
|
|
initrd /casper/initrd
|
|
|
|
initrd /casper/initrd
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
|
|
|
|
rm -f ubuntu-mini-iso/amd64/tree/boot/grub/loopback.cfg ubuntu-mini-iso/amd64/tree/boot/memtest*.bin
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
@ -70,10 +76,9 @@ $version - $ARCH ($BUILDSTAMP)
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
dest="${PWD}/livecd.${PROJECT}.iso"
|
|
|
|
dest="${PWD}/livecd.${PROJECT}.iso"
|
|
|
|
xorriso="$(cat chroot/usr/share/cd-boot-images-amd64/xorriso-cmd.txt)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd ubuntu-mini-iso/$ARCH
|
|
|
|
cd ubuntu-mini-iso/$ARCH
|
|
|
|
$xorriso -o $dest
|
|
|
|
xorriso -as mkisofs $(cat 1.mkisofs_opts) tree -o $dest
|
|
|
|
cd ../..
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
|
|
|
|
rm -rf ubuntu-mini-iso
|
|
|
|
rm -rf ubuntu-mini-iso
|
|
|
|