X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=lfs%2Fxen-image;h=c632b032fcf0bc0771fffd25d98bfe5b9c1bcc89;hp=98cdb35ccd2fcc1ec61197d67006c1d596864f02;hb=3c68549f8c8f5246be8c403557b0505f634b7516;hpb=7f8044b6ddaf7f30c4ca3a7c280cbf3b6a910818 diff --git a/lfs/xen-image b/lfs/xen-image index 98cdb35ccd..c632b032fc 100644 --- a/lfs/xen-image +++ b/lfs/xen-image @@ -55,7 +55,7 @@ IMGvar := /install/images/$(SNAME)/$(SNAME)-var.img SIZEboot := 30 SIZEswap := 512 SIZEroot := 512 -SIZEvar := 1024 +SIZEvar := 950 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) rm -rf $(MNThdd) $(IMGinst) $(IMGroot) && mkdir -p $(MNThdd) @@ -63,7 +63,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) #Create bootimage dd bs=1M if=/dev/zero of=$(IMGboot) count=$(SIZEboot) - mkfs.ext3 -F $(IMGboot) + mkfs.ext2 -F $(IMGboot) #Create swapimage dd bs=1M if=/dev/zero of=$(IMGswap) count=$(SIZEswap) @@ -146,13 +146,15 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) #Remove root / fstab check rm -rf $(MNThdd)/etc/rc.d/rcsysinit.d/S19checkfstab + #Remove console init + rm -rf $(MNThdd)/etc/rc.d/rcsysinit.d/S70console #Add xvc0 to securetty echo xvc0 >> $(MNThdd)/etc/securetty #Add getty for xvc0 - echo "#Enable login for XEN" >> $(MNThdd)/etc/securetty - echo "8:2345:respawn:/sbin/agetty xvc0 9600" >> $(MNThdd)/etc/securetty + echo "#Enable login for XEN" >> $(MNThdd)/etc/inittab + echo "8:2345:respawn:/sbin/agetty xvc0 9600" >> $(MNThdd)/etc/inittab #Disable some initskripts echo "#!/bin/sh" > $(MNThdd)/etc/rc.d/init.d/setclock @@ -188,6 +190,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) umount $(MNThdd)/boot umount $(MNThdd) + # Zerofree ext3 images to get better compression + zerofree $(IMGboot) + zerofree $(IMGroot) + zerofree $(IMGvar) + # Compress Image cd /install/images/ && tar -cvjf $(IMGinst) $(SNAME)