lfs-livecd/教程/01-编译需要的软件.txt

25 lines
933 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

我们现在在此重点讨论lfs-livecd的initramfs生成教程
=======================================================================================
当我们编译完lfs之后我们需要编译blfs里的软件以下软件需要编译:
1.cpio
2.lvm
编译完这两个软件后,我们编译两个软件包:dracut,squashfs-tools
Plymouth只是管开机动画的,依赖libdrm,不需要的话可以不搞
========================================================================================
dracut:
./configure --prefix=/usr --disable-documentation
make
make install
squashfs-tools:
cd squashfs-tools
sed -i 's/#XZ_SUPPORT/XZ_SUPPORT/g' Makefile
sed -i 's/#ZSTD_SUPPORT/ZSTD_SUPPORT/g' Makefile
#sed -i 's/local/ /g' Makefile
make
make install
cp -rv /usr/local/bin/{unsquashfs,mksquashfs} /usr/bin/
==========================================================================================