mirror of
https://gitee.com/liushuncheng-lsc/lfs-livecd.git
synced 2025-01-24 00:22:11 +08:00
2eb13ea482
Signed-off-by: liushuncheng <2930054131@qq.com>
17 lines
912 B
Plaintext
17 lines
912 B
Plaintext
我们开始生成initramfs,生成出来的initramfs必须能用才行
|
|
|
|
假如你是lfs sysv,运行该命令:
|
|
dracut --omit "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
|
|
|
|
有问题的话--add "dm dmsquash-live dmsquash-live-autooverlay kernel-modules bash"
|
|
改为--add "dm dmsquash-live dmsquash-live-autooverlay kernel-modules bash overlayfs overlay-root" |