[Pkg-iscsi-maintainers] Bug#584939: open-iscsi: cannot log into target from initramfs

Michal Suchanek michal.suchanek at ruk.cuni.cz
Tue Jun 8 08:09:51 UTC 2010


I use iscsid because I did not know about iscsiboot and iscsid man page
suggests that iscsi is not fully functional unless iscsid is running.

I start the daemoun, do a discover and a login and everything works so
long as iscsid does not tell me to go away when I connect with iscsiadm
and /etc/passwd is not available.

I don't think that iscsid would work later without proper configuration
or that iscsiboot would create such configuration, especially since the
root filesystem is not mounted yet.

Thanks

Michal

Excerpts from Ritesh Raj Sarraf's message of Tue Jun 08 07:19:33 +0200 2010:
> There are many users using iscsi boot solutions (which requires login from 
> initramfs). Are you sure you are following the right steps ?
> 
> In the current upload in squeeze, there's a bug. It is fixed and pending an 
> upload. You might want to check it. (DBTS #576786)
> 
> 
> Ritesh
> 
> On Monday 07 Jun 2010 22:24:17 Michal Suchanek <hramrach at centrum.cz> wrote:
> > The iscsid daemon only allows root to manage the iscsi disks.
> > 
> > To check that the user is root it fist gets the uid, then calls getpwent
> > on the uid and then compares the username with the string "root".
> > 
> > This is imho stupid and superfluous as just comparing the uid to zero
> > would give the same level of sucurity wiht much less code.
> > 
> > What's more, there is no /etc/passwd in initramfs.
> > 
> > This patch just installs a default pwent entry for root in case getpwent
> > fails.
> > 
> > However, ripping out the junk with getpwent is suggested.
> > 
> > I tried with the 2.0.870-rc3 iscsid but the patch still applies.
> > 
> > 
> 
-- 
Michal Suchánek
michal.suchanek at ruk.cuni.cz
tel 224491810 fax 224491594
Univerzita Karlova v Praze
Ústav Výpočetní Techniky
Ovocný trh 3
Praha 1





More information about the Pkg-iscsi-maintainers mailing list