Skip to content

Commit

Permalink
write version.txt (fixes #9) (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
dogi authored Oct 11, 2022
1 parent ea82b4e commit 7f892b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export DIST_NAME=cube
export DIST_VERSION=0.0.2
export DIST_VERSION=0.0.3
export MODULES="base(cube)"

export RPI_IMAGER_NAME="${DIST_NAME} version ${DIST_VERSION}"
Expand Down
5 changes: 5 additions & 0 deletions src/modules/cube/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ unpack /filesystem/home/pi /home/"${BASE_USER}" "${BASE_USER}"
unpack /filesystem/home/root /root root
unpack /filesystem/boot /boot

# /boot/version.txt
version="$DIST_NAME-$DIST_VERSION"
echo "writing version.txt: $version"
echo "$version" > /boot/version.txt

# for kubernetes
sed -i -e 's#$# cgroup_memory=1 cgroup_enable=memory#' /boot/cmdline.txt

Expand Down

0 comments on commit 7f892b1

Please sign in to comment.