mirror of
https://gitee.com/liushuncheng-lsc/lfs-livecd.git
synced 2025-02-02 20:27:13 +08:00
add 教程/3.生成initramfs.
Signed-off-by: liushuncheng <2930054131@qq.com>
This commit is contained in:
parent
fd13b14143
commit
ba92e66979
14
教程/3.生成initramfs
Normal file
14
教程/3.生成initramfs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
我们开始生成initramfs,生成出来的initramfs必须能用才行
|
||||||
|
|
||||||
|
假如你是lfs sysv,运行该命令:
|
||||||
|
dracut --force-add "systemd dracut-systemd systemd-initrd systemd-networkd systemd-sysusers" \
|
||||||
|
--add "dm dmsquash-live dmsquash-live-autooverlay kernel-modules bash" \
|
||||||
|
--zstd --no-hostonly --no-hostonly-cmdline --no-hostonly-i18n --force \
|
||||||
|
--kver 你的内核版本
|
||||||
|
|
||||||
|
假如你是systemd版本的lfs,运行此命令:
|
||||||
|
dracut --add "dm dmsquash-live dmsquash-live-autooverlay kernel-modules bash" \
|
||||||
|
--zstd --no-hostonly --no-hostonly-cmdline --no-hostonly-i18n --force \
|
||||||
|
--kver 你的内核版本
|
||||||
|
|
||||||
|
注意你的内核必须支持zstd压缩的initramfs
|
Loading…
Reference in New Issue
Block a user