I have been trying to get iSCSI rootfs working on the raspberry pi for a while now and have failed using initramfs.
I have now tried to use dracut-network and pass the iSCSI target options via cmdline.txt
It seems to start out well, the iSCSI target shows up as /dev/sda but ultimatley dracut fails to boot from the target giving the same error message as when attempting to mount a device (/dev/sda) and not a partition (/dev/sda1).
My cmdline.txt is as follows
Code: Select all
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 ip=192.168.0.39 netmask=255.255.255.0 root=iscsi:@192.168.0.40::::iqn.2005-10.org.domain.host:target iscsi-initiator=iqn.2005-10.org.domain.raspberrypi:01 elevator=deadline rootfstype=ext4 fsck.repair=yes rootwaitCode: Select all
initramfs initramfs.img
dtparam=audio=on
The error i get from the dracut journalctl is
Code: Select all
Mounting /sysroot
mount: wrong fs type, bad option, bad superblock on /dev/sda,
EXT4-fs (sda): VFS: Can't find ext4 filesystem
missing codepage or helper program, or other errorCode: Select all
mount -t ext4 /dev/sda /sysrootCode: Select all
mount -t ext4 /dev/sda1 /sysrootIs there anyway to specify the partition number the rootfs is on, or is it a bug in dracut? Could the cmdline.txt argument
Code: Select all
blkdevparts=Here is the rdsosreport.txt that dracut outputs
http://pastebin.com/ssieGz4M
Thank you for your help.