mirror of
https://gitee.com/liushuncheng-lsc/lfs-livecd.git
synced 2025-01-23 16:12:12 +08:00
25 lines
933 B
Plaintext
25 lines
933 B
Plaintext
我们现在在此重点讨论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/
|
||
========================================================================================== |