1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

Add version string to the initrd file so we can have 2 modern initrd's on the disk

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-01-27 02:53:44 +00:00
parent e2992d1626
commit b3a9893fcf
7 changed files with 21 additions and 13 deletions

View File

@@ -1,3 +1,5 @@
#!/bin/bash
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
DIRTY="-dirty"
fi
@@ -13,7 +15,8 @@ if [ -z "$VERSION" ]; then
fi
fi
export VERSION COMMIT
INITRD=${ARTIFACTS}/initrd-${VERSION}
export VERSION COMMIT INITRD
# Suffix
export SUFFIX=""