Testing building of live CDs.
authorrjones <devnull@localhost>
Fri, 7 Sep 2007 13:01:10 +0000 (14:01 +0100)
committerrjones <devnull@localhost>
Fri, 7 Sep 2007 13:01:10 +0000 (14:01 +0100)
.cvsignore [new file with mode: 0644]
Makefile [new file with mode: 0644]
livecd-test.ks.in [new file with mode: 0644]

diff --git a/.cvsignore b/.cvsignore
new file mode 100644 (file)
index 0000000..213f93d
--- /dev/null
@@ -0,0 +1,2 @@
+*.iso
+livecd-test.ks
\ No newline at end of file
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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 (file)
index 0000000..0d3975e
--- /dev/null
@@ -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