![]() We’re using ISC-DHCPd, so we already have an IP-pool setup. Stop the boot-sequence whinging about /tmp being read-only before /tmp is mounted: touch /tmp/.tmpfs Tmpfs /var/log tmpfs nodev,nosuid,size=20%,mode=1755 0 0 tmpfs /tmp tmpfs nodev,nosuid,size=10%,mode=1777 0 0 For example, to create /tmp using 10% of the available RAM and /var/log using 20%, add this to /etc/fstab. Fortunately, tmpfs comes to the rescue here. Unfortunately, many services will want to write things all over the disk - sometimes you will want to too. If you’re going to have several instances of Pis netbooting off the same image, you will want to make the NFS-export read-only. #/dev/mmcblk0p2 / ext4 defaults,noatime 0đ It’s often also a Good Idea TM to mount /boot read-only to avoid SD-card corruption on quick, unclean reboots or power-cycling: You’ll also want to remove/comment-out the existing entry in /etc/fstab for mounting /dev/mmcblk0p2 on /, since netbooting has provided it with a root filesystem. Fortunately, this is quite easy, simply edit /etc/network/interfaces and make eth0 static: iface eth0 inet static Next we need to stop the OS from obtaining a new DHCP lease. Losetup -o 62914560 /dev/loop0 -wheezy-raspbian.img Under Ubuntu, I just extracted it, worked out the partition start-point, mounted it via loopback and copied it verbatim: unzip -wheezy-raspbian.zip ![]() The easiest way to do this is to use the one on the Raspbian distribution’s “Raw Images”. ![]() The first thing to do is get a root filesystem. There are plenty of guides on setting up an NFS-server, suffice to say that I’ll assume you have /exports/pi-root exported, read-only to the IP-address or subnet that your Pi will be on - also note that you should use no_root_squash or -maproot=root:wheel as appropriate. This is the most involved part and varies a little per operating system. In order to roll-out changes to all of them at the same time, we net-boot them – essentially the entire root-filesystem resides on another server that the Pi can access via NFS. ![]() Several of our projects ( £B Till Display, Watershed Signage) use a Raspberry Pi at their heart with multiple units that are nearly identical. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |