On Thu, Nov 12, 2020 at 04:14:28PM +0800, Xu Xijian wrote:
[why] When start with a new kernel, the dracut will parse iscsiroot and halted, which is unnecessary for us.
[errmsg] [ 0.976307] dracut: FATAL: iscsiroot requested but kernel/initrd does not support iscsi [ 0.977011] dracut: Refusing to continue ... [ 1.063137] reboot: System halted
the space at the beginning of the line is unnecessary.
-------- Thanks Yu Chuan
Signed-off-by: Xu Xijian hdxuxijian@163.com
container/dracut-initrd/bin/setup-dracut.sh | 1 + 1 file changed, 1 insertion(+)
diff --git a/container/dracut-initrd/bin/setup-dracut.sh b/container/dracut-initrd/bin/setup-dracut.sh index 2e676de..b9a7800 100755 --- a/container/dracut-initrd/bin/setup-dracut.sh +++ b/container/dracut-initrd/bin/setup-dracut.sh @@ -14,5 +14,6 @@ rm -rf /var/lib/apt/lists/*
# Replace the runtime shell script with a custom shell script cp -a /usr/local/bin/cifs-lib.sh /usr/lib/dracut/modules.d/95cifs/ +sed -i '/inst_hook cmdline 90 "$moddir/parse-iscsiroot.sh"/d' /usr/lib/dracut/modules.d/95iscsi/module-setup.sh
cat overlay-lkp.sh >> /usr/lib/dracut/modules.d/90overlay-root/overlay-mount.sh
2.23.0