README.ImageDeduplizieren 892 Bytes
Newer Older
Lars Beckers's avatar
Lars Beckers committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash
#Es gibt remaster-root von 32 und 64 Bit in ~lip/custom32, ~lip/custom64
mkdir -p ~lip/both/remaster-root
cd ~lip/custom32/remaster-root; find . -type f -print0 | sort -z | xargs -0 md5sum > ~lip/both/32.md5
cd ~lip/custom64/remaster-root; find . -type f -print0 | sort -z | xargs -0 md5sum > ~lip/both/64.md5
diff --old-line-format="" --new-line-format="" --unchanged-line-format="%L" ~lip/both/*.md5 > ~lip/both/both
cut -d" " -f3- ~lip/both/both | tr \\n \\0 | (cd ~lip/custom64/remaster-root; xargs -0 cp --parents -pt ~lip/both/remaster-root/ )
cut -d" " -f3- ~lip/both/both | tr \\n \\0 | (cd ~lip/custom32/remaster-root; xargs -0 rm )
cut -d" " -f3- ~lip/both/both | tr \\n \\0 | (cd ~lip/custom64/remaster-root; xargs -0 rm )

#Squashfs erzeugen:
#mksquashfs <source>/remaster-root lip<target>.squashfs -comp xz
#die squashfs in das /casper directory auf dem stick legen