mirror of https://github.com/CIRCL/Circlean
commit
1d63d3fc14
|
@ -28,7 +28,7 @@ Preparation
|
||||||
```
|
```
|
||||||
* Install qemu, qemu-user-static, and proot if not already installed:
|
* Install qemu, qemu-user-static, and proot if not already installed:
|
||||||
```
|
```
|
||||||
apt-get install qemu qemu-user-static proot
|
apt-get install qemu qemu-user-static qemu-user proot
|
||||||
```
|
```
|
||||||
|
|
||||||
Download the Raspbian image
|
Download the Raspbian image
|
||||||
|
@ -116,7 +116,10 @@ arrow keys move the cursor, spacebar selects/deselects a locale, tab moves the c
|
||||||
to a different context, and enter lets you select "ok". This step might take some time,
|
to a different context, and enter lets you select "ok". This step might take some time,
|
||||||
be patient:
|
be patient:
|
||||||
```
|
```
|
||||||
dpkg-reconfigure locales
|
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen
|
||||||
|
sed -i -e 's/en_GB.UTF-8 UTF-8/# en_US.UTF-8 UTF-8/g' /etc/locale.gen
|
||||||
|
locale-gen en_US.UTF-8
|
||||||
|
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
|
||||||
```
|
```
|
||||||
* In the image, make sure everything is up-to-date and remove old packages. You may have to
|
* In the image, make sure everything is up-to-date and remove old packages. You may have to
|
||||||
run dist-upgrade and autoremove several times for everything to be installed, and a few
|
run dist-upgrade and autoremove several times for everything to be installed, and a few
|
||||||
|
|
|
@ -17,15 +17,15 @@ set -x
|
||||||
|
|
||||||
# Double check the path and offsets as noted above!
|
# Double check the path and offsets as noted above!
|
||||||
# Path to the image
|
# Path to the image
|
||||||
IMAGE='2018-01-29_CIRCLean.img'
|
IMAGE='2018-11-13_CIRCLean.img'
|
||||||
# Start sector of boot (first) partition
|
# Start sector of boot (first) partition
|
||||||
BOOT_START=`sfdisk -J ${IMAGE} | grep img1 | sed -n 's/.*"start": \([[:digit:]]*\).*/\1/p'`
|
BOOT_START=`sfdisk -J ${IMAGE} | grep img1 | sed -n 's/.*"start":*\([[:digit:]]*\).*/\1/p'`
|
||||||
# Amount of sectors of boot (first) partition
|
# Amount of sectors of boot (first) partition
|
||||||
BOOT_SIZE=`sfdisk -J ${IMAGE} | grep img1 | sed -n 's/.*"size": \([[:digit:]]*\).*/\1/p'`
|
BOOT_SIZE=`sfdisk -J ${IMAGE} | grep img1 | sed -n 's/.*"size":*\([[:digit:]]*\).*/\1/p'`
|
||||||
# Start sector of root (second) partition
|
# Start sector of root (second) partition
|
||||||
ROOT_START=`sfdisk -J ${IMAGE} | grep img2 | sed -n 's/.*"start": \([[:digit:]]*\).*/\1/p'`
|
ROOT_START=`sfdisk -J ${IMAGE} | grep img2 | sed -n 's/.*"start":*\([[:digit:]]*\).*/\1/p'`
|
||||||
# Amount of sectors of root (second) partition
|
# Amount of sectors of root (second) partition
|
||||||
ROOT_SIZE=`sfdisk -J ${IMAGE} | grep img2 | sed -n 's/.*"size": \([[:digit:]]*\).*/\1/p'`
|
ROOT_SIZE=`sfdisk -J ${IMAGE} | grep img2 | sed -n 's/.*"size":*\([[:digit:]]*\).*/\1/p'`
|
||||||
|
|
||||||
# Locations you'd like the partitions mounted
|
# Locations you'd like the partitions mounted
|
||||||
BOOT_PATH='/mnt/rpi-boot'
|
BOOT_PATH='/mnt/rpi-boot'
|
||||||
|
|
Loading…
Reference in New Issue