Skip to content

Commit 978b4f5

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 2aa8a41 + 95fe6f9 commit 978b4f5

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

cloud-config.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ users:
66
passwd: @PASSWORD@
77
groups: [ "admin" ]
88

9+
stages:
10+
boot:
11+
- name: Enable wireless
12+
commands:
13+
- connmanctl enable wifi
14+
- wpa_passphrase '@WIFISSID@' '@WIFIPASSWORD@' > /etc/wpa_supplicant/wpa_supplicant.conf
15+
- wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
16+
- udhcpc -i wlan0 &
17+
918
write_files:
1019
- path: /etc/rancher/k3s/registries.yaml
1120
permissions: "0644"

deprecated/image-rpi4.sh

+9-5
Original file line numberDiff line numberDiff line change
@@ -36,32 +36,36 @@ if [ "$SKIP_TEMPLATING" == "${SKIP_TEMPLATING#[Yy]}" ] ;then
3636
read -p "Enter name for initial user account: " -r USERNAME
3737
read -p "Enter password for initial user account: " -rs PASSWORD
3838
echo -e ""
39-
39+
read -p "Enter name for initial WIFI SSID: " -r WIFISSID
40+
read -p "Enter password for initial WIFI password: " -rs WIFIPASSWORD
41+
echo -e ""
4042
echo "Preparing ${CLOUD_CONFIG}..."
4143
curl --silent https://raw.githubusercontent.com/pluralsh/edge/main/cloud-config.yaml -o "${CLOUD_CONFIG}"
4244
templ "URL" "${URL}" "${CLOUD_CONFIG}"
4345
templ "TOKEN" "${TOKEN}" "${CLOUD_CONFIG}"
4446
templ "USERNAME" "${USERNAME}" "${CLOUD_CONFIG}"
4547
templ "PASSWORD" "${PASSWORD}" "${CLOUD_CONFIG}"
48+
templ "WIFISSID" "${WIFISSID}" "${CLOUD_CONFIG}"
49+
templ "WIFIPASSWORD" "${WIFIPASSWORD}" "${CLOUD_CONFIG}"
4650
fi
4751

4852
docker volume create edge-rootfs
49-
53+
echo "export image kairos-plural-bundle ..."
5054
docker run -ti --rm --user root \
5155
--mount source=edge-rootfs,target=/rootfs \
5256
gcr.io/go-containerregistry/crane:latest \
5357
--platform=linux/arm64 pull ghcr.io/pluralsh/kairos-plural-bundle:0.1.4 /rootfs/plural-bundle.tar
54-
58+
echo "export image kairos-plural-images-bundle ..."
5559
docker run -ti --rm --user root \
5660
--mount source=edge-rootfs,target=/rootfs \
5761
gcr.io/go-containerregistry/crane:latest \
5862
--platform=linux/arm64 pull ghcr.io/pluralsh/kairos-plural-images-bundle:0.1.2 /rootfs/plural-images-bundle.tar
59-
63+
echo "export image kairos-plural-trust-manager-bundle ..."
6064
docker run -ti --rm --user root \
6165
--mount source=edge-rootfs,target=/rootfs \
6266
gcr.io/go-containerregistry/crane:latest \
6367
--platform=linux/arm64 pull ghcr.io/pluralsh/kairos-plural-trust-manager-bundle:0.1.0 /rootfs/plural-trust-manager-bundle.tar
64-
68+
echo "unpack image $IMAGE ..."
6569
docker run -ti --rm --privileged\
6670
--mount source=edge-rootfs,target=/rootfs \
6771
quay.io/luet/base \

0 commit comments

Comments
 (0)