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
Last revision Both sides next revision
linux:raspberry_pi_read-only_root [2017/11/29 13:07]
kacper [Read-only root for Raspberry Pi]
linux:raspberry_pi_read-only_root [2017/11/29 18:47]
kacper systemd
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
Line 121: Line 121:
  
 <code bash> <code bash>
-cat > /bin/remounro ​<< EOF+cat > /bin/remountro ​<< EOF
 #!/bin/bash #!/bin/bash
  
Line 129: Line 129:
 EOF EOF
  
-cat > /bin/remounrw ​<< EOF+cat > /bin/remountrw ​<< EOF
 #!/bin/bash #!/bin/bash
  
Line 145: Line 145:
 EOF EOF
  
-chmod +x /bin/remounro +chmod +x /bin/remountro 
-chmod +x /bin/remounrw+chmod +x /bin/remountrw
 chmod +x /​bin/​syncroot chmod +x /​bin/​syncroot
 </​code>​ </​code>​
linux/raspberry_pi_read-only_root.txt · Last modified: 2017/11/29 18:51 by kacper