]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Create a nice liveinitramfs for the iso.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Aug 2008 18:34:32 +0000 (20:34 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Aug 2008 18:34:32 +0000 (20:34 +0200)
lfs/initramfs

index 0e16c07a58909871f96ef660c6a56b9da333f540..8bc7386f9d6ee98809428826f9543298685e4f37 100644 (file)
@@ -31,9 +31,6 @@ THISAPP    = $(PKG_NAME)-$(VER)
 
 TARGET     = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
 
-COMPRESS_CMD = gzip -9
-#COMPRESS_CMD = lzma_sdk e -si -so
-
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -47,17 +44,4 @@ download :
 ###############################################################################
 
 $(TARGET) :
-       find $(DIR_SOURCE)/rootfiles/installer -maxdepth 1 -type f | xargs cat | \
-               grep -v ^# | sed -e "s@INSTALLER_DIR@@g" -e "s@KVER@$(KVER)@g" \
-               -e "s@^/@@g" | sort | uniq > $(INSTALLER_DIR)/archive.files
-
-       cd $(INSTALLER_DIR) && cpio -o -H newc \
-               < $(INSTALLER_DIR)/archive.files 2>$(INSTALLER_DIR)/archive.errors \
-               | $(COMPRESS_CMD) > $(IMAGES_DIR)/initramfs-$(VERSION).img 
-
-       @cat $(INSTALLER_DIR)/archive.errors
-       @if grep -q "No such file or directory" < $(INSTALLER_DIR)/archive.errors; then \
-               exit 1; \
-       fi
-
-       @rm -rf $(INSTALLER_DIR)/archive.{files,errors}
+       /sbin/mkliveramfs -f -v $(IMAGES_DIR)/$(PKG_NAME)-$(VERSION).img $(KVER)