https://github.com/rgl/raspberrypi-kernel-iscsi-initrd
This contains the initrd binaries needed to boot a rpi from iSCSI
https://github.com/rgl/raspberrypi-kernel-iscsi-initrd
iscsi raspberry-pi
Last synced: 2 months ago
JSON representation
This contains the initrd binaries needed to boot a rpi from iSCSI
- Host: GitHub
- URL: https://github.com/rgl/raspberrypi-kernel-iscsi-initrd
- Owner: rgl
- Created: 2020-01-25T15:41:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T18:18:22.000Z (about 6 years ago)
- Last Synced: 2025-06-12T11:56:33.116Z (about 1 year ago)
- Topics: iscsi, raspberry-pi
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This contains the initrd binaries needed to boot a rpi from iSCSI.
This is used by [rgl/pxe-raspberrypi-vagrant](https://github.com/rgl/pxe-raspberrypi-vagrant)
because updating the initrd when running in [packer-builder-arm-image](https://github.com/solo-io/packer-builder-arm-image)
does not work.
# Build
To build the binaries execute the following command in your Raspberry Pi 4:
```bash
wget -O- https://github.com/rgl/raspberrypi-kernel-iscsi-initrd/raw/master/build.sh | sudo bash
```
# Raspberry Pi configuration
Configure your rpi boot partition to load initrd and configure the iSCSI boot, e.g.:
```bash
# add support for mounting iscsi targets.
apt-get install -y --no-install-recommends open-iscsi
sed -i -E 's,#(INITRD)=.+,\1=Yes,g' /etc/default/raspberrypi-kernel
# install the initrd binaries needed for mounting an iscsi target.
# NB this is needed because dpkg-reconfigure raspberrypi-kernel does not
# work under packer-builder-arm-image.
tar xf raspberrypi-kernel-iscsi-initrd.tgz -C /boot
# go to your rpi boot partition.
cd /boot
# configure the rpi bootloader to load initrd.
# see https://www.raspberrypi.org/documentation/configuration/config-txt/README.md
# see https://www.raspberrypi.org/documentation/configuration/config-txt/boot.md
echo "initramfs $(ls initrd.img-*-v7l+) followkernel" >>config.txt
# configure rpi kernel command line to mount the root fs from our iscsi export.
# see "Root on iSCSI" at /usr/share/doc/open-iscsi/README.Debian.gz
(cat | tr '\n' ' ') >cmdline.txt <