iscsi/iscsiroot.sh: do not mount manually in systemd mode
parent
e0e99c59a5
commit
0a5fd0dcec
|
|
@ -145,7 +145,8 @@ handle_netroot()
|
|||
wait_for_dev /dev/root
|
||||
|
||||
# install mount script
|
||||
echo "iscsi_lun=$iscsi_lun . /bin/mount-lun.sh " > $hookdir/mount/01-$$-iscsi.sh
|
||||
[ -z "$DRACUT_SYSTEMD" ] && \
|
||||
echo "iscsi_lun=$iscsi_lun . /bin/mount-lun.sh " > $hookdir/mount/01-$$-iscsi.sh
|
||||
fi
|
||||
|
||||
# force udevsettle to break
|
||||
|
|
|
|||
|
|
@ -78,6 +78,8 @@ install() {
|
|||
inst_hook cmdline 90 "$moddir/parse-iscsiroot.sh"
|
||||
inst_hook cleanup 90 "$moddir/cleanup-iscsi.sh"
|
||||
inst "$moddir/iscsiroot.sh" "/sbin/iscsiroot"
|
||||
inst "$moddir/mount-lun.sh" "/bin/mount-lun.sh"
|
||||
if ! dracut_module_included "systemd"; then
|
||||
inst "$moddir/mount-lun.sh" "/bin/mount-lun.sh"
|
||||
fi
|
||||
dracut_need_initqueue
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue