Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Stage 4 mount and switch to rootfs

For

...

the

...

preparation

...

of

...

the

...

rootfs

...

on

...

the

...

netboot

...

server

...

please

...

refer

...

to the RPi 3B+ iscsi how-to document.

Once the initramfs is properly loaded and the necessary processes started the RPi 3B+ will attempt to mount and switch to the rootfs that resides on the netboot server. The cmdline.txt defines how the rootfs can be accessed.

...

  1. Discover the iscsi target

    $ sudo iscsiadm --mode discovery --op update --type sendtargets --portal bootserv 
    192.168.4.1:3260,1 iqn.org.micromec:rpi3-1-opensuse-rootfs

  2. Login to the iscsi target

    $ sudo iscsiadm -m node --targetname iqn.org.micromec:rpi3-1-opensuse-rootfs -p bootserv -l 
    Logging in to [iface: default, target: iqn.org.micromec:rpi3-1-opensuse-rootfs, portal: 192.168.4.1,3260]
    Login to [iface: default, target: iqn.org.micromec:rpi3-1-opensuse-rootfs, portal: 192.168.4.1,3260] successful.

  3. Check the available partitions

    $ cat /proc/partitions 
    major minor #blocks name ..... 8 16 4096000 sdb

  4. Determine the UUID

    $ sudo blkid /dev/sdb 
    /dev/sdc: UUID="7bf4dc05-cd4a-46af-9689-4a03209d5ed2" BLOCK_SIZE="4096" TYPE="ext4"

...

The procedure to copy the relevant files is very similar to the one we had for RPi 3B+ above. For RPi 4B we have to copy the files from the Rasbian Baster Buster lite image.

For the preparation of the rootfs on the netboot server please refer to : RPi 4B iscsi howto document.

The RPi 4B iscsi howto document explains how to mount the Raspbian Buster lite image. Once the image is mounted we can find the files in the boot subdirectory.

...