Skip to content

Commit 7f892b1

Browse files
authored
write version.txt (fixes #9) (#13)
1 parent ea82b4e commit 7f892b1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export DIST_NAME=cube
2-
export DIST_VERSION=0.0.2
2+
export DIST_VERSION=0.0.3
33
export MODULES="base(cube)"
44

55
export RPI_IMAGER_NAME="${DIST_NAME} version ${DIST_VERSION}"

src/modules/cube/start_chroot_script

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ unpack /filesystem/home/pi /home/"${BASE_USER}" "${BASE_USER}"
1212
unpack /filesystem/home/root /root root
1313
unpack /filesystem/boot /boot
1414

15+
# /boot/version.txt
16+
version="$DIST_NAME-$DIST_VERSION"
17+
echo "writing version.txt: $version"
18+
echo "$version" > /boot/version.txt
19+
1520
# for kubernetes
1621
sed -i -e 's#$# cgroup_memory=1 cgroup_enable=memory#' /boot/cmdline.txt
1722

0 commit comments

Comments
 (0)