]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/cdrom
Geaendert:
[people/pmueller/ipfire-2.x.git] / lfs / cdrom
index 3051f2b1b2b7e742dc8a92b38e3956390958bfbe..b346f10b8e6351534e08773b217122e635bf9714 100644 (file)
--- a/lfs/cdrom
+++ b/lfs/cdrom
@@ -87,9 +87,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        # Compress root filesystem
        # Reason for this tar+untar+tar is removing of entries listed two or more in src/ROOTFILES
        mkdir -p /install/cdrom/{doc,dosutils,images}
-       tar -c -C / --files-from=$(DIR_SRC)/src/ROOTFILES.$(MACHINE) \
+       sed -e "s/KVER/$(KVER)/g" $(DIR_SRC)/src/ROOTFILES.$(MACHINE) > /tmp/ROOTFILES
+       tar -c -C / --files-from=/tmp/ROOTFILES \
            -f /$(SNAME).tar --exclude='#*' --exclude='dev/pts/*' \
            --exclude='proc/*'
+       rm -f /tmp/ROOTFILES
        tar -x -C /tmp -f /$(SNAME).tar
        rm -f /$(SNAME).tar
        cd /tmp && tar zcf /install/cdrom/$(SNAME)-$(VERSION).tgz * && rm -rf *