https://wiki.ubuntuusers.de/Ubuntu_Touch/Sicherung_und_Wiederherstellung/
Wie erstellt man denn z.B. die SYSTEMDATEI.img für das bq E4.5?
Ich habe ein Skript, zur Installation, für das MX4 gefunden:
#!/bin/bash ## This script creates Ubuntu Touch system.img + boot.img for chinese MX4 dual-boot ## ideas taken from http://humpolec.ubuntu.com/latest/dualboot.sh FORCE_DOWNLOAD=0 CHANNEL=${1-stable/meizu.en} ## "stable/meizu.en" or "stable/meizu.zh" - you can pass $1 DEVICE='arale' SYSTEM_IMG_SIZE=1800 ## in megabytes RELEASE_DIR=`date +%Y%m%d` ## it's changed in download_latest_ota_full_release() download_file() { DOWNLOAD_URL=$1 FILENAME=$2 TARGET_SIZE=$3 SIZE=1 # check if file should be downloaded at all FILE_SIZE=$(ls -al $2 | awk '{ print $5}') if [[ $FORCE_DOWNLOAD == 0 ]] && [[ $FILE_SIZE -ge $TARGET_SIZE ]]; then echo "Skipping download, file already downloaded" return fi # check downloaded file size, this often fails, so retry. Expected size is TARGET_SIZE while [[ $TARGET_SIZE -gt $SIZE ]] do curl $DOWNLOAD_URL > $FILENAME SIZE=$(ls -la $FILENAME | awk '{ print $5}') echo "Downloaded file has size: $SIZE" done } download_latest_ota_full_release() { echo "Downloading latest Ubuntu touch release for $CHANNEL" BASE_SERVER_URL="http://system-image.ubuntu.com" CHANNEL_URL="$BASE_SERVER_URL/ubuntu-touch/$CHANNEL/$DEVICE/index.json" echo "Selected channel: $CHANNEL_URL" CHANNEL_PACKAGES=$(curl $CHANNEL_URL | python -c "import json import sys data = json.load(sys.stdin) count = len(data['images']) for i in range(count -1,0,-1): if data['images'][i]['type'] == 'full': s = data['images'][i]['version_detail'] version_detail = dict(item.split('=') for item in s.split(',')) print \"%s-%s\" % (version_detail['ubuntu'],version_detail['tag']) pCount = len(data['images'][i]['files']) for ii in range(0, pCount): print data['images'][i]['files'][ii]['size'], data['images'][i]['files'][ii]['path'] break") i=0 while read -r line; do i=$[$i+1] if [ $i == 1 ]; then RELEASE_DIR=$line; continue; fi SIZE=$(echo $line | awk '{ print $1}') PACKAGE=$(echo $line | awk '{ print $2}') echo $PACKAGE download_file $BASE_SERVER_URL$PACKAGE $(basename $PACKAGE) $SIZE echo "Unpacking $(basename $PACKAGE)" sudo tar xf "$(basename $PACKAGE)" done <<< "$CHANNEL_PACKAGES" } make_empty_system_img() { echo "Making system.img" dd if=/dev/zero of=system.img bs=1M count=$SYSTEM_IMG_SIZE mkfs.ext4 -F -m 0 system.img #tune2fs -r 0 system.img mkdir -p system echo "Mounting system.img as a loop-back device. Need sudo." sudo mount system.img system -o loop } finalize_system_img() { cp partitions/boot.img ./ sudo rm -rf blobs partitions device-build echo "Unmounting system.img" sudo umount system e2fsck -f system.img ## -M - minimize system.img size if needed. But you'll lose write access #resize2fs -M system.img #resize2fs system.img 1800M rm -rf ./system echo "Moving system.img and boot.img to $RELEASE_DIR" mkdir -p $RELEASE_DIR mv -f *.img $RELEASE_DIR/ } make_empty_system_img download_latest_ota_full_release finalize_system_img
Aber passt 1.8 GB auch für das, z.B., bq E4.5?
Selbst wenn, wie wird das gesichert? 😕