X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=appliance%2FMakefile.am;h=0abd698ef149e29c80bab9ca4e01c5a433dcd846;hp=2df8a2b949ab996d7f209b3916d601ec4b417efb;hb=53c524819323dcea8d5e3d56ff4fc6cf49b6c64f;hpb=90b3539e28c1c5ab7e6a21c0d160010444773734 diff --git a/appliance/Makefile.am b/appliance/Makefile.am index 2df8a2b..0abd698 100644 --- a/appliance/Makefile.am +++ b/appliance/Makefile.am @@ -47,13 +47,13 @@ superminfs_DATA = \ endif # Don't change these names - they must be the same as in '*.sh' scripts. -INITRAMFSIMG = initramfs.$(REPO).$(host_cpu).img -VMLINUZ = vmlinuz.$(REPO).$(host_cpu) +INITRAMFSIMG = initramfs.$(host_cpu).img +VMLINUZ = vmlinuz.$(host_cpu) # This is for building the normal appliance: $(INITRAMFSIMG) $(VMLINUZ): $(top_builddir)/initramfs/fakeroot.log -$(top_builddir)/initramfs/fakeroot.log: make.sh kmod.whitelist packagelist $(top_builddir)/daemon/guestfsd +$(top_builddir)/initramfs/fakeroot.log: make.sh kmod.whitelist packagelist mv $(INITRAMFSIMG) $(INITRAMFSIMG).bak 2>/dev/null; : mv $(VMLINUZ) $(VMLINUZ).bak 2>/dev/null; : if ! bash make.sh; then rm -f $@; exit 1; fi @@ -119,37 +119,6 @@ stamp-debirf-modules: done touch $@ -#---------------------------------------------------------------------- -# Extra rules for testing the appliance. - -# Test-boot the appliance. - -test-boot: emptydisk - qemu-system-$(host_cpu) \ - -m 384 \ - -kernel $(VMLINUZ) -initrd $(INITRAMFSIMG) \ - -hda emptydisk - -emptydisk: - rm -f emptydisk - dd if=/dev/zero of=emptydisk bs=1024 count=1440 - echo 0, | sfdisk -q -C 80 -H 2 -S 18 emptydisk > /dev/null - -# This is a more realistic test boot command line which better -# reflects what the library does. - -test-boot-realistic: emptydisk - qemu-system-$(host_cpu) \ - -m 384 \ - -kernel $(VMLINUZ) -initrd $(INITRAMFSIMG) \ - -hda emptydisk \ - -append "console=ttyS0 guestfs=10.0.2.4:6666 guestfs_rescue=1" \ - -nographic \ - -serial stdio \ - -net channel,6666:unix:/tmp/sock,server,nowait \ - -net user,vlan=0 \ - -net nic,model=virtio,vlan=0 - # Make clean. CLEANFILES = packagelist kmod.whitelist