#!/bin/bash # Generate Berryboot image from Raspbian based image # # Copyleft 2018 by Ignacio Nunez Hernanz # GPL licensed (see end of file) * Use at your own risk! # # Usage: ./build-SD-berryboot.sh # SRC="$1" IMG="NextCloudPi_RPi_Berryboot_$( date "+%m-%d-%y" ).img" set -e source buildlib.sh [[ -f "$SRC" ]] || { echo "$SRC not found"; exit 1; } # convert to Berryboot mount_raspbian "$SRC" sudo bash -c "cat > raspbian_root/etc/fstab" <