User Tools

Site Tools


linux:raspberry_pi_read-only_root

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:raspberry_pi_read-only_root [2017/11/29 15:34]
kacper [Helper scripts for rootfs]
linux:raspberry_pi_read-only_root [2017/11/29 18:51]
kacper [Create rootfs with debootstrap]
Line 85: Line 85:
 umount /sys umount /sys
    
-exec switch_root /rootfs /sbin/init+exec switch_root /rootfs /bin/systemd
 EOF EOF
  
Line 113: Line 113:
 ===== Create rootfs with debootstrap ===== ===== Create rootfs with debootstrap =====
 I wrote a little script that will deboostrap a minimal raspberry rootfs. Run as //​./​rpi-debootstrap.sh [directory to debootstrap to]//. I wrote a little script that will deboostrap a minimal raspberry rootfs. Run as //​./​rpi-debootstrap.sh [directory to debootstrap to]//.
-Download at [[https://​github.com/​wokis/​raspberrypi/​blob/​master/​rpi-deboostrap.sh]]+Download at [[https://​github.com/​wokis/​raspberrypi/​blob/​master/​rpi-debootstrap.sh]]
 <code bash> <code bash>
 mkdir /​home/​me/​raspberry/​rootfs mkdir /​home/​me/​raspberry/​rootfs
 ./​rpi-debootstrap.sh /​home/​me/​raspberry/​rootfs ./​rpi-debootstrap.sh /​home/​me/​raspberry/​rootfs
 +
 +cd /​home/​me/​raspberry/​rootfs
 +mkdir -p mnt/root-ro
 +mkdir -p mnt/root-rw
 +mkdir -p mnt/​persistent
 </​code>​ </​code>​
 ===== Helper scripts for rootfs ===== ===== Helper scripts for rootfs =====
linux/raspberry_pi_read-only_root.txt · Last modified: 2017/11/29 18:51 by kacper