From 9865567fabbd4cc3eee40c06984d022693c1f38d Mon Sep 17 00:00:00 2001 From: rjones Date: Fri, 7 Sep 2007 14:01:10 +0100 Subject: [PATCH 1/1] Testing building of live CDs. --- .cvsignore | 2 ++ Makefile | 45 +++++++++++++++++++++++++++++++++++++++++++++ livecd-test.ks.in | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 .cvsignore create mode 100644 Makefile create mode 100644 livecd-test.ks.in diff --git a/.cvsignore b/.cvsignore new file mode 100644 index 0000000..213f93d --- /dev/null +++ b/.cvsignore @@ -0,0 +1,2 @@ +*.iso +livecd-test.ks \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4cc99aa --- /dev/null +++ b/Makefile @@ -0,0 +1,45 @@ +# $Id$ + +#---------------------------------------------------------------------- +# General configuration + +VERSION := 0.1 + +# i386 images also work on x86-64, so best to stick with i386. +ARCH := i386 + +LANG := en_US.UTF-8 +KEYBOARD := us +TIMEZONE := US/Eastern + +BASEREPO := http://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/$(ARCH)/os/ + +# Select a suitable HTTP proxy. +# The default assumes a local squid proxy. +export http_proxy := http://127.0.0.1:3128/ +export ftp_proxy := http://127.0.0.1:3128/ + +#---------------------------------------------------------------------- + +all: + @echo "make build Build the live CD ISO" + @echo "make boot [ISO=foo.iso] Boot the named ISO (uses qemu)" + +build: livecd-test.ks + livecd-creator \ + --config=$< \ + --fslabel=virt-p2v-$(VERSION) + ls -lhtr *.iso + +ISO = virt-p2v-$(VERSION).iso + +boot: + qemu -m 512 $(ISO) + +livecd-test.ks: livecd-test.ks.in Makefile + sed \ + -e 's|@BASEREPO@|$(BASEREPO)|g' \ + -e 's|@LANG@|$(LANG)|g' \ + -e 's|@KEYBOARD@|$(KEYBOARD)|g' \ + -e 's|@TIMEZONE@|$(TIMEZONE)|g' \ + < $< > $@ \ No newline at end of file diff --git a/livecd-test.ks.in b/livecd-test.ks.in new file mode 100644 index 0000000..0d3975e --- /dev/null +++ b/livecd-test.ks.in @@ -0,0 +1,37 @@ +lang @LANG@ +keyboard @KEYBOARD@ +timezone @TIMEZONE@ +auth --useshadow --enablemd5 +selinux --enforcing +firewall --disabled + +repo --name=a-dev --baseurl=@BASEREPO@ + +%packages +bash +kernel +syslinux +passwd +policycoreutils +chkconfig +authconfig +rootfiles + +# dd, sleep, sync, etc. +coreutils +# dmsetup +device-mapper +# blockdev, mount, umount +util-linux +# modprobe +module-init-tools +# gzip +gzip +# ssh +openssh-clients +# nc +nc + + + +# EOF -- 1.8.3.1