[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
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
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
On Thu, Nov 12, 2020 at 06:50:13PM +0800, Yu Chuan wrote:
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
It should have the space.
Thanks, Xijian
On Thu, Nov 12, 2020 at 07:46:50PM +0800, Xu Xijian wrote:
On Thu, Nov 12, 2020 at 06:50:13PM +0800, Yu Chuan wrote:
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
It should have the space.
Agreed. Here the error message should be indented since they are "reference blocks" in markdown, which is analog to <pre> in HTML.
Thanks, Fengguang