iscsi/iscsiroot.sh: do not mount manually in systemd mode

master
Harald Hoyer 2013-03-14 17:54:36 +01:00
parent e0e99c59a5
commit 0a5fd0dcec
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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
}