Verified Commit 8a02b3a9 authored by Karel Koci's avatar Karel Koci 🤘
Browse files

hardware/rescue-image: include version of rescue in image

This way we can do something pretty nasty but functional to get rescue
image version:
lzcat /dev/mtdX | strings | grep 'Turris Rescue'
parent eb3da06e
......@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=rescue-image
PKG_VERSION:=3.6
PKG_VERSION:=3.6.1
PKG_RELEASE:=1
BB_VERSION:=1.32.1
PKG_SOURCE:=busybox-$(BB_VERSION).tar.bz2
......@@ -56,6 +56,7 @@ define Build/Prepare
mkdir -p "$(PKG_BUILD_DIR)/rootfs/tmp"
mkdir -p "$(PKG_BUILD_DIR)/rootfs/var/lock"
mkdir -p "$(PKG_BUILD_DIR)/busybox"
echo "Turris Rescue $(PKG_VERSION)-$(PKG_RELEASE)" > "$(PKG_BUILD_DIR)/version"
echo "root::0:0:root:/:/bin/sh" > "$(PKG_BUILD_DIR)/rootfs/etc/passwd"
echo "/bin/sh" > "$(PKG_BUILD_DIR)/rootfs/etc/shells"
$(INSTALL_BIN) ./files/helpers.sh "$(PKG_BUILD_DIR)/rootfs/lib/helpers.sh"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment