Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Makefile for Debian based dd image on HP t5720
#!/bin/sh
PROJECT=t5720
DISTRIB=${1-squeeze}
URL=http://ftp.jp.debian.org/debian/
URL=http://ftp.jaist.ac.jp/pub/Linux/debian/
mkdir $PROJECT
cd $PROJECT
lb config
#cat <<EOF >config/binary_debian-installer/
#cat <<EOF >config/binary_debian-installer-includes/
#cat <<EOF >config/binary_grub/
#cat <<EOF >config/binary_local-debs/
#cat <<EOF >config/binary_local-hooks/
#cat <<EOF >config/binary_local-includes/
#cat <<EOF >config/binary_local-packageslists/
#cat <<EOF >config/binary_local-udebs/
#cat <<EOF >config/binary_rootfs/
#cat <<EOF >config/binary_syslinux/
#cat <<EOF >config/chroot_apt/
#cat <<EOF >config/chroot_local-hooks/
#cat <<EOF >config/chroot_local-includes/
#cat <<EOF >config/chroot_local-packages/
#cat <<EOF >config/chroot_local-packageslists/
#cat <<EOF >config/chroot_local-patches/
#cat <<EOF >config/chroot_local-preseed/
#cat <<EOF >config/chroot_sources/
#cat <<EOF >config/includes/
#cat <<EOF >config/templates/
cp ../splash.png .
cat <<EOF >config/chroot_local-hooks/password.sh
#!/bin/sh
echo root:root|chpasswd
EOF
cat <<EOF >config/chroot_local-hooks/live-boot.sh
#!/bin/sh
sed -i 's/^.*\. \${SNAPSHOT_CONF}$/#&/' /etc/init.d/live-boot
EOF
mkdir -p config/chroot_local-includes/etc
cat <<EOF >config/chroot_local-includes/etc/live-snapshot.exclude_list
/var/lock
/var/log
/var/run
/var/tmp
EOF
mkdir -p config/chroot_local-includes/sbin
cat <<'EOF' >config/chroot_local-includes/sbin/flash
#!/bin/sh
case $1 in
save)
live-snapshot -r /:`df /live/image|awk '/^\/dev\//{print$1}'`:/live/live-sn.cpio.gz
;;
clear)
mount -o remount,rw `df /live/image|awk '/^\/dev\//{print$1}'`
rm -f /live/image/live/live-sn.cpio.gz
mount -o remount,ro `df /live/image|awk '/^\/dev\//{print$1}'`
;;
*)
;;
esac
EOF
chmod +x config/chroot_local-includes/sbin/flash
wget -q -O - http://live.debian.net/cdimage/release/current/i386/usb-hdd/debian-live-6.0.6-i386-standard.img.packages|sed 's/[[:blank:]].*$//' >config/chroot_local-packageslists/base-system.list
cat <<EOF >config/chroot_local-packageslists/package.list
ssh
cu
screen
bzip2
EOF
#lb config --apt apt
#lb config --apt aptitude
#lb config --apt-ftp-proxy $URL
#lb config --apt-http-proxy $URL
#lb config --apt-pdiffs true
#lb config --apt-pdiffs false
#lb config --apt-options $OPTION
#lb config --aptitude-options $OPTION
#lb config --apt-pipeline $DEPTH
#lb config --apt-recommends true
#lb config --apt-recommends false
#lb config --apt-secure true
#lb config --apt-secure false
#lb config --architecture $ARCHITECTURE
lb config --architecture i386
#lb config --binary-images iso
#lb config --binary-images iso-hybrid
#lb config --binary-images net
#lb config --binary-images tar
lb config --binary-images usb-hdd
#lb config --binary-filesystem fat16
#lb config --binary-filesystem fat32
#lb config --binary-filesystem ext2
#lb config --binary-indices true
#lb config --binary-indices false
#lb config --binary-indices none
#lb config --bootappend-install $PARAMETER
#lb config --bootappend-live $PARAMETER
lb config --bootappend-live "quickreboot persistent persistent-path=/live/"
#lb config --bootloader grub
#lb config --bootloader syslinux
#lb config --bootloader yaboot
lb config --bootstrap cdebootstrap
#lb config --bootstrap cdebootstrap-static
#lb config --bootstrap debootstrap
#lb config --bootstrap copy
#lb config --bootstrap-config $FILE
lb config --bootstrap-flavour minimal
#lb config --bootstrap-flavour standard
#lb config --bootstrap-keyring $PACKAGE
#lb config --cache true
#lb config --cache false
#lb config --cache-indices true
#lb config --cache-indices false
#lb config --cache-packages true
#lb config --cache-packages false
#lb config --cache-stages $STAGE
#lb config --checksums md5
#lb config --checksums sha1
#lb config --checksums sha256
#lb config --checksums none
#lb config --build-with-chroot true
#lb config --build-with-chroot false
#lb config --chroot-filesystem ext2
#lb config --chroot-filesystem ext3
#lb config --chroot-filesystem squashfs
#lb config --chroot-filesystem plain
#lb config --chroot-filesystem jffs2
#lb config --clean
#lb config --conffile $FILE
#lb config --debconf-frontend dialog
#lb config --debconf-frontend editor
#lb config --debconf-frontend noninteractive
#lb config --debconf-frontend readline
#lb config --debconf-nowarnings true
#lb config --debconf-nowarnings false
#lb config --debconf-priority low
#lb config --debconf-priority medium
#lb config --debconf-priority high
#lb config --debconf-priority critical
#lb config --debian-installer true
#lb config --debian-installer cdrom
#lb config --debian-installer netinst
#lb config --debian-installer netboot
#lb config --debian-installer businesscard
#lb config --debian-installer live
lb config --debian-installer false
#lb config --debian-installer-distribution daily
#lb config --debian-installer-distribution $CODENAME
#lb config --debian-installer-preseedfile $FILE
#lb config --debian-installer-preseedfile $URL
#lb config --debian-installer-gui true
#lb config --debian-installer-gui false
#lb config --debug
#lb config --distribution $CODENAME
lb config --distribution $DISTRIB
#lb config --dump
#lb config --encryption false
#lb config --encryption aes128
#lb config --encryption aes192
#lb config --encryption aes256
#lb config --fdisk fdisk
#lb config --fdisk fdisk.dist
#lb config --force
#lb config --grub-splash $FILE
#lb config --gzip-options $OPTION
#lb config --hooks $FILE
#lb config --hostname $NAME
lb config --hostname $PROJECT
#lb config --ignore-system-defaults
#lb config --includes $PATH
#lb config --includes none
#lb config --initramfs auto
#lb config --initramfs none
#lb config --initramfs live-boot
#lb config --initramfs live-initramfs
#lb config --initramfs casper
#lb config --interactive shell
#lb config --isohybrid-options $OPTION
#lb config --iso-application $NAME
#lb config --iso-preparer $NAME
#lb config --iso-publisher $NAME
#lb config --iso-volume $NAME
#lb config --jffs2-eraseblock $SIZE
#lb config --keyring-packages $PACKAGE
#lb config --language $LANGUAGE
#lb config --linux-flavours $FLAVOUR
lb config --linux-flavours 686
#lb config --linux-packages
#lb config --losetup losetup
#lb config --losetup losetup.orig
#lb config --memtest memtest86+
#lb config --memtest memtest86
lb config --memtest none
lb config --mirror-bootstrap $URL
lb config --mirror-chroot $URL
#lb config --mirror-chroot-security $URL
#lb config --mirror-chroot-volatile $URL
#lb config --mirror-chroot-backports $URL
lb config --mirror-binary $URL
#lb config --mirror-binary-security $URL
#lb config --mirror-binary-volatile $URL
#lb config --mirror-binary-backports $URL
#lb config --mirror-debian-installer $URL
#lb config --mode debian
#lb config --mode emdebian
#lb config --mode ubuntu
#lb config --net-root-filesystem nfs
#lb config --net-root-filesystem cfs
#lb config --net-root-mountoptions $OPTIONS
#lb config --net-root-path $PATH
#lb config --net-root-server $IP
#lb config --net-root-server $HOSTNAME
#lb config --net-cow-filesystem nfs
#lb config --net-cow-filesystem cfs
#lb config --net-cow-mountoptions $OPTIONS
#lb config --net-cow-path $PATH
#lb config --net-cow-server $IP
#lb config --net-cow-server $HOSTNAME
#lb config --net-tarball bzip2
#lb config --net-tarball gzip
#lb config --net-tarball tar
#lb config --net-tarball none
#lb config --packages-lists $LIST
#lb config --packages $PACKAGE
#lb config --quiet
#lb config --repositories $REPOSITORY
#lb config --root-command sudo
#lb config --use-fakeroot true
#lb config --use-fakeroot false
#lb config --archive-areas $ARCHIVE_AREA
#lb config --security true
#lb config --security false
#lb config --source true
#lb config --source false
#lb config --source-images iso
#lb config --source-images net
#lb config --source-images tar
#lb config --source-images usb-hdd
#lb config --symlinks true
#lb config --symlinks false
#lb config --syslinux-splash $FILE
lb config --syslinux-splash splash.png
#lb config --syslinux-timeout $SECONDS
lb config --syslinux-timeout 3
#lb config --syslinux-menu true
#lb config --syslinux-menu false
#lb config --sysvinit true
#lb config --sysvinit false
#lb config --tasksel aptitude
#lb config --tasksel tasksel
#lb config --tasks $TASK
#lb config --templates $PATH
#lb config --virtual-root-size $MB
lb config --virtual-root-size 128
#lb config --volatile true
#lb config --volatile false
#lb config --backports true
#lb config --backports false
#lb config --exposed-root true
#lb config --exposed-root false
#lb config --username $NAME
lb config --username root
#lb config --verbose
#lb config --win32-loader true
#lb config --win32-loader false
#lb config --help
#lb config --usage
#lb config --version
lb build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment