2024-08-11 17:48:11 +08:00
|
|
|
|
我们现在在此重点讨论lfs-livecd的initramfs生成教程
|
|
|
|
|
|
|
|
|
|
=======================================================================================
|
|
|
|
|
当我们编译完lfs之后,我们需要编译blfs里的软件,以下软件需要编译:
|
2024-08-11 19:57:15 +08:00
|
|
|
|
1.cpio
|
|
|
|
|
2.lvm
|
2024-08-11 17:48:11 +08:00
|
|
|
|
|
|
|
|
|
编译完这两个软件后,我们编译两个软件包: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/
|
|
|
|
|
==========================================================================================
|