6,534
edits
Changes
simplified →Compressing '''booted''' LiveCD filesystem
<pre>
# rm -f ovz-livecd/base/*.mo
# mksquashfs root/lib/ ovz-livecd/base/for f in bin.mo -keep-as-directory# mksquashfs root/etc/ ovz-livecd/base/etc.mo -keep-as-directory# mksquashfs root/lib/ ovz-livecd/base/lib.mo -keep-as-directory# mksquashfs root/root/ ovz-livecd/base/root.mo -keep-as-directory# mksquashfs root/sbin/ ovz-livecd/base/sbin.mo -keep-as-directory# mksquashfs root/usr/ ovz-livecd/base/usr.mo -keep-as-directory # it can take long...var vz; do \# mksquashfs root/var/ $f ovz-livecd/base/var$f.mo -keep-as-directory; \# mksquashfs root/vz/ ovz-livecd/base/vz.mo -keep-as-directory done
</pre>