File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ # n0
3
+ # File: script (drist playbook)
4
+ # Description: build the official upstream rpi3 void-linux image with no changes
5
+ # Author: wfnintr
6
+ # Date: 2021-06-11
7
+ # a110w
8
+
9
+ install_depends (){
10
+ # Install the dependencies, clone the void-mklive directory
11
+ xbps-install -Syu xbps && {
12
+ xbps-install -Syu
13
+ xbps-install -y bash git xtools xz qemu-user-static && \
14
+ git clone https://github.com/void-linux/void-mklive
15
+ }
16
+ }
17
+
18
+ build_image (){
19
+ # Build the rootfs, platformfs and image all in one shot:
20
+ cd void-mklive && \
21
+ make $( (make rootfs-all-print ; make images-all-sbc-print ) | grep -e aarch64-musl -e rpi3-musl)
22
+ }
23
+
24
+ save_image (){
25
+ # save the resulting platformfs and compressed image to /tmp/results
26
+ # with my modified version of drist, everything in /tmp/results/ is copied back to the client
27
+ mkdir -p /tmp/results
28
+ cp void-rpi3-musl-PLATFORMFS-` date " +%Y%m%d" ` .tar.xz /tmp/results/
29
+ cp void-rpi3-musl-` date " +%Y%m%d" ` .img.xz /tmp/results/
30
+ }
31
+
32
+ install_depends || exit 1
33
+ build_image
34
+ save_image
You can’t perform that action at this time.
0 commit comments