Created
June 10, 2012 00:48
-
-
Save hh/2903267 to your computer and use it in GitHub Desktop.
attempt at live-build of 12.04 amd64 iso
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# looking for a way to start from the official build files | |
# is livecd-rootfs what we build from or is there another source? | |
sudo apt-get install -y | |
livecd-rootfs \ | |
live-build \ | |
syslinux-themes-ubuntu-precise \ | |
syslinux-themes-ubuntu-oneiric \ | |
syslinux-themes-ubuntu \ | |
gfxboot-theme-ubuntu | |
# this is a bug in live-build?... this dir gets created twice for some reason | |
sudo sed -i 's/mkdir uuid/mkdir -p uuid/' /usr/share/live/build/scripts/build/lb_binary_disk | |
# Running in shm on a box with lots of ram speeds things up | |
mkdir -p /run/shm/live-build | |
cd /run/shm/live-build | |
mkdir -p auto | |
cp /usr/share/livecd-rootfs/live-build/auto/* auto/ | |
export PROJECT=ubuntu \ | |
SUITE=precise \ | |
ARCH=amd64 \ | |
BINARYFORMAT=iso-hybrid \ | |
# BINARYFORMAT=usb-hdd \ | |
# I like using local mirrors | |
LB_PARENT_MIRROR_BOOTSTRAP="http://localhost:8910/debian" \ | |
LB_PARENT_MIRROR_CHROOT="http://localhost:8910/debian" \ | |
LB_PARENT_MIRROR_VOLITILE="http://localhost:8910/debian" \ | |
LB_PARENT_MIRROR_DEBIAN_INSTALLER="http://localhost:8910/debian" \ | |
LB_MIRROR_BOOTSTRAP="http://localhost:8910/debian" \ | |
LB_MIRROR_CHROOT="http://localhost:8910/debian" | |
sudo lb_clean | |
lb config | |
# would need to edit/fork auto/config to fix this: | |
sed -i 's/LB_INITRAMFS_COMPRESSION="lzma"/LB_INITRAMFS_COMPRESSION="gzip"/' config/common | |
sudo lb build | |
# results in isos that are missing casper/vmlinuz amoung other things | |
# /run/shm/live-build$ ls binary/casper/ | |
# filesystem.manifest filesystem.squashfs vmlinuz-3.2.0-24-generic | |
# filesystem.manifest-remove initrd.img-3.2.0-24-generic | |
# filesystem.size memtest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment