mirror of
https://gitee.com/liushuncheng-lsc/lfs-livecd.git
synced 2025-02-03 04:37:14 +08:00
25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
|
我们现在在此重点讨论lfs-livecd的initramfs生成教程
|
|||
|
|
|||
|
=======================================================================================
|
|||
|
当我们编译完lfs之后,我们需要编译blfs里的软件,以下软件需要编译:
|
|||
|
1.cpio https://lfs.fsf.org.cn/blfs/view/stable/general/cpio.html
|
|||
|
2.lvm https://lfs.fsf.org.cn/blfs/view/stable/postlfs/lvm2.html
|
|||
|
|
|||
|
编译完这两个软件后,我们编译两个软件包: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/
|
|||
|
==========================================================================================
|