Skip to content

Instantly share code, notes, and snippets.

@intlabs
Created December 6, 2019 22:07
Show Gist options
  • Select an option

  • Save intlabs/fb9b2890e1b4344e9c66072461873eaf to your computer and use it in GitHub Desktop.

Select an option

Save intlabs/fb9b2890e1b4344e9c66072461873eaf to your computer and use it in GitHub Desktop.
rp4
rsync -avxHAX --progress /media/harbor/writable/ /media/harbor/root
sed -i '/^LABEL=writable/d' /media/harbor/root/etc/fstab
sed -i '1 i\LABEL=root\t/\txfs\tdefaults\t0\t0' /media/harbor/root/etc/fstab
sed -i 's/root=LABEL=writable/root=LABEL=root/' /media/harbor/system-boot/nobtcmd.txt
sed -i 's/rootfstype=ext4/rootfstype=xfs/' /media/harbor/system-boot/nobtcmd.txt
#see https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=245931
echo " usb-storage.quirks=152d:1561:u" >> /media/harbor/system-boot/nobtcmd.txt
#see https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1848790
echo "total_mem=3072" >> /media/harbor/system-boot/usercfg.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment