On Wed, Apr 07, 2010 at 11:51:42AM +0200, Marco d'Itri wrote:
> On Apr 07, Aurelien Jarno <aure...@debian.org> wrote:
> 
> > The netbase init script already tries to detect network root drives, but
> > it does not detect iSCSI drives. The patch below fixes this problem.
> No objections on this principle, but can you think about a better test
> than looking for /etc/iscsi/iscsi.initramfs? I'd like to use something
> not related to the current internals of a different package.
> 

The main problem is that iscsi is really similar to real scsi, and thus
difficult to detect.

One option I have found is to use udev, and lookup for the DEVPATH of
the root partition. If it is starts by "ip-" instead of "pci-", then it
is an iscsi device. Are you fine with such an option?


-- 
Aurelien Jarno                          GPG: 1024D/F1BCDB73
aurel...@aurel32.net                 http://www.aurel32.net



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to