[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 09:11:32PM +0800, Xu Xijian wrote:
[why] When start with a new kernel, the dracut will parse iscsiroot and halted, which is unnecessary for us.
^----delete extra space, pay attention to indent. Thanks, Liushaofei
[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
2.23.0
On Thu, Nov 12, 2020 at 09:11:32PM +0800, Xu Xijian wrote:
[why] When start with a new kernel, the dracut will parse iscsiroot and halted, which is unnecessary for us.
This indentation maybe enough for two spaces.
[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
Same as above
Thanks, Zhangyu
On Fri, Nov 13, 2020 at 09:48:55AM +0800, Zhang Yu wrote:
On Thu, Nov 12, 2020 at 09:11:32PM +0800, Xu Xijian wrote:
[why] When start with a new kernel, the dracut will parse iscsiroot and halted, which is unnecessary for us.
This indentation maybe enough for two spaces.
[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
Same as above
Thanks, Zhangyu
It's a tab, and I think tab is better and more convenient for us.
Thanks, Xijian
Is the parse script doing something wrong, or it's mis-configured? What about just fixing up some config?
Thanks, Fengguang
On Thu, Nov 12, 2020 at 09:11:32PM +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
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